Skip to content

Commit b508f72

Browse files
Merge pull request #1043 from anthonydahanne/client-certificate
Add client certificate mapper ability to choose version
2 parents b483a84 + f9b4a20 commit b508f72

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

config/client_certificate_mapper.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@
1515

1616
# Container security provider configuration
1717
---
18-
version: 1.+
19-
repository_root: "{default.repository.root}/client-certificate-mapper"
18+
version: 2.+
19+
version_lines:
20+
- 2.+
21+
repository_root: "{default.repository.root}/client-certificate-mapper"

docs/framework-client_certificate_mapper.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Client Certificate Mapper
2-
The Client Certificate Mapper Framework adds a Servlet Filter to applications that will that maps the `X-Forwarded-Client-Cert` to the `javax.servlet.request.X509Certificate` Servlet attribute.
2+
The Client Certificate Mapper Framework adds a Servlet Filter to applications that will that maps the `X-Forwarded-Client-Cert` to the `javax|jakarta.servlet.request.X509Certificate` Servlet attribute.
3+
4+
The Client Certificate Mapper Framework will download a helper library, [java-buildpack-client-certificate-mapper][library repository], that will enrich Spring Boot (2 and 3), as well as JEE / JakartaEE applications classpath with a servlet filter.
35

46
<table>
57
<tr>
@@ -18,10 +20,10 @@ For general information on configuring the buildpack, including how to specify c
1820

1921
The framework can be configured by modifying the [`config/client_certificate_mapper.yml`][] file in the buildpack fork. The framework uses the [`Repository` utility support][repositories] and so it supports the [version syntax][] defined there.
2022

21-
| Name | Description
22-
| ---- | -----------
23+
| Name | Description
24+
|-------------------| -----------
2325
| `repository_root` | The URL of the Container Customizer repository index ([details][repositories]).
24-
| `version` | The version of Container Customizer to use. Candidate versions can be found in [this listing][].
26+
| `version` | The version of Container Customizer to use. Candidate versions can be found in [this listing][].
2527

2628
## Servlet Filter
2729
The [Servlet Filter][] added by this framework maps the `X-Forwarded-Client-Cert` to the `javax.servlet.request.X509Certificate` Servlet attribute for each request. The `X-Forwarded-Client-Cert` header is contributed by the Cloud Foundry Router and contains the any TLS certificate presented by a client for mututal TLS authentication. This certificate can then be used by any standard Java security framework to establish authentication and authorization for a request.
@@ -32,3 +34,4 @@ The [Servlet Filter][] added by this framework maps the `X-Forwarded-Client-Cert
3234
[Servlet Filter]: https://github.com/cloudfoundry/java-buildpack-client-certificate-mapper
3335
[this listing]: http://download.pivotal.io.s3.amazonaws.com/container-security-provider/index.yml
3436
[version syntax]: extending-repositories.md#version-syntax-and-ordering
37+
[library repository]: https://github.com:cloudfoundry/java-buildpack-client-certificate-mapper.git

0 commit comments

Comments
 (0)