I want to see what the value is of a drone secret. Is there any way to view drone secrets using the drone CLI? I don't want to see it using echo "$secret"
in the build.
Asked
Active
Viewed 3,863 times
3 Answers
3
You can't use the Drone CLI to see a secret's value once it has been set.

Oliver
- 11,857
- 2
- 36
- 42
-
can i atleast check the size or last updated date of secret ?any information to confirm that i successfully updated the secret. β Manoj Jul 05 '17 at 10:47
-
Neither is provided by the drone CLI - you could open an issue with the project to add that information, last updated in particular seems useful. β Oliver Jul 05 '17 at 16:14
1
Can use a Telegram bot to send drone secrets to a channel.

Alan
- 11
- 1
-
As itβs currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). β Community May 03 '23 at 00:43
0
There's no public methods (API/CLI) to retrieve secret values.
However, Drone stores its secrets unencrypted in the database, in hex encoding. If you are a server admin, you can retrieve them.

Jonathan Giroux
- 377
- 3
- 5