Repository navigation
fix(auth): attach Hilbert tenant principal - #233
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix Keystone service calls to Hilbert after Hilbert began requiring an explicit Tenant principal for authenticated business APIs.
Motivation
Keystone staging currently authenticates successfully with Hilbert Digest AK/SK, but workspace and DC plan synchronization receives
403 tenant_principal_required. Hilbert now requires the service identity to select its authorized Tenant before calling business endpoints.Changes
1throughPOST /v1/console/tenant/selectusing Digest authentication.HilbertClient.X-Tenant-PrincipalandX-Tenant-ID: 1to subsequent Hilbert service requests.Type of Change
Preconditions
Hilbert must assign the Keystone service identity an active authorization for Tenant
1. Without that server-side authorization,/v1/console/tenant/selectcorrectly continues to returntenant_authorization_unavailable.Testing
go test ./...go vet ./...git diff --checkImpact
1for the current deployment model.