Allow unsetting all secrets at once

Open
#3,973 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

Start from the flyctl secrets unset command and compare its current argument handling with flyctl secrets list --json, which the workaround uses to obtain secret names. The feature is complete when invoking unset without names, or with --all if that option is chosen, removes all application secrets and the behavior is covered by appropriate CLI tests.

Written by the indexing model from the issue text.

Description

bug

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(" ")')
Dominant language
Go
Stars
1.7k
Forks
311
Avg merge
12h 50m
Merged PRs (30d)
78

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from superfly/flyctl

All issues in superfly/flyctl

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.