Skip to content

Print non scoped signing keys as well as signing keys - #1700

Open
ripienaar wants to merge 1 commit into
nats-io:mainfrom
ripienaar:signing_keys
Open

Print non scoped signing keys as well as signing keys#1700
ripienaar wants to merge 1 commit into
nats-io:mainfrom
ripienaar:signing_keys

Conversation

@ripienaar

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: R.I.Pienaar <rip@devco.net>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4d562991aa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

table = iu.NewTableWriterf(opts(), "Signing Keys")
table.AddHeaders("Key")
for _, key := range keys {
table.AddRow(key)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle listed non-scoped keys in key selection

For accounts that have a plain account signing key (for example, imported from nsc), this now exposes that key in auth account keys ls, but the sibling info/rm paths still call SelectSigningKey, which iterates ScopedSigningKeys().List() and dereferences scope.Key() after GetScope returns nil for a non-scoped key (internal/auth/auth.go:278-281). Copying one of these newly listed keys into auth account keys rm --key ... or reaching it through the prompt can therefore panic instead of reporting that the key is unsupported or removing it; skip non-scoped entries in selection or teach those commands to handle them.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant