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

[FEATURE REQUEST] Revoke keys in bulk #1894

Open
sidvishnoi opened this issue Jan 15, 2025 · 1 comment
Open

[FEATURE REQUEST] Revoke keys in bulk #1894

sidvishnoi opened this issue Jan 15, 2025 · 1 comment
Labels
discussion: idea Ideas of potential features triage Waiting to be assigned labels

Comments

@sidvishnoi
Copy link
Member

Describe the feature you would like to request

As mentioned in #1353, we as developers end up with a lot of keys. There should be a way to revoke multiple keys at once.

Describe the solution you would like

  • Add a button to revoke all keys.
  • Add a checkbox column, with a "Select all" on top, where we can deselect specific keys not to be revoked; with a button "Revoke selected keys"

Additional context

No response

@sidvishnoi sidvishnoi added discussion: idea Ideas of potential features triage Waiting to be assigned labels labels Jan 15, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Testnet Jan 15, 2025
@sidvishnoi
Copy link
Member Author

I've created following snippet as a workaround for now:

// Visit https://wallet.interledger-test.dev/settings/developer-keys and run following in devtools console
await Promise.all(
  JSON.parse(document.getElementById("__NEXT_DATA__").textContent)
    .props.pageProps.accounts.flatMap((account) =>
      account.walletAddresses.flatMap((wa) =>
        wa.keys.flatMap(
          (k) =>
            `https://api.wallet.interledger-test.dev/accounts/${account.id}/wallet-addresses/${wa.id}/${k.id}/revoke-key`,
        ),
      ),
    )
    .map((url) => fetch(url, { method: "PATCH", credentials: "include" })),
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion: idea Ideas of potential features triage Waiting to be assigned labels
Projects
Status: Backlog
Development

No branches or pull requests

1 participant