Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow unsetting all secrets at once #3973

Open
nhedger opened this issue Sep 30, 2024 · 0 comments
Open

Allow unsetting all secrets at once #3973

nhedger opened this issue Sep 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nhedger
Copy link

nhedger commented Sep 30, 2024

Hey 👋

This is a feature request.


I'd like to be able to unset all the secrets of an application at once.

# No secrets names unsets all secrets
flyctl secrets unset

# Alternatively, using a --all flag
flyctl secrets unset --all

Either implementation could optionally prompt the user for confirmation in interactive sessions.

I'd be willing to contribute the feature, but just wanted to check if that's something you'd be open to.

Workaround

Currently, I'm using the following workaround:

flyctl secrets unset $(flyctl secrets list --json | jq -r '[.[].Name] | join(" ")')
@nhedger nhedger added the bug Something isn't working label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant