Skip to content

xds: Add configuration objects for ExtAuthz, GrpcService and Bootstrap changes for GrpcService#12492

Open
sauravzg wants to merge 6 commits intogrpc:masterfrom
sauravzg:feat/authz-config
Open

xds: Add configuration objects for ExtAuthz, GrpcService and Bootstrap changes for GrpcService#12492
sauravzg wants to merge 6 commits intogrpc:masterfrom
sauravzg:feat/authz-config

Conversation

@sauravzg
Copy link
Contributor

@sauravzg sauravzg commented Nov 11, 2025

This commit introduces configuration objects for the external authorization (ExtAuthz) filter and the gRPC service and corresponding translations from XDS proto and Bootstrap. These classes provide a structured, immutable representation of the subset of the configuration defined in the xDS protobuf messages.

This PR should mostly now (hopefully ) be compliant with grpc/proposal#510 but without

  • CallCredentials (since I don't see A97) being implemented yet and would prefer to do it in a followup , we return empty optional)
  • TlsCredentials( since it's non trivial to construct a TLS credentials object, we throw an exception)
  • LocalCredentials(Java does't support these, we throw an exception)

The main new classes are:

  • ExtAuthzConfig: Represents the configuration for the ExtAuthz filter, including settings for the gRPC service, header mutation rules, and other filter behaviors.
  • GrpcServiceConfig: Represents the configuration for a gRPC service, including the target URI, credentials, and other settings.
  • HeaderMutationRulesConfig: Represents the configuration for header mutation rules.
  • ChannelCredsConfig and friends: To allow comparison between credential configuration , to allow caching based on creds which'll be needed in followup PRs for authz and proc.

The relevant sections of the spec are

This commit also includes parsers to create these configuration objects from the corresponding protobuf messages, as well as unit tests for the new classes.

This commit introduces configuration objects for the external authorization (ExtAuthz) filter and the gRPC service it uses. These classes provide a structured, immutable representation of the configuration defined in the xDS protobuf messages.

The main new classes are:
- `ExtAuthzConfig`: Represents the configuration for the `ExtAuthz` filter, including settings for the gRPC service, header mutation rules, and other filter behaviors.
- `GrpcServiceConfig`: Represents the configuration for a gRPC service, including the target URI, credentials, and other settings.
- `HeaderMutationRulesConfig`: Represents the configuration for header mutation rules.

This commit also includes parsers to create these configuration objects from the corresponding protobuf messages, as well as unit tests for the new classes.
sauravzg added a commit to sauravzg/grpc-java that referenced this pull request Mar 10, 2026
Fixup: Address comments from grpc#12492 for non PR deps

Fixup: CallCreds changes to use CompositeCreds

Fixup: 12493 : Remove redundant CheckParamsBuilder

Fixup: 12493 : Move the CertificateProvider to CheckRequestBuilder and create utils class

Fixup: 12492  Separate out config parsing


yolo
@sauravzg sauravzg force-pushed the feat/authz-config branch from a02a2a9 to 47f2a85 Compare March 10, 2026 21:12
@sauravzg
Copy link
Contributor Author

@ejona86 PTAL. I've addressed most of the comments and have updated the PR description. Apart from addresing the comments, this PR now also contains the remaining implementation of GrpcService which wasn't in scope last quarter (essentially bootstrap changes and some bootstrap abstractions).

@sauravzg sauravzg force-pushed the feat/authz-config branch from 47f2a85 to 5654c64 Compare March 10, 2026 21:49
@sauravzg sauravzg changed the title feat(xds): Add configuration objects for ExtAuthz and GrpcService xds: Add configuration objects for ExtAuthz, GrpcService and Bootstrap changes for GrpcService Mar 12, 2026
@kannanjgithub kannanjgithub requested a review from AgraVator March 17, 2026 06:03
kannanjgithub
kannanjgithub previously approved these changes Mar 17, 2026
@kannanjgithub
Copy link
Contributor

/gcbrun

@kannanjgithub kannanjgithub dismissed their stale review March 17, 2026 07:58

Will wait for the security level check to be implemented before applying token call cred.

@sauravzg sauravzg force-pushed the feat/authz-config branch from 8e50ad9 to c1b95f1 Compare March 17, 2026 08:39
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