3

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.

Oliver
  • 11,857
  • 2
  • 36
  • 42
Manoj
  • 111
  • 2
  • 8

3 Answers3

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