Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xds: Envoy proto sync to 2024-12-09 #11816

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

shivaspeaks
Copy link
Member

envoyproxy/envoy: Sync protos to the latest imported version envoyproxy/envoy@33fb499 (commit 2024-12-09, cl/713424670).

Should be a noop, just a routine xDS proto update to make upcoming xDS-HTTP CONNECT related imports simpler.

@shivaspeaks
Copy link
Member Author

shivaspeaks commented Jan 10, 2025

The failure is due to the deprecation of seMetadata() in Builder. See rbac.proto

I tried to replace it with sourced_metadata but little did I know it takes some more effort from reading documents to adding a new parser for SOURCED_METADATA here

private static Matcher parsePermission(Permission permission) {
and also deleting the deprecated METADATA.

For now I can add a suppress warning for deprecation to the test method and create a tracking issue to this.

cc @ejona86 @kannanjgithub

@ejona86
Copy link
Member

ejona86 commented Jan 10, 2025

We need to still support the old field, so @SuppressWarnings is appropriate. However, it is best to only suppress a single line. You can only do suppressions on declarations, though, so the code would need to change to be more like @SuppressWarnings("deprecation") Permission metadata = Permission.newBuilder().setMetadata(metadataMatcher).build(). Create a new issue to track implementing sourced_metadata.

@ejona86
Copy link
Member

ejona86 commented Jan 10, 2025

(And implementing sourced_metadata would be cross-language, so would have a gRFC. The issue can mention that.)

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.

2 participants