169.254.170.2, and EKS Pod Identity 169.254.170.23 / fd00:ec2::23. Metadata, private, and lookalike hosts are refused before a fetch. Credential JSON must be successful and complete.bedrock-runtime hosts yield to a configured region or profile. Lookalike hosts stay explicit. IMDS is advertised only behind an EC2 hint, and blank container URI env vars are not credential sources.No production behavior changes.
crates/cowork-server/src/mobile_h3/ticket.rscrates/cowork-providers/src/bedrock/auth.rsPairing tickets are the trust boundary for a paired device, and the container-credential URI decides where AWS role credentials are fetched. Both paths previously locked little more than the happy path, so a loosened pin check, an extra ticket field, or a widened HTTP allowlist could ship without a failing test. These cases fail closed on the current rules.
cargo test -p cowork-server --lib mobile_h3::ticket::tests — 4 passedcargo test -p cowork-providers --lib credential_boundary_tests — 4 passedcargo fmt -p cowork-server -p cowork-providers -- --checkcargo clippy -p cowork-providers -p cowork-server --all-targets -- -D warningsSign in to comment.
Update README.md
#125 mobile-fixes ← main
Updated 5 months ago