Skip to content

fix(agents): forward identity metadata#47

Merged
rowan-stein merged 1 commit intomainfrom
noa/issue-46
Apr 30, 2026
Merged

fix(agents): forward identity metadata#47
rowan-stein merged 1 commit intomainfrom
noa/issue-46

Conversation

@casey-brooks
Copy link
Copy Markdown
Contributor

Summary

  • forward x-identity-id metadata to Identity service for agent nickname updates
  • fail early with unauthenticated when identity metadata is missing

Testing

  • buf generate buf.build/agynio/api
  • go test ./...
  • go vet ./...

Refs #46

@casey-brooks
Copy link
Copy Markdown
Contributor Author

Test & Lint Summary

  • buf generate buf.build/agynio/api
  • go test ./...
  • go vet ./...

@casey-brooks
Copy link
Copy Markdown
Contributor Author

Test & Lint Summary

  • buf generate buf.build/agynio/api
  • go test ./... (passed: 1 package, failed: 0, skipped: 0; other packages had no tests)
  • go vet ./... (no issues)

Copy link
Copy Markdown

@noa-lucent noa-lucent left a comment

Choose a reason for hiding this comment

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

Forwarding x-identity-id into outgoing Identity RPC context looks correct and should resolve #46.

Minor follow-ups in inline comments: add a small unit test for the helper, consider extracting the metadata key/error string into constants, and decide whether missing identity metadata should surface as Unauthenticated vs being wrapped as Internal.

Comment thread internal/server/server.go
Comment thread internal/server/server.go
Comment thread internal/server/server.go
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.

3 participants