feat: send X-Amz-X509-Chain and derive AccountID from the ARN #36
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 161 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.304
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #36"
general
weight: 0.35
lrascao
Add NewSignerWithChain so callers can attach intermediate CA certificates. When present, the intermediates are sent to IAM Roles Anywhere in the X-Amz-X509-Chain header (comma-delimited base64 DER, capped at the 5-cert limit) and included in the canonical request's signed headers. This lets the end-entity (leaf) certificate validate against a trust anchor registered higher in the chain (e.g. the root) instead of requiring the anchor to be the immediate issuer. Wires up the previously-unused x_amz_x509_chain constant.
Also fix CredentialProvider.Retrieve setting aws.Credentials.AccountID to the full assumed-role ARN. It now extracts the account ID from the ARN, so the AWS SDK's account-based endpoint routing (e.g. DynamoDB) resolves correctly instead of failing with "Credentials-sourced account ID parameter is invalid".
The NewSigner API and the no-chain canonical request are unchanged (byte-identical), so this is backwards compatible; scope remains ECDSA-only.