Argo Workflows runs arbitrary containers on Kubernetes on behalf of whoever can submit a workflow, so its security rests on three things: how the Argo Server authenticates callers, which service accounts workflow pods run as, and how artefact repository credentials are scoped. An exposed server with weak authentication, or a workflow namespace where every pod gets a powerful token, gives an intruder a ready-made way to run compute and reach cluster secrets.
This guide is for platform engineers, data and ML platform teams and Kubernetes security owners who run Argo Workflows. It covers the components and their privileges, Argo Server authentication modes, SSO RBAC, workflow service accounts, template restrictions, artefact repositories, network exposure and detection. It covers Argo Workflows only. Argo CD, the GitOps delivery tool in the same project family, is covered in the Argo CD Security Guide, and wider GitOps patterns in the GitOps Security Guide.
Every setting named here comes from the Argo Workflows project documentation. Confirm names against the version you run, because fields and defaults change between releases.
Key takeaways
- The project documentation is plain that Argo does not otherwise restrict pod creation: anything insecure you can do with a Job, you can do with a Workflow. Treat workflow submission as equivalent to pod creation.
- The Argo Server supports three auth modes,
server,clientandsso, and the default isclient.servermode makes every caller act as the server's own service account, so avoid it for any reachable server. - Workflow pods use the
defaultservice account when none is set, and the main container mounts the service account token. Use a dedicated, minimal service account per workflow and setautomountServiceAccountTokentofalsewhere possible. - Never let users create workflows in the controller's own namespace.
templateReferencing: StrictorSecurelimits users to approved WorkflowTemplates, which moves security-sensitive fields under platform control.- Prefer keyless artefact access such as IRSA or Workload Identity over static access keys, and scope any keys to the artefacts each namespace needs.
How Argo Workflows is built and where the privilege sits
Argo Workflows has two main components with distinct privileges.
- The workflow controller watches workflow resources and creates pods to run their steps. The security documentation describes its permissions: it lists, gets and updates workflows and cron workflows; creates, gets and deletes pods, persistent volume claims and pod disruption budgets; and lists and gets templates, config maps, service accounts and secrets. These permissions apply either cluster-wide, for a cluster install, or to one managed namespace, for a namespace install.
- The Argo Server serves the UI and API, typically on port 2746, and receives webhooks. Its security has three layers in the documentation: transport layer security, an authentication mode, and the
argo-serverRole and RoleBinding.
The controller creates workflow pods only in the workflow's own namespace. That makes the namespace the real tenancy boundary. The documentation warns not to let users create workflows in the controller's namespace, typically argo, because they may then be able to modify the controller. For namespace installs, use a managed namespace that is separate from the controller's.
The non-human identities to inventory are therefore the controller service account, the Argo Server service account, every service account workflow pods run as, any service accounts used for SSO RBAC mapping, and the cloud or storage credentials used for artefacts. Each needs an owner and a scope.
Argo Server auth mode
The auth mode documentation lists three modes, set with the --auth-mode flag, which can be passed more than once to enable several modes together.
| Mode | How it authenticates to Kubernetes | Security implication |
|---|---|---|
client (default) | Uses the caller's own Kubernetes bearer token, checked with a SelfSubjectReview; requires Kubernetes 1.28 or later | Each caller acts with their own Kubernetes permissions |
server | Uses the server's own service account when hosted, or the local kube config when run locally | Every caller acts as the server identity, so the server's role becomes everyone's role |
sso | Uses single sign-on; uses the same service account as server mode for RBAC unless SSO RBAC is enabled | Without SSO RBAC, every signed-in user shares one service account |
The documentation notes that successful client token reviews are cached for the period set by ARGO_SERVER_TOKEN_REVIEW_CACHE_TTL, which defaults to one minute. A revoked token can therefore keep working briefly.
Choosing a mode
- Use
ssowith SSO RBAC enabled for people, andclientfor automation that holds its own Kubernetes token. The documentation shows enabling both, for example--auth-mode=sso --auth-mode=client. - Reserve
servermode for a server that is not reachable by anyone else, such as one run locally by a single user. A reachable server inservermode lets anyone who can connect act as its service account. - Enable TLS on the server, as the security documentation lists transport security as the first layer.
- Bind the
argo-serverRole to the narrowest set of verbs that the deployment needs. The documentation notes that read-only access can be built by binding onlyget,listandwatch.
An Argo Server exposed to the internet without strong authentication is a direct route to running containers in your cluster. Free compute of that kind is exactly what cryptomining operators look for, and the Cryptojacking Guide covers that threat in general terms.
SSO RBAC and session handling
With SSO alone, every user shares one service account. SSO RBAC fixes this by mapping users to different service accounts based on their identity provider claims. The SSO documentation describes it as follows.
- Enable it with
rbac.enabled: trueunder thessosettings in the workflow controller ConfigMap, and addgroupstosso.scopeswhere your provider supports it. - Annotate service accounts in the Argo Server's namespace with
workflows.argoproj.io/rbac-rule, an expression overgroups,issandsubthat must evaluate to true or false, for example'admin' in groups. - Use
workflows.argoproj.io/rbac-rule-precedenceto order rules. Higher values win, and when two matching rules share a precedence, the choice is arbitrary. Give every rule a distinct precedence. - If no rule matches, access is denied. A rule of
trueat the lowest precedence acts as a fallback account. If you use one, give it read-only permissions at most. - Namespace delegation, enabled with
SSO_DELEGATE_RBAC_TO_NAMESPACE=true, lets namespace owners map users to service accounts in their own namespaces, after a cluster-level login account matches.
The documentation also flags several session points that matter for incident response:
- The default SSO session lasts 10 hours, adjustable with
sso.sessionExpiry. Shorter sessions limit how long a stolen cookie works. - Claims, including group membership, are fixed at login. Removing a user from a group at the identity provider does not take effect until their session expires or they log in again.
- Deleting the
ssosecret only invalidates tokens if every Argo Server is restarted, because running servers keep the old key in memory. insecureSkipVerify: truedisables certificate verification and is intended only for development.
Because SSO RBAC maps people to Kubernetes service accounts, those accounts are effectively shared credentials for groups of humans. Keep their roles narrow, separate read-only and submit roles, and review the rules alongside group membership.
Workflow service accounts
This is where most of the identity risk sits. The workflow RBAC documentation says workflow pods run as the service account in workflow.spec.serviceAccountName, or the namespace's default service account if the field is omitted. It advises against using default in production, because it is shared and may accumulate permissions you do not want, and recommends a dedicated service account for each workflow.
The security documentation adds three facts that shape the design:
- Any service account in the namespace can be used by a workflow. A user who can submit workflows in a namespace can choose any service account in it.
- The main container mounts the service account token and can patch pods. Setting
automountServiceAccountTokentofalseprevents this. - Workflows that need elevated permissions should use a separate service account.
A minimal service account pattern
- Create a dedicated service account for each workflow or workflow family.
- Bind it to the executor Role from the documentation, which grants
createandpatchonworkflowtaskresultsin theargoproj.ioAPI group, plus only the extra permissions that workflow's tasks need. - Set
automountServiceAccountToken: falsefor workflows whose steps do not call the Kubernetes API. - Put workflows that need powerful service accounts in their own namespace, so other submitters cannot select those accounts.
- Strip permissions from the
defaultservice account in workflow namespaces.
Because any service account in a namespace is selectable, namespace design and service account design go together. The Kubernetes RBAC Guide covers role design, and How to find unused Kubernetes service accounts helps clean up accounts left behind by retired workflows.
Pod security
The security documentation notes that workflow pods run as root by default. Set a pod security context in workflow defaults, run as a non-root user, and drop privileges. Enforce the same at the cluster level with admission control, so a submitted workflow cannot override the defaults.
Restricting what users can submit
Since the security documentation states that Argo does not restrict pod creation beyond workflow restrictions, that feature is the main lever for multi-tenant clusters. It is set with templateReferencing under workflowRestrictions in the workflow-controller-configmap.
Strictprocesses only workflows that useworkflowTemplateRef. Arbitrary workflow execution is not allowed.Securedoes everythingStrictdoes and also checks that the referenced WorkflowTemplate has not changed between operations. A workflow errors out if its template changes while it runs.
Under either setting, a submitted workflow may set only allow-listed fields on top of the template. The documentation lists the default allow-list, which includes arguments, entrypoint, activeDeadlineSeconds, ttlStrategy, podGC and similar operational fields. Security-sensitive fields such as serviceAccountName, securityContext, volumes, hostNetwork and podSpecPatch must therefore be set in the WorkflowTemplate. The allow-list can be extended with WORKFLOW_USER_OVERRIDE_ALLOWLIST, but nested artifactGC.podSpecPatch, artifactGC.serviceAccountName and artifactGC.podMetadata stay blocked.
NHI Mgmt Group recommends Secure for shared clusters, with WorkflowTemplates owned and reviewed by the platform team through version control, and a strong reason documented for every field added to the allow-list. Adding serviceAccountName to the allow-list, for example, hands back the choice of identity to submitters.
Keep the user permissions themselves small. The documentation notes that users minimally need permission to create and read workflows, and that a role with only create rights suits automation service accounts. It also provides a sample read-only Role, ui-user-read-only, for people who only need to view workflows and logs.
Artefact repositories and their credentials
Artefact repositories hold workflow inputs and outputs, which often include data sets, models, build outputs and logs. The credentials that reach them are non-human identities in their own right.
How the repository is chosen
The artefact repository documentation sets out an order. An explicit artefact repository reference in the workflow comes first, and the documentation describes it as the most flexible, safe and secure option. Otherwise Argo uses an artifact-repositories ConfigMap in the workflow's namespace that carries the workflows.argoproj.io/default-artifact-repository annotation, and only then falls back to artifactRepository in the controller ConfigMap. Per-namespace ConfigMaps let each namespace use its own repository and credentials, with secrets read from the namespace where workflows run.
Credential choices
- Keyless first. The documentation recommends IRSA for S3, by annotating a service account with an IAM role and setting
serviceAccountNamein the workflow.useSDKCreds: trueuses the SDK's default credential chain, which also covers instance roles, Azure Managed Identities and OSS RRSA. On GKE, Workload Identity removes the need forserviceAccountKeySecret. - Static keys only where needed. Access keys sit in Kubernetes Secrets referenced through
accessKeySecretandsecretKeySecret. The documentation recommends credentials that limit access to the artefacts users should reach, a least-privilege IAM user for AWS, and removings3:DeleteObjectif artefact garbage collection is not configured. - Temporary credentials expire. The documentation notes that assumed-role and S3 Access Grants credentials must be refreshed by an external mechanism. Monitor that mechanism so failures do not push teams back to static keys.
Other artefact risks the documentation calls out
- Keep
insecureset tofalsefor TLS endpoints, and usecaSecretto verify certificates from a private CA. - Argo explicitly allows path traversal in artefact keys containing
../. Scope bucket permissions by prefix so a workflow cannot reach other namespaces' artefacts. - UI uploads go to an
uploads/{namespace}/prefix and are not deleted if the workflow is never submitted. Apply a lifecycle rule to that prefix. - The MinIO quick-start server uses fixed credentials and is not for production artefacts.
NHI Mgmt Group recommends one repository credential, or one keyless role, per namespace, scoped to that namespace's prefix. A single shared key in the controller ConfigMap means every workflow can read every other team's outputs.
Network exposure
The security documentation describes the expected network flows, which give you a NetworkPolicy baseline:
- The Argo Server on port 2746 is exposed to users for the UI and webhooks, typically through an ingress or load balancer. Put it behind your corporate access path rather than on a public address, and require TLS.
- The server needs egress to artefact providers for UI downloads, and both server and controller need egress to the database if workflow archiving or offloading is enabled.
- The controller exposes Prometheus metrics on port 9090 through the
workflow-controller-metricsservice. Allow ingress to it only from your monitoring namespace.
Apply NetworkPolicy to the Argo namespace to allow only those flows, and restrict egress from workflow namespaces to the destinations workflows legitimately need. Default-deny egress makes a hijacked workflow far less useful for mining or data theft. The Kubernetes Network Policy Guide covers the mechanics.
Logging and detection
Most Argo activity is visible in the Kubernetes audit log, because workflows, templates and pods are Kubernetes resources. Useful detections include:
- Workflows created by identities that do not normally submit them, or submitted through the Argo Server from new sources.
- Workflows that use a service account other than the one their template expects, or that use
default. - Pods in workflow namespaces running images from registries outside your approved list, which ATT&CK maps as T1610 Deploy Container.
- Sustained high CPU use by workflow pods outside expected schedules, consistent with T1496 Resource Hijacking.
- Workflow pods reading secrets or calling the Kubernetes API when their template does not need it.
- Changes to the workflow controller ConfigMap, particularly
workflowRestrictions,ssoandartifactRepository.
Any detection built on these is environment-specific; test it against your own audit data. The Kubernetes Audit Log Detection Guide covers the audit fields and pipeline.
Common failure patterns
- Server mode on a reachable server. Every caller inherits the server's service account permissions.
- SSO without SSO RBAC. All users share one service account, so every user has the same, usually broad, rights.
- Workflows on the default service account. A shared account that has collected permissions over time, with its token mounted in every pod.
- Powerful service accounts in shared namespaces. Any submitter can choose them.
- Users creating workflows in the controller namespace. Explicitly warned against in the documentation.
- No template restrictions. Users submit arbitrary pod specs, including host access or privileged settings.
- One artefact key for everything. A static key in the controller ConfigMap with access to every namespace's data.
- Open egress from workflow pods. Hijacked workflows can reach mining pools or exfiltration endpoints freely.
Practitioner checklist
- Run the Argo Server with TLS, in
ssomode with SSO RBAC for people andclientmode for automation, neverservermode when reachable. - Give every SSO RBAC rule a distinct precedence and keep any fallback account read-only.
- Shorten
sso.sessionExpiryto suit your risk and restart all servers after rotating thessosecret. - Create a dedicated, minimal service account per workflow, remove permissions from
defaultand setautomountServiceAccountToken: falsewhere possible. - Keep user workflows out of the controller namespace and isolate privileged workflows in their own namespaces.
- Set
templateReferencingtoSecureon shared clusters and control WorkflowTemplates through review. - Use keyless artefact access, one scoped credential per namespace, and lifecycle rules on upload prefixes.
- Apply NetworkPolicy to the Argo namespace and default-deny egress to workflow namespaces.
- Alert on unusual workflow submitters, service account use, images and controller ConfigMap changes.
Standards and references
- Argo Workflows: Security
- Argo Workflows: Argo Server Auth Mode
- Argo Workflows: Argo Server SSO
- Argo Workflows: Workflow RBAC
- Argo Workflows: Workflow Restrictions
- Argo Workflows: Configuring Your Artifact Repository
- MITRE ATT&CK: T1496 Resource Hijacking
- OWASP: Non-Human Identities Top 10 2025
Related NHI Mgmt Group resources: Argo CD Security Guide · GitOps Security Guide · Kubernetes RBAC Guide · Cryptojacking Guide