Skip to content

Conversation

@peanball
Copy link
Contributor

What is this change about?

We want to add optional mTLS client certificate metadata verificiation in addition to basic validity checks.

Given a particular signing CA (identified by its subject) we want to limit the allowed client certificate subjects.

While the underlying issue is better solved with changes to the PKI and trust relationship between CAs, the PKI or its use by other sub-entities is not always under the control of the operator.

This PR pulls in the Gorouter change that implements the feature and provides the configuration spec and template to configure the optional property.`

What type of change is this?

  • [Breaking Change]: the change removes a feature or introduces a behavior change to core functionality (request routing, request logging)
  • [Minor Feature/Improvement]: the change introduces a new feature or improvement that doesn't alter core behavior
  • [Bug Fix]: the change addresses a defect

Backwards Compatibility

This is a non-breaking change that is completely optional. When the property is not set, no callback is registered at all.

How should this be tested?

See Gorouter PR. There are also automated tests as part of the Gorouter PR.

Additional Context

Gorouter PR: cloudfoundry/gorouter#367

PR Checklist

@peanball peanball force-pushed the mtls-metadata-verification branch from 4ff9bf4 to 98267c9 Compare October 6, 2023 08:32
@peanball peanball requested a review from domdom82 October 10, 2023 14:39
}
]
end
it 'fails and explains the validpopulates the properties after a successful check' do
Copy link
Contributor

Choose a reason for hiding this comment

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

this sentence seems odd 🧐

domdom82
domdom82 previously approved these changes Oct 11, 2023
Copy link
Contributor

@domdom82 domdom82 left a comment

Choose a reason for hiding this comment

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

only some minor gripes, approving.

Co-authored-by: Dominik Froehlich <Dominik.Frolic@gmail.com>
@ameowlia ameowlia merged commit bcc4d65 into cloudfoundry:develop Oct 11, 2023
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.

4 participants