Skip to content

fix: correct tag parsing for key creation#71

Merged
jaxxstorm merged 2 commits intomainfrom
tag_parsing
Apr 10, 2026
Merged

fix: correct tag parsing for key creation#71
jaxxstorm merged 2 commits intomainfrom
tag_parsing

Conversation

@jaxxstorm
Copy link
Copy Markdown
Owner

@jaxxstorm jaxxstorm commented Apr 10, 2026

Signed-off-by: Lee Briggs lee@leebriggs.co.uk

Fixes #70

Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
Copilot AI review requested due to automatic review settings April 10, 2026 16:21
Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
@jaxxstorm jaxxstorm merged commit 7b04da2 into main Apr 10, 2026
1 check passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a regression in tscli create key where --tags was accepted for --type authkey but not serialized into the auth-key request payload, and adds coverage/spec updates to prevent recurrence.

Changes:

  • Map --tags into capabilities.devices.create.tags for auth-key creation requests.
  • Add an integration regression test asserting auth-key tag serialization in the outgoing JSON payload.
  • Update OpenSpec requirements/archive artifacts for auth-key tag behavior and federated key support documentation.

Reviewed changes

Copilot reviewed 10 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
cmd/tscli/create/key/cli.go Fixes auth-key request construction to include tags and updates CLI flag/help text.
test/cli/create_key_flags_integration_test.go Adds integration test verifying auth-key tag payload serialization.
openspec/specs/create-key-authkey-capability-flags/spec.md Updates requirements to include --tags in auth-key capability mapping + test expectations.
openspec/specs/federated-key-support/spec.md Adds federated key support specification content.
openspec/changes/archive/2026-04-10-fix-create-key-tags-parsing/.openspec.yaml Adds archive metadata for the tags parsing fix.
openspec/changes/archive/2026-04-10-fix-create-key-tags-parsing/tasks.md Archives tasks for the tags parsing regression fix.
openspec/changes/archive/2026-04-10-fix-create-key-tags-parsing/proposal.md Archives proposal explaining the tags parsing regression and fix.
openspec/changes/archive/2026-04-10-fix-create-key-tags-parsing/design.md Archives design notes for mapping auth-key tags into capabilities.
openspec/changes/archive/2026-04-10-fix-create-key-tags-parsing/specs/create-key-authkey-capability-flags/spec.md Archives the updated auth-key capability flags spec including tags.
openspec/changes/archive/2026-04-10-federated-tailnet-keys/.openspec.yaml Adds archive metadata for federated tailnet keys work.
openspec/changes/archive/2026-04-10-federated-tailnet-keys/tasks.md Archives tasks for federated key support work.
openspec/changes/archive/2026-04-10-federated-tailnet-keys/proposal.md Archives proposal for adding federated key support.
openspec/changes/archive/2026-04-10-federated-tailnet-keys/design.md Archives design notes for federated key support.
openspec/changes/archive/2026-04-10-federated-tailnet-keys/specs/federated-key-support/spec.md Archives federated key support requirements/spec content.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

--tags argument parsing appears to be broken

2 participants