Marmot's identity
Your instance signs short-lived tokens for the pipelines, secret stores and service accounts in it, so a source signs in without a password or key. The system you sign in to fetches your instance's public keys from your instance, and your instance connects out to that system with the token. Workload identity explains how it works.
What a system trusts
Your instance is its own issuer, with keys of its own that no other instance shares:
- Issuer:
https://<instance>.marmotdata.cloud - Key set URL:
https://<instance>.marmotdata.cloud/.well-known/jwks.json - Subject:
pipeline:<pipeline-name>,secretStore:<store-name>orserviceAccount:<account-name>
The issuer stays the marmotdata.cloud address after you add a custom domain, so trust you set up keeps working. The key set needs no authentication and is public, so any system with internet access can check your instance's tokens.
When you choose Marmot's identity for a source, the add source form shows these values with the pipeline's subject and audience filled in, and the steps the source needs to trust your instance.
Use it
- Google Cloud, AWS and Azure: a pipeline swaps its token for cloud credentials. Follow the guide for Google Cloud, AWS or Azure.
- Grafana: a Grafana pipeline signs in with Grafana's JWT authentication. See Connect Grafana.
- Kubernetes: a cluster whose API server trusts your instance signs the pipeline in as a user of its own. The add source form shows the API server's authentication config and role binding.
- Vault: a secret store signs in with Vault's JWT auth method. See Secret stores.
- Service accounts: an agent asks for its account's token. See Use the account's identity in your cloud.
Things to know
- Your instance connects to public addresses only, so a source on a private network needs a runner, which signs in with credentials of its own in that network.
- Pipelines are named by name in tokens, so renaming a pipeline breaks what was granted to it. Pipeline names are identities says what to do.
- Every token your instance mints is recorded with its subject, audience and id.
Next steps
- Workload identity reference: every claim, subject and audience.
- Connect Grafana: a pipeline with no service account token.