Skip to content

[BUG] Build Controller Has Permission to Modify CRDs #1789

Open
@adambkaplan

Description

@adambkaplan

Is there an existing issue for this?

  • I have searched the existing issues

Kubernetes Version

Kubernetes 1.30.0

Shipwright Version

v0.14.0

Current Behavior

In #1646, the build controller was granted permission to patch CustomResourceDefinitions. This presents a minor security risk due to the controller having excessive permissions (violates principle of least privilege).

Admins using the version migrator should create a dedicated service account and RBAC for this purpose.

Expected Behavior

The build controller should not have permission to modify CRDs.

Steps To Reproduce

  1. Install Shipwright Builds v0.14.0.
  2. Inspect the RBAC granted to the build controller's service account.

Anything else?

No response

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

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions