@camunda8/orchestration-cluster-api 8.9.0-alpha.26 → 8.9.0-alpha.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # [8.9.0-alpha.28](https://github.com/camunda/orchestration-cluster-api-js/compare/v8.9.0-alpha.27...v8.9.0-alpha.28) (2026-04-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * shorten discriminant labels for multi-entry operations ([701aed6](https://github.com/camunda/orchestration-cluster-api-js/commit/701aed6a471ef2b138380e34f14c1d0f4d3469c5))
7
+
8
+
9
+ ### Features
10
+
11
+ * add imports field to operation-map entries ([a7ecf5f](https://github.com/camunda/orchestration-cluster-api-js/commit/a7ecf5fc68277565afecb2518de583e9f345de9b))
12
+
13
+ # [8.9.0-alpha.27](https://github.com/camunda/orchestration-cluster-api-js/compare/v8.9.0-alpha.26...v8.9.0-alpha.27) (2026-04-02)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * address review comments on mTLS tests and docs ([c7c26df](https://github.com/camunda/orchestration-cluster-api-js/commit/c7c26df1e3ab4bff848a5c4de7eacfc8e62f310a))
19
+
20
+
21
+ ### Features
22
+
23
+ * support CA-only TLS (self-signed server certs) ([25f11a7](https://github.com/camunda/orchestration-cluster-api-js/commit/25f11a75a74e4cd32f5ada5ff8d41fc50398b902)), closes [#108](https://github.com/camunda/orchestration-cluster-api-js/issues/108)
24
+
1
25
  # [8.9.0-alpha.26](https://github.com/camunda/orchestration-cluster-api-js/compare/v8.9.0-alpha.25...v8.9.0-alpha.26) (2026-04-02)
2
26
 
3
27
 
package/README.md CHANGED
@@ -981,18 +981,49 @@ Browser usage: There is no disk concept—if executed in a browser the SDK (when
981
981
 
982
982
  If you need a custom persistence strategy (e.g. Redis / encrypted keychain), wrap the client and periodically call `client.forceAuthRefresh()` while storing and re‑injecting the token via a headers hook; first measure whether the built‑in disk cache already meets your needs.
983
983
 
984
- ## mTLS (Node only)
984
+ ## Self-signed TLS / mTLS (Node only)
985
985
 
986
- Provide inline or path variables (inline wins):
986
+ The SDK supports custom TLS certificates via environment variables. This is useful for:
987
987
 
988
+ - **Self-signed server certificates** — trust a CA that signed your server's certificate, without presenting a client identity.
989
+ - **Mutual TLS (mTLS)** — present a client certificate and key to prove the client's identity.
990
+ - **Both** — trust a custom CA _and_ present client credentials.
991
+
992
+ ### Trusting a self-signed server certificate
993
+
994
+ Set only the CA certificate to trust the server's self-signed certificate:
995
+
996
+ ```bash
997
+ # Path to PEM file:
998
+ CAMUNDA_MTLS_CA_PATH=/path/to/ca.pem
999
+
1000
+ # Or inline PEM (must contain real newlines, not literal '\n'):
1001
+ CAMUNDA_MTLS_CA="$(cat /path/to/ca.pem)"
988
1002
  ```
989
- CAMUNDA_MTLS_CERT / CAMUNDA_MTLS_CERT_PATH
990
- CAMUNDA_MTLS_KEY / CAMUNDA_MTLS_KEY_PATH
991
- CAMUNDA_MTLS_CA / CAMUNDA_MTLS_CA_PATH (optional)
992
- CAMUNDA_MTLS_KEY_PASSPHRASE (optional)
1003
+
1004
+ ### Mutual TLS (client certificate)
1005
+
1006
+ To present a client certificate for mutual TLS, provide both the certificate and private key:
1007
+
1008
+ ```bash
1009
+ CAMUNDA_MTLS_CERT_PATH=/path/to/client.crt
1010
+ CAMUNDA_MTLS_KEY_PATH=/path/to/client.key
1011
+
1012
+ # Optional — passphrase if the key is encrypted:
1013
+ # CAMUNDA_MTLS_KEY_PASSPHRASE=secret
1014
+ ```
1015
+
1016
+ ### Full mTLS with custom CA
1017
+
1018
+ Combine a custom CA with client credentials:
1019
+
1020
+ ```bash
1021
+ CAMUNDA_MTLS_CA_PATH=/path/to/ca.pem
1022
+ CAMUNDA_MTLS_CERT_PATH=/path/to/client.crt
1023
+ CAMUNDA_MTLS_KEY_PATH=/path/to/client.key
993
1024
  ```
994
1025
 
995
- If both cert & key are available an https.Agent is attached to all outbound calls (including token fetches).
1026
+ Inline PEM values (`CAMUNDA_MTLS_CERT`, `CAMUNDA_MTLS_KEY`, `CAMUNDA_MTLS_CA`) take precedence over their `_PATH` counterparts. An `https.Agent` is attached to all outbound calls (including token fetches).
996
1027
 
997
1028
  ## Branded Keys
998
1029
 
@@ -3965,11 +3965,16 @@ function hydrateConfig(options = {}) {
3965
3965
  }
3966
3966
  const mtlsCertProvided = !!(rawMap.CAMUNDA_MTLS_CERT || rawMap.CAMUNDA_MTLS_CERT_PATH);
3967
3967
  const mtlsKeyProvided = !!(rawMap.CAMUNDA_MTLS_KEY || rawMap.CAMUNDA_MTLS_KEY_PATH);
3968
- const mtlsAny = mtlsCertProvided || mtlsKeyProvided || rawMap.CAMUNDA_MTLS_CA || rawMap.CAMUNDA_MTLS_CA_PATH || rawMap.CAMUNDA_MTLS_KEY_PASSPHRASE;
3969
- if (mtlsAny && (!mtlsCertProvided || !mtlsKeyProvided)) {
3968
+ if (mtlsCertProvided !== mtlsKeyProvided) {
3970
3969
  errors.push({
3971
3970
  code: "CONFIG_MISSING_REQUIRED" /* CONFIG_MISSING_REQUIRED */,
3972
- message: "Incomplete mTLS configuration; both certificate (CAMUNDA_MTLS_CERT|_PATH) and key (CAMUNDA_MTLS_KEY|_PATH) must be provided."
3971
+ message: "Incomplete mTLS configuration; both certificate (CAMUNDA_MTLS_CERT|_PATH) and key (CAMUNDA_MTLS_KEY|_PATH) must be provided together."
3972
+ });
3973
+ }
3974
+ if (rawMap.CAMUNDA_MTLS_KEY_PASSPHRASE && !mtlsKeyProvided) {
3975
+ errors.push({
3976
+ code: "CONFIG_MISSING_REQUIRED" /* CONFIG_MISSING_REQUIRED */,
3977
+ message: "CAMUNDA_MTLS_KEY_PASSPHRASE is set but no client key was provided."
3973
3978
  });
3974
3979
  }
3975
3980
  const validationRaw = rawMap.CAMUNDA_SDK_VALIDATION || "req:none,res:none";
@@ -4407,7 +4412,7 @@ function installAuthInterceptor(client2, getStrategy, getAuthHeaders) {
4407
4412
  }
4408
4413
 
4409
4414
  // src/runtime/version.ts
4410
- var packageVersion = "8.9.0-alpha.26";
4415
+ var packageVersion = "8.9.0-alpha.28";
4411
4416
 
4412
4417
  // src/runtime/supportLogger.ts
4413
4418
  var NoopSupportLogger = class {
@@ -16675,4 +16680,4 @@ export {
16675
16680
  withTimeoutTE,
16676
16681
  eventuallyTE
16677
16682
  };
16678
- //# sourceMappingURL=chunk-CCCMH2RY.js.map
16683
+ //# sourceMappingURL=chunk-JQMXVWIG.js.map