[Drone Cloud] Secret deletion fails with JSON.parse error

I’m trying to remove some old secrets from my repo settings, but clicking DELETE results in the following error:

JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 5 of the JSON data

This is because you secret names include a slash character, which should not be allowed. I need to add some validation on the server-side to the name field. The slash interferes with the REST API calls.

1 Like

Thanks for looking into this, I’ve raised a simple https://github.com/drone/drone/pull/2563 to track it.