Skip to content

Add certificate OID map properties to vNEXT spec #89

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DerekTBrown
Copy link

This PR addresses issue #88 by adding new properties to access certificate OIDs:

  • connection.oid_map_local_certificate
  • connection.oid_map_peer_certificate
  • upstream.oid_map_local_certificate
  • upstream.oid_map_peer_certificate

These properties return maps of all OIDs to their corresponding values in certificates,
allowing plugins to access all certificate properties including X.509 extensions that may not
be exposed through the existing certificate properties.

This enhancement will enable Proxy-WASM plugins to access additional certificate attributes
needed for advanced use cases, particularly when working with certificates that contain
non-standard X.509 extensions with custom OIDs.

DerekTBrown added a commit to DerekTBrown/envoy that referenced this pull request Jul 9, 2025
This change adds new methods to the SSL ConnectionInfo interface to expose
certificate extension OID maps, which allow proxy-wasm filters to access
certificate extension data. This implements the proposal from
proxy-wasm/spec#89.

The new properties are:
- connection.oid_map_local_certificate (map)
- connection.oid_map_peer_certificate (map)
- upstream.oid_map_local_certificate (map)
- upstream.oid_map_peer_certificate (map)

Each property provides a map of OID strings to their values extracted from
certificate extensions.

Signed-off-by: Derek Brown <6845676+DerekTBrown@users.noreply.github.com>
This change adds new properties to access certificate OIDs:
- connection.oid_map_local_certificate
- connection.oid_map_peer_certificate
- upstream.oid_map_local_certificate
- upstream.oid_map_peer_certificate

These properties return maps of all OIDs to their corresponding values in certificates,
allowing plugins to access all certificate properties including X.509 extensions.

Closes proxy-wasm#88

Signed-off-by: Derek Brown <6845676+DerekTBrown@users.noreply.github.com>
@DerekTBrown
Copy link
Author

I wrote a prototype implementation for Envoy, demonstrating feasibility:

envoyproxy/envoy#40178

@DerekTBrown DerekTBrown marked this pull request as ready for review July 10, 2025 02:07
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.

1 participant