RFC0055 Identity-Aware Routing#1913
Draft
rkoster wants to merge 1 commit into
Draft
Conversation
Add comprehensive test coverage for the Identity-Aware Routing feature that enables mTLS-based authentication and authorization for app-to-app communication on dedicated domains (e.g., *.apps.identity). Test coverage: - Default-deny behavior and access rule creation - Authorization enforcement (denies unauthorized apps) - XFCC header forwarding with caller identity in Envoy format Infrastructure changes: - Extended proxy app with /headers and /mtls_proxy endpoints - Added identity_aware_routing test suite with 3 test cases - Added IncludeIdentityAwareRouting and IdentityAwareDomain config - Added IdentityAwareRoutingDescribe wrapper for test gating Tests use cf add-access-rule/remove-access-rule CLI commands and validate mTLS certificate-based authentication via Diego instance identity certificates. Requires custom CF CLI with access rule management commands.
6 tasks
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
Add comprehensive acceptance test coverage for the Identity-Aware Routing feature that enables mTLS-based authentication and authorization for app-to-app communication on dedicated domains (e.g.,
*.apps.identity).This PR implements the CATs portion of the RFC for domain-scoped mTLS routing in GoRouter.
Changes
Test Coverage
Three test cases covering the core functionality:
X-Forwarded-Client-Certheader contains caller identity in Envoy format with app GUIDInfrastructure Changes
Extended proxy app (
assets/proxy/main.go):/headersendpoint: Returns all request headers as JSON for header inspection/mtls_proxy/<host:port>/<path>endpoint: Makes HTTPS requests using Diego instance identity certificates (CF_INSTANCE_CERT/CF_INSTANCE_KEY)New test suite (
identity_aware_routing/identity_aware_routing.go):cf add-access-rule,cf remove-access-rule, andcf access-rulesCLI commandsConfiguration support:
IncludeIdentityAwareRouting(bool) andIdentityAwareDomain(string, defaultapps.identity) config fieldsIdentityAwareRoutingDescribe()wrapper for test gatingRequirements
add-access-rule,remove-access-rule,access-rules)router.domainsjob property)enforce_access_rules: true(e.g.,apps.identity)Testing
Tested against local CF deployment with all 3 tests passing:
Related Work
community/toc/rfc/rfc-draft-domain-scoped-mtls-gorouter.md