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

Add support for oAuth mTLS client authorization #161

Merged
merged 1 commit into from
May 15, 2024
Merged

Add support for oAuth mTLS client authorization #161

merged 1 commit into from
May 15, 2024

Conversation

marinator86
Copy link
Contributor

Hi team,

first of all a big thanks for this sdk! We plan to use it at Mercedes-Benz to connect zeebe workers to our self-managed camunda instance.

In our setup, were we have to put both the oAuth server (keycloak) and the zeebe gateway behind an ingress which requires mTLS client authorization. As I've tested, client authorization has already been supported for grpc connections, but the OAuthProvider did not support it yet when it requests a token.

So I've added code that uses the same config parameters CAMUNDA_CUSTOM_CERT_CHAIN_PATH and CAMUNDA_CUSTOM_PRIVATE_KEY_PATH to configure got, but only in case they're set. If they're not set, keyand certparams from got remain undefined, and everything works normal.

@CLAassistant
Copy link

CLAassistant commented May 14, 2024

CLA assistant check
All committers have signed the CLA.

@jwulf
Copy link
Member

jwulf commented May 14, 2024

Thanks for the contribution @marinator86. Could you please amend the commit message to type feat? We're tracking the Camunda 8 Platform minor version, so we use patch versions for additional features in the JS SDK during a Platform minor version lifetime.

@marinator86
Copy link
Contributor Author

Thanks for the contribution @marinator86. Could you please amend the commit message to type feat? We're tracking the Camunda 8 Platform minor version, so we use patch versions for additional features in the JS SDK during a Platform minor version lifetime.

Hi @jwulf, done.

@jwulf jwulf merged commit f05aa8a into camunda:alpha May 15, 2024
3 of 7 checks passed
github-actions bot pushed a commit that referenced this pull request May 15, 2024
## [8.5.4-alpha.1](v8.5.3...v8.5.4-alpha.1) (2024-05-15)

### Features

* **oauth:** add conditional loading of client key and cert for getting a token ([#161](#161)) ([f05aa8a](f05aa8a))
github-actions bot pushed a commit that referenced this pull request May 15, 2024
## [8.5.4-alpha.1](v8.5.3...v8.5.4-alpha.1) (2024-05-15)

### Features

* **oauth:** add conditional loading of client key and cert for getting a token ([#161](#161)) ([f05aa8a](f05aa8a))
@jwulf
Copy link
Member

jwulf commented May 15, 2024

Released in 8.5.4-alpha.1

@marinator86 marinator86 deleted the alpha branch May 16, 2024 12:51
github-actions bot pushed a commit that referenced this pull request May 24, 2024
## [8.5.4](v8.5.3...v8.5.4) (2024-05-24)

### Bug Fixes

* **issue137:** support ZEEBE_REST_ADDRESS and ZEEBE_GRPC_ADDRESS environment variables ([#159](#159)) ([41fdca0](41fdca0))
* **oauth:** correctly expire cached token ([#164](#164)) ([c86e550](c86e550)), closes [#163](#163)

### Features

* **camunda8:** support Basic Auth ([d6acdfd](d6acdfd)), closes [#165](#165)
* **oauth:** add conditional loading of client key and cert for getting a token ([#161](#161)) ([f05aa8a](f05aa8a))
* **zeebe:** support Zeebe User Task REST API ([022607b](022607b)), closes [#34](#34)
github-actions bot pushed a commit that referenced this pull request May 24, 2024
## [8.5.4](v8.5.3...v8.5.4) (2024-05-24)

### Bug Fixes

* **issue137:** support ZEEBE_REST_ADDRESS and ZEEBE_GRPC_ADDRESS environment variables ([#159](#159)) ([41fdca0](41fdca0))
* **oauth:** correctly expire cached token ([#164](#164)) ([c86e550](c86e550)), closes [#163](#163)

### Features

* **camunda8:** support Basic Auth ([d6acdfd](d6acdfd)), closes [#165](#165)
* **oauth:** add conditional loading of client key and cert for getting a token ([#161](#161)) ([f05aa8a](f05aa8a))
* **zeebe:** support Zeebe User Task REST API ([022607b](022607b)), closes [#34](#34)
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.

3 participants