Skip to content

Feat/ias proof token validation - #157

Merged
stefanvtSAP merged 5 commits into
masterfrom
feat/ias-proof-token-validation
Oct 19, 2026
Merged

stefanvtSAP merged 5 commits into
masterfrom
feat/ias-proof-token-validation

Conversation

@stefanvtSAP

@stefanvtSAP stefanvtSAP commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

1. cloud-security-client-go

Branch: feat/ias-proof-token-validation

Title

feat(auth): support x5t and IAS proof token validation

Description

## Summary

Add opt-in validation for sender-constrained IAS tokens.

- Validate `cnf.x5t#S256` against the forwarded client certificate when x5t validation is enabled.
- Validate proof tokens for multi-audience service communication through the IAS JWKS request.
- Send the client certificate and `azp_app_tid` to IAS where required.
- Expose IAS consumer service plans through `Token.ServicePlans()`.
- Isolate JWKS cache entries by client, authorized-party tenant, and client certificate.

## Configuration

```go
middleware := auth.NewMiddleware(identity, auth.Options{
    Validation: auth.ValidationOptions{
        X5T:        true,
        ProofToken: true,
    },
})

x-forwarded-client-cert must only be trusted when a proxy strips caller-supplied values and forwards the TLS client certificate.

Validation

  • go test ./...
  • go vet ./...
  • golangci-lint run

@stefanvtSAP
stefanvtSAP requested a review from a team as a code owner October 19, 2026 12:12
@stefanvtSAP
stefanvtSAP requested a review from kuntzed October 19, 2026 12:21
@stefanvtSAP
stefanvtSAP merged commit d48eb19 into master Oct 19, 2026
12 checks passed
@stefanvtSAP
stefanvtSAP deleted the feat/ias-proof-token-validation branch October 19, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants