Skip to content

bridge: fix up proto registration#2702

Merged
alyssawilk merged 1 commit intoenvoyproxy:mainfrom
alyssawilk:protoc
Nov 23, 2022
Merged

bridge: fix up proto registration#2702
alyssawilk merged 1 commit intoenvoyproxy:mainfrom
alyssawilk:protoc

Conversation

@alyssawilk
Copy link
Copy Markdown
Contributor

@alyssawilk alyssawilk commented Nov 23, 2022

This fixes up issues exposed in envoyproxy/envoy#24151 where the PlatformBridgeCertValidatorFactory was not associated with the PlatformBridgeCertValidator proto.

Risk Level: low
Testing: envoyproxy/envoy#24151
Docs Changes: n/a
Release Notes: n/a

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk
Copy link
Copy Markdown
Contributor Author

cc @danzh2010

Copy link
Copy Markdown
Contributor

@RyanTheOptimist RyanTheOptimist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! Thanks for doing this! One tiny suggestion.

return std::make_unique<
envoy_mobile::extensions::cert_validator::platform_bridge::PlatformBridgeCertValidator>();
}
std::string category() const override { return "envoy.tls.cert_validator"; }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In envoy_build_config/extensions_build_config.bzl, the extension shows up as "envoy_mobile.cert_validator.platform_bridge_cert_validator" (which matches name()). Should these be made consistent? How 'bout we change the name to ""envoy.tls.cert_validator.platform_bridge"? Or maybe this isn't required?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name is still that string (above). I think category is generally different than name so I copied category from CertValidatorFactory

@alyssawilk alyssawilk marked this pull request as ready for review November 23, 2022 15:37
@alyssawilk alyssawilk merged commit eacd174 into envoyproxy:main Nov 23, 2022
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