Skip to content

Enforce access checks for brokers in the k8s workloadattestor #7074

Description

@matheuscscp

Follow up for #6915. Now addressed directly in #6915

Before the Broker API k8s support is released, add two broker-aware behaviors to the k8s workload attestor:

  1. Broker-originated Attest() and AttestReference() requests that ask for selectors for a Kubernetes object should run a Kubernetes SubjectAccessReview before returning selectors. The review should use the broker SPIFFE ID as the SAR username and no groups, allowing the Kubernetes authorizer to decide which objects each broker is allowed to reference.

  2. Add a per-broker pod reference scope. The default should restrict pod references to the agent node: the referenced pod must have spec.nodeName matching the configured agent node name (node_name / node_name_env). A broader cluster scope should remove that same-node restriction, while still requiring the SubjectAccessReview check above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions