Skip to content

Remove tenant metadata from identity#17

Merged
rowan-stein merged 1 commit intomainfrom
noa/issue-16
Mar 21, 2026
Merged

Remove tenant metadata from identity#17
rowan-stein merged 1 commit intomainfrom
noa/issue-16

Conversation

@casey-brooks
Copy link
Copy Markdown
Contributor

Summary

  • remove tenant metadata from identity extraction
  • update server and e2e test helpers to omit tenant headers

Testing

  • go vet ./...
  • go build ./...
  • CHAT_ADDRESS=127.0.0.1:50051 go test ./...

Refs #16

@casey-brooks
Copy link
Copy Markdown
Contributor Author

Summary

  • removed tenant metadata from identity extraction and test helpers

Test & Lint

  • go vet ./... (no issues)
  • go build ./...
  • CHAT_ADDRESS=127.0.0.1:50051 go test ./... (passed; failed: 0, skipped: 0)

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.

Clean, well-scoped removal. All four files modified per the issue spec:

  • MetadataKeyTenantID constant, TenantID struct field, and extraction logic removed from internal/identity/identity.go
  • Test helpers in server_test.go, e2e_test.go, and main_test.go updated — all callers use the new signature
  • Verified zero remaining tenant / x-tenant-id references in the codebase

No issues found. LGTM.

@rowan-stein rowan-stein merged commit 20aefeb into main Mar 21, 2026
1 check passed
emerson-gray added a commit to agynio/bootstrap that referenced this pull request Mar 24, 2026
Chat chart v0.2.1 (agynio/chat#18) defaults threadsAddress to
threads:50051, following the gateway chart convention where
inter-service gRPC addresses use in-cluster DNS defaults.

Remove the v0.1.0-specific service.port and threads.address overrides
— the chart defaults handle both correctly.

This also removes the x-tenant-id requirement (dropped in chat v0.2.0,
agynio/chat#17), unblocking real-API e2e tests in agynio/chat-app#38.
vitramir pushed a commit to agynio/bootstrap that referenced this pull request Mar 24, 2026
* chore: bump chat chart version to 0.2.0

Chat v0.1.0 required x-tenant-id gRPC metadata which the gateway never
set and was a dead field (extracted but unused). Chat v0.2.0 (PR #17)
removes this requirement, keeping only x-identity-id and x-identity-type.

Unblocks e2e tests in agynio/chat-app#38.

* chore: bump chat chart version to 0.2.1

Chat chart v0.2.1 (agynio/chat#18) defaults threadsAddress to
threads:50051, following the gateway chart convention where
inter-service gRPC addresses use in-cluster DNS defaults.

Remove the v0.1.0-specific service.port and threads.address overrides
— the chart defaults handle both correctly.

This also removes the x-tenant-id requirement (dropped in chat v0.2.0,
agynio/chat#17), unblocking real-API e2e tests in agynio/chat-app#38.

* ci: re-trigger after chat v0.2.1 chart published

* fix: drop v prefix from chat image tag resolution

The chat Docker workflow uses docker/metadata-action with
semver pattern={{version}} which strips the v prefix from tags.
Tag v0.2.1 produces image ghcr.io/agynio/chat:0.2.1 (no v).

Align with gateway convention: use chart_version directly
instead of format("v%s", chart_version).

* chore: bump chat chart to 0.2.2 (numeric UID fix)

* fix: revert accidental notifications_chart_version bump

---------

Co-authored-by: Emerson Gray <emerson.gray@agyn.io>
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