Skip to content

Restrict CloudDeploy SA of application to be able to deploy only to the application's namespace #10

@gushob21

Description

@gushob21

As of now, each application when created gets a Cloud Deploy service account that does the app deployment on the GKE cluster. This SA gets container.developer role so it can technically deploy to any namespace in the cluster, which is a security risk.
We should follow a principle least privilege and implement RBAC based SA so that they can only deploy to a given name space on the cluster.
An example on how to do this is https://cloud.google.com/deploy/docs/securing/sa-by-namespace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions