In the Camunda On Sovereign Cloud series we put Camunda 8 on STACKIT, and we spent a lot of time on the cluster. But once processes run, the cluster is only half of it. Connectors and agents are the parts where the flow leaves the cluster. Every REST call and every model call carries a credential, and where that credential lives is part of the same sovereignty question.
On our platform the answer was a chain: Terraform writes the value into STACKIT Secrets Manager, External Secrets syncs it into a Kubernetes Secret, and the connector runtime reads it as a SECRET_* environment variable. It works, and it’s what Part 3 describes. The downside is that every new connector secret is a change to the runtime deployment, and an environment variable only changes when the pod restarts.
So I built a small secret provider that skips the chain. The connector runtime reads {{secrets.*}} directly from STACKIT Secrets Manager.
🔗 The code is on GitHub: camunda-connectors-stackit-secrets.
Why Not The New Cluster Secret Store
Camunda 8.10 changed how secrets are handled. The recommended syntax is now camunda.secrets.<name>, resolved centrally by the Orchestration Cluster instead of the connector runtime. In Self-Managed, that store can be a file directory, AWS Secrets Manager or GCP Secret Manager. STACKIT isn’t on the list.
The legacy syntax {{ secrets.<name> }} stays fully supported. It’s resolved by the connector runtime, and the runtime asks its secret providers. A secret provider is a plain Java SPI: you implement one interface, register it in a META-INF/services file, and put the jar on the classpath. This provider uses exactly that interface. If you’ve read my earlier article on connector secrets, it’s the same mechanism, just with a different backend.
The provider works for {{ secrets.* }} only. The cluster store doesn’t read connector runtime providers, so camunda.secrets.<name> won’t find anything this provider knows.
How The Provider Works
STACKIT Secrets Manager speaks the HashiCorp Vault API. The provider uses two calls from it: a userpass login and a read of one KV v2 secret.
public final class StackitSecretProvider implements SecretProvider, AutoCloseable {
public StackitSecretProvider() {
this(StackitSecretsConfig.fromEnvironment());
}
@Override
public String getSecret(String name, SecretContext context) {
return cache == null ? null : cache.get(name).orElse(null);
}
}The runtime creates the class through ServiceLoader, so it needs a public no-args constructor and no Spring. Configuration comes from environment variables. If STACKIT_SECRETS_INSTANCE_ID isn’t set, the provider stays inert. It logs one line and makes no network calls. That lets you ship one runtime image to environments with and without STACKIT.
One runtime reads one secret path. Each key inside that secret is one secret name, so {{ secrets.MY_API_KEY }} reads the key MY_API_KEY. The provider loads the whole secret at once and caches it, five minutes by default. When the cache expires, one thread reloads it while the others wait, so a secret you rotate in STACKIT reaches the runtime within one TTL and nobody has to restart anything.
The login returns a token with a lease. The provider renews it before the lease ends, and if STACKIT answers with a 403 anyway, it logs in once more and retries. If a reload fails while the cache still holds values, it serves the old values and logs a warning. I think that’s the right tradeoff for a runtime that executes jobs, because a short outage of the secret store shouldn’t stop every connector.
An unknown name returns null, not an error, so the next provider in the chain gets to answer.
Setting It Up
On STACKIT
You need an instance, a read-only user for the runtime and a separate write user for seeding. Don’t give the runtime write access it never needs.
stackit secrets-manager instance create --name camunda-secrets --acl <egress-cidr> -p <project>
stackit secrets-manager user create --instance-id <instance-id> -p <project>The ACL must contain the egress IP of your connector runtime. If it doesn’t, the reads time out instead of being rejected, which is confusing. On our platform the Secrets Manager endpoint is public and protected by exactly this ACL, as described in Part 3.
Then seed the secret with the write user. Log in, and post the keys:
TOKEN=$(curl -s -X POST -H 'Content-Type: application/json' \
-d '{"password":"<write-user-password>"}' \
https://prod.sm.eu01.stackit.cloud/v1/auth/userpass/login/<write-user> \
| jq -r .auth.client_token)
curl -s -X POST -H "X-Vault-Token: $TOKEN" -H 'Content-Type: application/json' \
-d '{"data":{"MY_API_KEY":"value","DB_PASSWORD":"value"}}' \
https://prod.sm.eu01.stackit.cloud/v1/<instance-id>/data/<path>One gotcha: send the login with Content-Type: application/json. Generated passwords contain characters like % and =, and without the header they get mangled on the way. The error you get is 400 invalid username or password, which sends you looking at the wrong thing.
In The Runtime
There’s no release yet, so you build the jar with mvn package. It bundles no dependencies, because the connector runtime already ships connector-core, Jackson and SLF4J. Copy it into the bundle image, which loads extra jars from /opt/custom:
FROM camunda/connectors-bundle:<8.10 tag>
COPY target/camunda-connectors-stackit-secrets-<version>.jar /opt/custom/Then set the environment of the runtime. In Helm values:
env:
- name: STACKIT_SECRETS_INSTANCE_ID
value: "<instance-id>"
- name: STACKIT_SECRETS_USERNAME
value: "<read-only-user>"
- name: STACKIT_SECRETS_PATH
value: "<path>"
- name: STACKIT_SECRETS_PASSWORD
valueFrom:
secretKeyRef:
name: stackit-secrets-manager
key: passwordYes, there is still one Kubernetes Secret: the password of the read-only user. That’s one bootstrap credential per runtime instead of one environment variable per connector secret. If any of the four variables is missing once the instance ID is set, startup fails and names every missing one. The endpoint defaults to eu01, and cache TTL and request timeout are configurable. In the model, nothing changes. A connector field still says {{ secrets.MY_API_KEY }}.
Resolution Order And Limits
The runtime can have several secret providers. Environment variables with the SECRET_ prefix come first, then the SPI providers, and the first non-null value wins. That’s why this provider returns null for names it doesn’t know. During a migration you can keep some secrets as environment variables and move the rest to STACKIT, one by one. A name defined in both places resolves from the environment variable, so delete the old one when you move it.
The 8.10 secret filter still applies. By default it runs in strict mode and only resolves a secret in the field of the element where the model declares it. The provider doesn’t need that switched off.
These are the limits of this first version:
One secret path per runtime. If you need separation, run separate runtimes.
Userpass authentication only, no AppRole.
Tenant and process context aren’t used. Every process on that runtime can reference every key in the path, so the path is your isolation boundary.
The integration tests run against a stock Vault container, plus an optional live test against a real STACKIT instance.
When STACKIT gets a cluster secret store in Camunda, or you decide to feed the file store yourself, the runtime’s FALLBACK legacy mode lets you move to camunda.secrets.<name> field by field. Legacy references that no provider answers are then looked up in the cluster store. Until then, this provider serves {{secrets.*}} straight from STACKIT.
What’s Next
Camunda 8.10 cluster stores don’t cover STACKIT, but the legacy
{{secrets.*}}syntax and its SPI providers do.The provider reads one KV v2 path, caches it, renews its token and serves stale values when STACKIT is briefly gone.
Next week I’ll use exactly this provider for the token of an AI agent running against STACKIT AI Model Serving, so the model and its credential stay on the same cloud.

