open-nomad/website/content/docs/concepts
Tim Gross 1cf28996e7 acl: prevent privilege escalation via workload identity
ACL policies can be associated with a job so that the job's Workload Identity
can have expanded access to other policy objects, including other
variables. Policies set on the variables the job automatically has access to
were ignored, but this includes policies with `deny` capabilities.

Additionally, when resolving claims for a workload identity without any attached
policies, the `ResolveClaims` method returned a `nil` ACL object, which is
treated similarly to a management token. While this was safe in Nomad 1.4.x,
when the workload identity token was exposed to the task via the `identity`
block, this allows a user with `submit-job` capabilities to escalate their
privileges.

We originally implemented automatic workload access to Variables as a separate
code path in the Variables RPC endpoint so that we don't have to generate
on-the-fly policies that blow up the ACL policy cache. This is fairly brittle
but also the behavior around wildcard paths in policies different from the rest
of our ACL polices, which is hard to reason about.

Add an `ACLClaim` parameter to the `AllowVariableOperation` method so that we
can push all this logic into the `acl` package and the behavior can be
consistent. This will allow a `deny` policy to override automatic access (and
probably speed up checks of non-automatic variable access).
2023-03-13 11:13:27 -04:00
..
plugins docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
scheduling Change job init default to example.nomad.hcl and recommend in docs (#15997) 2023-02-02 11:47:47 -06:00
acl.mdx docs: add ACL concepts page to introduce objects. (#15895) 2023-01-30 11:00:29 +01:00
architecture.mdx docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
consensus.mdx
filesystem.mdx docs: note that secrets dir is usually mounted noexec (#16363) 2023-03-07 11:57:15 -05:00
gossip.mdx docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
index.mdx
security.mdx docs: Migrate link formats (#15779) 2023-01-25 09:31:14 -08:00
variables.mdx acl: prevent privilege escalation via workload identity 2023-03-13 11:13:27 -04:00
workload-identity.mdx docs: fix typos in task-api.mdx and workload-identity.mdx (#16309) 2023-03-03 08:37:59 -05:00