Add cloud-providers module: keyless Spring AI on Amazon Bedrock (AWS default credential chain under IRSA and EKS Pod Identity) and Azure OpenAI (managed identity, Microsoft Entra ID bearer tokens), an audit advisor, and the traps reproduced (leftover static key beats the role, AWS_REGION ignored by Bedrock auto-configuration, short-lived credentials refetched per call, azure-identity missing, leftover OPENAI_API_KEY, other modalities defaulting to OpenAI, SigV4 session token in AWS SDK DEBUG logs). No AWS account or Azure subscription used: a local server stands in for STS, Bedrock, the Azure identity endpoint and Azure OpenAI; the Spring AI, AWS SDK and azure-identity code is real. Spring Boot 4.2.0, Spring AI 2.1.0, Java 25.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5uEyg58znuchZ8C8i
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
98ed878675
commit
8f69e7bf50
@@ -0,0 +1,26 @@
|
||||
# Azure OpenAI with a managed identity: no api-key, a bearer token from the identity endpoint
|
||||
|
||||
Environment: IDENTITY_ENDPOINT and IDENTITY_HEADER (what App Service injects), no AZURE_CLIENT_SECRET, no api-key.
|
||||
|
||||
profile azure (exit 0)
|
||||
INFO audit - provider=azure principal=oid=00000000-0000-0000-0000-00000000a11c,tid=11111111-2222-3333-4444-555555555555 model=gpt-4o-mini outcome=OK inputTokens=11 outputTokens=6 ms=<n>
|
||||
ANSWER 1: Hello from the Azure stub.
|
||||
identity endpoint calls : 1
|
||||
identity request query : api-version=2019-08-01&resource=https://cognitiveservices.azure.com
|
||||
chat request path : POST /openai/v1/chat/completions
|
||||
Authorization : Bearer eyJhbG... (3 segments, 262 chars)
|
||||
token claim aud : https://cognitiveservices.azure.com
|
||||
request body model : gpt-4o-mini
|
||||
api-key header : null
|
||||
|
||||
profile azure-default (exit 0)
|
||||
INFO audit - provider=azure principal=DefaultAzureCredential(unresolved) model=gpt-4o-mini outcome=OK inputTokens=11 outputTokens=6 ms=<n>
|
||||
ANSWER 1: Hello from the Azure stub.
|
||||
identity endpoint calls : 1
|
||||
identity request query : api-version=2019-08-01&resource=https://cognitiveservices.azure.com
|
||||
chat request path : POST /openai/v1/chat/completions
|
||||
Authorization : Bearer eyJhbG... (3 segments, 262 chars)
|
||||
token claim aud : https://cognitiveservices.azure.com
|
||||
request body model : gpt-4o-mini
|
||||
api-key header : null
|
||||
|
||||
Reference in New Issue
Block a user