Skip to content

Add AuditTokenRequest extended API storage#420

Merged
tamalsaha merged 8 commits into
masterfrom
feat-natscredentialrequest
Jun 4, 2026
Merged

Add AuditTokenRequest extended API storage#420
tamalsaha merged 8 commits into
masterfrom
feat-natscredentialrequest

Conversation

@tamalsaha

@tamalsaha tamalsaha commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Registers a new audittokenrequests resource under identity.k8s.appscode.com/v1alpha1.
  • Storage is create-only and delegates to *identity.Client.GetAuditToken, modelled after inboxtokenrequest.
  • Bumps kmodules.xyz/resource-metadata to the merged master commit (ba20b6454).

Why

The audit lib (go.bytebuilders.dev/audit) talks directly to appscode.com/api/v1/register for NATS credentials. Disconnected clusters can't reach that endpoint. The ui-server already proxies appscode-hub calls through the b3 identity client, so it's the natural place to host an extended API that audit (and any other in-cluster caller) can hit instead.

Depends on

Test plan

  • go build ./...
  • manual: kubectl create -f an AuditTokenRequest and confirm the response carries natsServer, natsSubject, and a credential blob

kodiakhq[bot]
kodiakhq Bot previously approved these changes Jun 4, 2026
kodiakhq[bot]
kodiakhq Bot previously approved these changes Jun 4, 2026
kodiakhq[bot]
kodiakhq Bot previously approved these changes Jun 4, 2026
kodiakhq[bot]
kodiakhq Bot previously approved these changes Jun 4, 2026
kodiakhq[bot]
kodiakhq Bot previously approved these changes Jun 4, 2026
kodiakhq[bot]
kodiakhq Bot previously approved these changes Jun 4, 2026
kodiakhq[bot]
kodiakhq Bot previously approved these changes Jun 4, 2026
@tamalsaha tamalsaha changed the title Add NatsCredentialRequest extended API storage Add AuditTokenRequest extended API storage Jun 4, 2026
tamalsaha added 8 commits June 4, 2026 11:52
Wires a new natscredentialrequests resource under
identity.k8s.appscode.com/v1alpha1 by delegating to the b3 identity client's
GetNatsCredential method. Modelled on the existing inboxtokenrequest
storage. Vendor bump is hand-applied and will be replaced by a normal
go mod vendor once the resource-metadata change lands.

Signed-off-by: Tamal Saha <tamal@appscode.com>
No behavior change — storage still calls GetNatsCredential, which now
delegates to the new method.

Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
…ction"

This reverts commit 395bef7.

Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha tamalsaha force-pushed the feat-natscredentialrequest branch from b1517e1 to 2274f78 Compare June 4, 2026 05:52
@tamalsaha tamalsaha merged commit c0e4a67 into master Jun 4, 2026
3 of 4 checks passed
@tamalsaha tamalsaha deleted the feat-natscredentialrequest branch June 4, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant