Skip to content

Governance: update maintainer Admin exception rule#28859

Merged
mheon merged 1 commit into
podman-container-tools:mainfrom
Luap99:governance
Jun 23, 2026
Merged

Governance: update maintainer Admin exception rule#28859
mheon merged 1 commit into
podman-container-tools:mainfrom
Luap99:governance

Conversation

@Luap99

@Luap99 Luap99 commented Jun 4, 2026

Copy link
Copy Markdown
Member

Instead of granting people outright admin access we should limit the scope. Github offers us a org wide "CI/CD Admin" rule that can be used to manage all the import CI configs. In particular I assigned that role to Ashley as she requires that access to manage the macos worker pool.

Using the roles to limit access is better for security as we do not have to give out Admin or org wide Owner access then.

Does this PR introduce a user-facing change?

None

@Luap99

Luap99 commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

@giuseppe giuseppe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea,

LGTM

@mtrmac

mtrmac commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

+1

@ashley-cui

Copy link
Copy Markdown
Contributor

Note that this only gives access to org-wide CI configs. I don't have access to maintain repos that I'm not a maintainer of, ie buildah, skopeo. It might be a good idea to create a CI/CD repo role to give to those who need it.

@Luap99

Luap99 commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

Note that this only gives access to org-wide CI configs. I don't have access to maintain repos that I'm not a maintainer of, ie buildah, skopeo. It might be a good idea to create a CI/CD repo role to give to those who need it.

Ah I thought the org thing trumps repo rules but I guess not, I guess we need to create custom per repo rule then with "CI/CD Admin" access and then can assign users to that as well.

@packit-as-a-service

Copy link
Copy Markdown

[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore.

@mheon

mheon commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Does this really give secrets access? Huh.

@Luap99

Luap99 commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

Does this really give secrets access? Huh.

So wait reading the github docs the ability to edit secrets should already be there with the write access
https://docs.github.com/en/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/repository-roles-for-an-organization

So this role is really only about for org wide secrets/runner management. I don't think this role per repo would make sense.

Looking into the role settings there seem to be difference between actions secrets which you get with write access

Manage repository Actions secrets
Manage repository Actions variables

and

Manage repository environments, environment secrets and variables

which the extra CI/CD role adds, totally not confusing...

I know @ashley-cui needs the org wide role for the org wide runner management but for the per repo actions secrets we use it does not seem to be needed

@Luap99

Luap99 commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

Ok this seems to be related to the environment feature
https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments

Seems like something worth investigating to further harden release workflows

@Luap99

Luap99 commented Jun 5, 2026

Copy link
Copy Markdown
Member Author

updated the wording to mention both org and repo level rules, hopefully this is not to confusing

@Luap99 Luap99 marked this pull request as ready for review June 5, 2026 14:01
@Luap99 Luap99 changed the title [RFC] Governance: update maintainer Admin exception rule Governance: update maintainer Admin exception rule Jun 5, 2026
@ashley-cui

Copy link
Copy Markdown
Contributor

LGTM

Comment thread GOVERNANCE.md Outdated
* Have a voice, but not a vote, in Core Maintainer decision-making meetings
* For repositories hosted on GitHub, Maintainers receive Maintain privileges by default by being added to the `<repo-name>-maintainers` team and removed from the `<repo-name>-reviewers` teams.
If they have a legitimate reason to require Admin privileges (e.g. working on project CI systems), a Maintainer can petition a Core Maintainer to be granted these additional privileges in GitHub.
If a Maintainer needs or wants to work on the CI/CD pipelines and requires elevated access to manage things like secrets or the github runners they

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should probably be a separate paragraph - newline before, no indentation

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, updated

Comment thread GOVERNANCE.md Outdated
If they have a legitimate reason to require Admin privileges (e.g. working on project CI systems), a Maintainer can petition a Core Maintainer to be granted these additional privileges in GitHub.
If a Maintainer needs or wants to work on the CI/CD pipelines and requires elevated access to manage things like secrets or the github runners they
can petition a Core Maintainer to be granted these additional privileges in GitHub. Depending on what kind of access is required they can be given
the "CI/CD Admin" *Organization* role which enables them access to organization wide runners or secret configuration or they can get the "CI/CD Admin" *Repository* role (must be granted per repository) to access the repository level runners or secrets.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"to organization-wide runner and secret configuration, or they can ask for the 'CI/CD Admin'..."

@baude

baude commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

I'm LGTM either wording.

Instead of granting people outright admin access we should limit the
scope. Github offers us a org wide "CI/CD Admin" rule that can be used
to manage all the import CI configs. In particular I assigned that role
to Ashley as she requires that access to manage the macos worker pool.

Using the roles to limit access is better for security as we do not have
to give out Admin or org wide Owner access then.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
@mheon

mheon commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

LGTM

@mheon mheon merged commit 279611a into podman-container-tools:main Jun 23, 2026
70 checks passed
@Luap99 Luap99 deleted the governance branch June 23, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants