Shuffle API keys and service accounts: who calls the API and what they can reach
When an integration, CI job or scheduled automation needs to call Shuffle, the security team's question is what that caller can reach once it holds a credential. In Shuffle, API keys, session tokens and per-execution tokens are separate credentials issued for separate kinds of caller, so the answer depends on which one the caller uses. A service account design is worth doing deliberately as soon as a non-human caller will create or change workflows, read saved credentials, or act across more than one tenant. A single personal admin key shared by several pipelines makes both revocation and audit difficult, and it makes the blast radius of a leaked key hard to bound.
Start by inventorying every caller: which integration, pipeline or runtime component calls the backend API, what it does (trigger a workflow, read execution results, edit a workflow, manage apps), and which tenant or organization it belongs to. Map each caller to the credential type the Shuffle configuration and architecture docs describe for that action. Then confirm, for the exact version you run, the key formats, the permission model that applies to an API key compared with a user session, whether a key inherits its creator's role, how keys are rotated and whether old keys can be revoked without restarting services. These details change between releases, so check them in the Shuffle configuration docs and the Shuffle architecture docs rather than relying on earlier notes.
Write down the expected outcome of each service account before issuing it, and test that it cannot do more. Store each key in your secrets manager, scope the calling pipeline to read it only, and set a rotation date that your team can actually meet. Because saved app credentials are encrypted with the SHUFFLE_ENCRYPTION_MODIFIER secret, keep that value separate from API keys and plan its handling as a distinct item. Finally, test a rotation and a revocation in a non-production instance before you rely on either in an incident.
How the callers and credentials connect to Shuffle
The diagram starts with a human user session in the browser and an external integration or CI job holding an API key. Both reach the Shuffle frontend and the Go backend API on port 5001, which stores saved app credentials and API keys encrypted in OpenSearch. Orborus polls the backend for jobs on the runtime host, starts a worker for each workflow execution, and the worker starts app containers. Check each hand-off where a credential crosses a boundary, since that is where scope and rotation decisions matter.
Callers, backend, runtime and app containers, with credential hand-offs labeled.
Which credential fits which caller
This table compares the four credential types a Shuffle automation can use: session tokens, user-bound API keys, service account keys and per-execution tokens. Read each column to match a caller to the credential that limits its reach and lifetime. The main takeaway is that a credential's owner and revocation path matter more than its convenience.
| Credential | Typical caller | Lifetime and owner | How it is revoked | When it fits |
|---|---|---|---|---|
| Session token | A person working in the Shuffle web interface or a browser session | Issued to one signed-in user and tied to that user's session; ends when the session ends | Ends with sign-out or session expiry; confirm the exact session behavior in the configuration docs for your version | Interactive analyst work only; not suited to scripts or CI jobs |
| API key tied to a user | A personal script or a developer testing an API call | Owned by one user; acts with that user's permissions and disappears from automation if the user leaves | Revoked by the user or an admin; confirm whether deactivating the user also disables the key | Short personal tests; poor fit for shared integrations because the key follows one person's access |
| API key for a dedicated service account | Integrations, CI pipelines and scheduled jobs that call Shuffle on a schedule | Owned by a non-person account created for the automation; lifetime depends on the key settings you configure | Rotated or revoked by an admin without changing any human's access; confirm rotation steps for your version | Recurring integrations where the account's role and reach can be limited to what the job needs |
| Per-execution token | A workflow run that calls Shuffle's own API or another app during one execution | Created by the runtime for a single execution; owned by the platform rather than a person | Expires with the execution; confirm scope and expiry behavior in the configuration docs | Short-lived calls inside a playbook; avoid storing these outside the run |
Setting up a scoped service account for an integration
This sequence produces a dedicated Shuffle account with the lowest role that works, a key stored in your approved secrets system, and a tested integration that can reach only the workflows and apps it needs. Each step ends with a check so the account's reach is confirmed before it is trusted.
Define the integration's purpose and workflows
Before touching Shuffle, the integration owner writes down what the integration does, which workflows it must start or read, which apps those workflows call, and which data it must never see. Security and the platform team review the list. The output is a short written scope that names the workflows and the actions the account needs, such as starting one workflow by webhook or reading execution results. If the list grows to cover unrelated workflows, split it into separate integrations with separate accounts before continuing.
Create a dedicated service account
An administrator creates a new user for the integration instead of reusing a personal admin account or a shared human login. Give the account a name that identifies the integration and its owner, so audit entries are readable later. Record the owner and the purpose in your asset inventory. The check is that the new account appears in the user list as its own identity, separate from every human administrator, and that no existing user shares its credentials.
Assign the lowest role that works
Using the Admin, User and Reader role model, assign the least privileged role that still lets the integration do its documented job. Confirm the exact role names and what each role permits in the installed version, because menu labels and permissions can change between releases. Integrations that only trigger workflows rarely need admin rights. The check is a test login or API call with the new account that succeeds for the documented action and fails for an action outside scope, such as editing another workflow or changing user settings.
Generate the API key for the account
Sign in as the service account, or use an administrator to generate a key for it, and create the API key from the user settings page. Confirm the menu path against your installed version. Copy the key once, because it is shown at creation. Record the creation date and the owner in your change record so rotation can be scheduled. The check is that the key authenticates against the backend API and that the account's identity, not an administrator's, appears on the request.
Store the key in the approved secrets system
Place the key in the secrets manager your organization has approved for integrations, not in a script, a ticket, a chat message or a workflow variable visible to other users. Grant read access only to the systems and people that run the integration. Keep a note of the secret path and the owner. The check is that the integration retrieves the key from the secrets system at runtime, and that a search of the integration's code and configuration files finds no copy of the key in plain text.
Confirm the account's reach
Using the integration's key, attempt the actions it should be able to perform, then attempt actions outside its purpose: a workflow owned by another team, an app it does not need, and a settings change. Record each result. Access that is broader than the written scope means the role or the workflow sharing must be tightened, and the step repeats. The check is a short results table where every out-of-scope request is refused and every in-scope request succeeds. Confirm the account's visibility of workflows and apps in the installed version, because sharing behavior is version-specific.
Run a test execution
Start a test execution through the integration on a non-production workflow or a dedicated test workflow, and confirm the result reaches the expected destination. Check that the execution record shows the service account as the caller and that the workflow completes without errors. Verify that the integration handles a failed response from Shuffle, such as an expired or revoked key, without exposing the key in logs. The check is a passing test with the execution record, the caller identity and the error-path result saved to the change record before the integration goes live.
How saved keys and execution tokens move through a run
A workflow execution starts when a trigger or a user run request reaches the Shuffle backend API, which records the execution in OpenSearch. Orborus, the runtime component, polls the backend for jobs. When it finds one, it starts a worker for that workflow execution, and the worker starts the app containers that each action needs. Credentials do not travel as part of the workflow definition. An app container that needs to call a third-party system receives the authentication it needs at run time, so the path a key takes depends on how the app was configured. Your team should trace this path in your own environment, from the backend to Orborus, the worker and each app container, and note which hop can read which credential. Confirm the token lifetime and scope issued for each execution in the Shuffle architecture docs, because that detail decides how long a leaked execution token stays useful.
Saved app credentials and API keys are stored in OpenSearch and encrypted with AES-256 using the SHUFFLE_ENCRYPTION_MODIFIER secret, as described in the Shuffle configuration docs. That key is the single point that makes every stored credential readable. The docs warn that losing or changing it breaks all saved app authentications, so the value must be backed up in a secrets store you control, recorded with the deployment, and kept out of workflow exports and shared configuration files. Treat rotation of this secret as a separate planning exercise from rotating API keys. Rotating an API key is a routine change, but changing the encryption modifier requires re-entering or re-encrypting every saved credential, so schedule it as a migration with a tested rollback. Ask your Shuffle contact or check the configuration docs for the supported procedure before you attempt it on a production instance.
Security risks in automation credentials
Automation credentials give playbooks, integrations and CI jobs standing access to your security stack, often without a person attached. The risks below cluster around where keys are stored, who shares them, how long they live and what happens when the person who created them leaves.
Keys embedded in playbooks and CI variables
A key pasted into a workflow body, an app configuration or a CI variable is copied into every export, fork and pipeline log that touches it. Shuffle stores saved app credentials encrypted in its database, so keys held in workflow text or pipeline settings sit outside that protection. Use the Shuffle credential store for each app, and reference it by name. Check whether any exported workflow JSON, repository or CI variable contains a literal key string.
One key shared across integrations
When several integrations authenticate with the same key, a single leak exposes every system they reach, and rotation becomes a coordinated outage. Give each integration its own key with a name that identifies the consumer, such as the SIEM connector or the ticketing sync. Check the key inventory for keys used by more than one workflow or external system, and confirm which integrations would break if that key were rotated tomorrow.
Administrator keys used by automation
An automation running under an administrator account inherits every permission that account holds, including tenant settings, user management and app deployment. A playbook that only needs to read cases should never hold a key that can change access rules. Create a dedicated service account with the narrowest role that completes the task, and reserve admin keys for people performing administration. Check which keys belong to admin users and which workflows call Shuffle's API with them.
Encryption modifier without a backup plan
Shuffle encrypts saved app credentials and API keys in OpenSearch using the SHUFFLE_ENCRYPTION_MODIFIER secret, and the configuration docs warn that losing or changing it breaks every saved app authentication. A key vault backup of the database alone cannot restore those credentials. Store the modifier in your secrets manager, record who can read it, and test a restore into a staging instance to confirm that saved keys still decrypt. Check that the modifier is not kept only in the compose file on the host.
Configuration docsKeys exposed in logs and workflow outputs
Keys appear in places teams rarely review: debug output from a failed action, Liquid-formatted results sent to a chat channel, execution history visible to read-only users and webhook payloads written to case notes. Any of these copies a key outside the credential store. Mask values in outputs, avoid printing request headers in custom apps, and limit who can view execution history. Check recent execution results and error notifications for strings that match your key format.
Departing staff who own keys
Keys created under a person's account often stop working when that account is deactivated, or keep working if the account is only disabled in the identity provider and not in Shuffle. Either way, the owner is the last person who knows which automations depend on the key. Assign each key to a team owner, record its consumers, and include key review in offboarding. Check for keys whose creator is no longer an active user and for workflows still calling Shuffle with them.
Rotating keys for CI, integrations and workflows
CI pipelines usually call Shuffle to push workflow exports, trigger test executions or sync app definitions. The key sits in the CI system's secret store, and a rotation that forgets one pipeline shows up as a failed build, often long after the change. Rotate one pipeline group at a time so a failure stays contained, and keep the old key valid until every group has passed a run with the new key.
- Create the new key first: Generate a second key for the same automation account, so the old key keeps working while pipelines are updated.
- Find every copy: Search each repository, CI variable scope, group-level secret and deployment script for the key name and the Shuffle host, including pipelines that were archived but can still be triggered.
- Update one scope at a time: Change the secret in one project or environment, run a pipeline that makes a real Shuffle API call, then move to the next scope.
- Confirm the account, not the key: Check that a test call returns the expected workspace and permissions, so a pipeline does not quietly succeed against the wrong tenant.
- Revoke after a clean cycle: Remove the old key only after every scheduled pipeline has run at least once with the new value.
Before revoking, check that no pipeline logs still show authentication errors and that the secret store no longer holds the old value in any scope you did not intend to keep.
External integrations are the hardest consumers to rotate because the sender often cannot be changed quickly. Detection sources, ticketing tools and webhook callers may hold the key in a vendor console, a configuration file on another server, or a managed connector. Their owners may also be a different team, so the overlap window has to be agreed with them in writing before the change.
- Inventory before changing anything: List each sender that authenticates to Shuffle, the workflow or trigger it reaches and the vendor owner who can edit its configuration.
- Agree the overlap window: Set a date range in which both keys are accepted, and confirm the sender can switch within it. Test senders that retry slowly, since they may keep using the old key for hours.
- Use the trigger's own checks: Send a test event through each webhook and confirm the expected workflow execution starts, rather than only checking that the HTTP response is accepted.
- Watch for dropped events: Review execution history for the window and compare event counts from the source system, since some senders queue retries silently.
- Record the cutover: Keep a dated log of which sender moved to the new key, so a later investigation can explain gaps in the timeline.
Confirm with each owner that their sender stores the key only in the location you searched and that retries will use the new value once it is configured.
Workflows that call Shuffle's own API, for example to read cases, update a record or start another workflow, store the key inside app configuration or a workflow variable. Because these calls run inside Shuffle, a rotation can silently break scheduled playbooks that nobody has opened in weeks. Treat each one as a consumer with its own dependency list and test it as a separate step.
- Locate stored references: Check workflow variables, app authentication entries, HTTP action headers and any subflow that copies the value, since a key can be duplicated in several places.
- Prefer a dedicated automation account: Give workflows that call the API their own account with the smallest role that works, so that rotating one key does not affect human users or unrelated automation.
- Test scheduled and triggered runs: Start each workflow with a sample input in a test environment, then check the scheduled ones at their next run window or a manual execution.
- Check app credentials separately: Saved app authentications are encrypted with the platform's encryption secret, so a new API key stored there must be re-entered and retested rather than assumed to propagate.
- Keep the old key until schedules have run: Do not revoke until every scheduled workflow that uses the key has completed a successful execution with the new value.
Finally, confirm that the execution history shows the new key's account on each call and that no workflow still returns an authorization error.
Limiting what an automation account can reach
An API key or service account in Shuffle inherits whatever its owner can do, so the blast radius of a leaked key is set by how you scope the account. The decisions below connect role choice, account separation and tenant boundaries, and each one needs confirming against the Shuffle version you actually run.
Choose the role before the key
Shuffle's role model (Admin, User and Reader) sets the baseline for what any account can do, so pick the role first and create the key second. Confirm in your installed version which actions each role permits, especially whether a User role can edit workflows, manage apps or read stored credentials. Document the chosen role next to each key so reviewers can see why it exists.
Shuffle configuration docsSplit read-only enrichment from state changes
An enrichment lookup that reads threat intelligence needs no ability to block indicators, disable accounts or revoke sessions. Give read-only workflows their own account and keep response actions on a separate account with a narrower trigger path. If your version cannot restrict a key to read operations, confirm that before relying on role choice alone.
Dedicate one account per integration
When one shared key serves a SIEM connector, a ticketing sync and a CI job, a single rotation breaks all three and an audit trail cannot tell them apart. Create one service account per integration, name it after the system it serves, and record its owner. Confirm that your version logs which key performed each execution so you can trace actions back to the integration.
Limit which workflows an account can trigger
Shuffle workflows run with the permissions of the apps and credentials they call, so an account that can start a high-impact playbook can reach everything that playbook touches. Keep sensitive workflows behind human approval or a separate tenant, and review which saved app credentials each workflow uses. Confirm in your version whether trigger permissions can be set per workflow.
Set per-tenant boundaries deliberately
If several customers or business units share one Shuffle instance, an account in one tenant must not read workflows, executions or saved credentials in another. Confirm how tenant membership is enforced for API keys specifically, not only for interactive users, and test it with a key from each tenant. Where isolation is a contractual requirement, consider separate instances.
Know the gap in role-based limits
Role-based limits are coarse, and the supplied facts do not describe fine-grained API scopes such as per-endpoint or per-app permissions. Ask the vendor or check the release notes for any scoping beyond roles before promising least privilege to an auditor. Until scoping is confirmed, compensate with account separation, workflow review and short key lifetimes.
Questions teams ask before scoping Shuffle credentials
How much effort does a Shuffle service account design and rotation process take?
The effort depends mostly on how many integrations authenticate to Shuffle and how many apps store credentials in it. Each integration needs its own service account or API key, a documented owner, a stated reach (which workflows, apps and runtime locations it can touch) and a rotation method. Effort rises with the number of integrations, with CI pipelines that hold long-lived keys, and with any need to test rotation without breaking running workflows. Shuffle encrypts saved app credentials with the SHUFFLE_ENCRYPTION_MODIFIER secret, so rotation plans must also cover that secret and its backup. Ask any partner for a quote that lists each integration, the rotation mechanism and the test environment used to prove it.
Can our internal team design and rotate Shuffle credentials without a partner?
Yes, if you have an engineer who administers Shuffle, someone who owns each downstream integration, and a secrets system that people already use. The harder parts are usually not the Shuffle settings themselves but agreeing on who owns each key, rehearsing a rotation without an outage and documenting the result so it survives staff changes. Teams often bring in a partner for the initial design and the first rotation drill, then run routine rotation internally. Decide which of those steps your team has done before and where the gaps are.
What does the work need from our side before it starts?
Plan to provide three things before any design work begins:
- An inventory of every integration, CI job, webhook and script that calls the Shuffle API or uses a Shuffle key, with its owner and the workflows it triggers.
- The secrets system you want keys stored in and who administers it.
- Admin access to the Shuffle instance, or a named administrator who can make changes and review audit data during testing.
Missing inventory is the most common cause of surprises during rotation, because a forgotten integration fails the first time its key changes.
How long does a rotation cycle take to plan and test?
No duration is fixed here. The planning and testing time depends on the number of integrations, whether a staging instance exists, how many workflows depend on each key and how quickly your change process approves maintenance windows. Ask for a schedule that separates inventory, design, a rehearsal on a non-production instance, the first live rotation and the rollback plan. A rotation that has not been rehearsed against each integration should not be treated as ready.
What does a fixed-scope engagement for Shuffle credentials usually cover?
Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. For credentials, the written scope normally names the integrations covered, the account and key model to be implemented, the rotation procedure, the test evidence and the handover documentation. Ask whether the scope includes the encryption secret backup procedure, whether it covers only the Shuffle side or also the secrets system and downstream services, and what happens if your inventory turns out to be incomplete. A quote follows from that written scope.
What recurring work remains after handover?
Recurring work includes rotating keys on the schedule you set, reviewing which service accounts still exist and what they can reach, removing keys for retired integrations, and checking that the encryption secret remains backed up and unchanged. It also includes testing rotation again after each Shuffle upgrade, because API behavior and app credential handling can change between releases. Shuffle v2.3.0 was published on September 28, 2026, so version changes will occur. These tasks can be run by your team or covered by a support retainer, which DeployOpen offers. Confirm with any provider who owns each recurring task after handover.
Does limiting an automation account's reach break existing playbooks?
It can, if playbooks depend on access that the new account model does not grant. Before changing reach, list which workflows each account runs, which apps they call and which runtime locations they execute in. Then test the narrowed account against those workflows in a non-production instance. Shuffle's role model is limited, so some restrictions may need to be enforced through how accounts are created and which workflows they own, not through a fine-grained permission. Confirm what the current version can restrict before you commit to a design.
How DeployOpen scopes Shuffle credentials and service accounts
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, including Shuffle. For API keys and service accounts, we agree the scope in writing first, build the credential model in your environment, and hand over the runbooks your team needs to rotate and audit it.
How we scope
- Inventory every integration, CI job and workflow that calls the Shuffle API and which account it uses today.
- Define which automation accounts exist, which tenants and workflows each may reach, and which actions they need.
- Agree the written scope, deliverables and timeline before any work starts, with fixed scope as the default engagement model.
How we build
- Configure API keys and service accounts with the minimum role and tenant access each integration requires.
- Test that each automation account is denied actions and workflows outside its agreed boundary.
- Set up secure storage for keys, with encryption settings and secrets handling checked against the planned design.
How we hand over
- Document the key inventory, owners, permitted scopes and the rotation procedure for each integration and CI job.
- Walk your security and platform teams through revocation, rotation and audit log review on your own instance.
- Provide a retest record confirming the final permission model matches the written scope.
How we support
- Offer ongoing support and upgrades as a retainer, including review of new integrations before they receive keys.
- Retest permissions after Shuffle upgrades, app changes or changes to your identity provider.
- Confirm with your team which support tier and response terms apply, as these are set in the written agreement.

