The Simplest Way to Make Argo Workflows and Lastpass Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing argo workflows and lastpass lets teams run automated tasks with stored secrets. A sync controller pulls keys from the vault into Kubernetes secrets for pods. Teams use LastPass to store passwords, keys, and tokens in shared folders. Argo Workflows runs container jobs on Kubernetes to build code and move data. When you pair them, pods read the keys they need at runtime. This setup stops engineers from pasting raw passwords into workflow YAML files. It also lets teams update a password in

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Pairing argo workflows and lastpass lets teams run automated tasks with stored secrets. A sync controller pulls keys from the vault into Kubernetes secrets for pods.

Teams use LastPass to store passwords, keys, and tokens in shared folders. Argo Workflows runs container jobs on Kubernetes to build code and move data. When you pair them, pods read the keys they need at runtime. This setup stops engineers from pasting raw passwords into workflow YAML files. It also lets teams update a password in one place when keys change.

How argo workflows and lastpass share keys and roles

Argo Workflows does not read directly from a human password vault on its own. Instead, a cluster sync operator logs in to LastPass using a service account. That operator reads specific items from a shared folder on a set schedule. It then writes those values into native Kubernetes secret objects inside your namespace.

Once the Kubernetes secret exists, the workflow controller can mount it into pods. Your workflow step reads the secret as an environment variable or a file. Each job uses a Kubernetes service account to ask for that secret. Role rules in the cluster check if the pod has permission to read it. This flow keeps the main vault account out of your individual job containers. It also stops every single workflow pod from hitting Vault API rate limits.

Common failure modes and how to scope roles

Many teams fail by using one giant service account for all sync jobs. If that account can read every folder, one bad workflow exposes every secret. Shared accounts also make audit logs useless when you check who read a key. You see the sync bot in the log instead of the real team.

Another big risk is giving pods broad tokens that never expire. If a workflow log prints environment variables by mistake, that key leaks forever. Unlogged database queries or API calls from those pods also create blind spots. Security teams cannot see what data a pod changed after it logged in.

Access Request Workflows + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, split your vault secrets into small folders by team and app. Give each namespace its own sync role scoped to just one folder. Bind each workflow template to a unique Kubernetes service account with tight read rules. Lock down network paths so only the sync pod can reach the external vault. Never let standard worker pods talk to the password manager API on their own.

Managing secret rotation and pod lifecycles

Long workflows can fail when a password changes in the middle of a run. You must plan how updates move from the vault to running pods. When a team updates a key in LastPass, the sync tool spots the change. It then updates the Kubernetes secret in the target namespace on its next check.

Pods that read secrets as environment variables will not see the new value right away. They keep the old key until the step stops and a new pod starts. Mounted secret files do update inside the pod, but apps must reload them. Keep workflow steps short so new pods always grab the latest secret version. Also, set strict retention rules so finished pods and their logs get cleaned up fast. Masking rules can also rewrite emails, phone numbers, card numbers, and national IDs in results.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Should each Argo workflow pod log in to LastPass directly?

No, having every pod log in directly will trigger rate limits and spread master keys. Use an external secret operator inside the cluster to sync values into Kubernetes secrets.

How do we stop workflow logs from leaking synced passwords?

Turn off verbose shell tracing in your container steps so variables never print to stdout. Also, mount secrets as files in memory instead of passing them as environment variables.

What happens if the LastPass API goes down during a workflow run?

If you sync secrets to Kubernetes ahead of time, running jobs will not break. Pods will keep reading the cached Kubernetes secret until the vault API comes back online.

The query runs. The emails stay hidden.