Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: support to push only fast-forward changes into protected branches #54

Open
visit1985 opened this issue Jun 14, 2024 · 0 comments

Comments

@visit1985
Copy link

We are trying to implement protected branches in CodeCommit. Protected branches do not allow to alter the commit history by force-pushing non-fast-forward changes. The codecommit:MergePullRequestByFastForward IAM action applies to the console and API only, while all Git client write operations are permitted via the codecommit:GitPush IAM action. Since codecommit:GitPush lacks a condition keys to limit clients to fast-forward pushes only, there is no way to protect a branch without denying all Git client write access for it and use solely API actions to manage this branch instead. There are certain Git-Workflows and automations that do not rely on concepts like merge/pull requests and thus do not require API/console access, which are blocked by this.

I would like to request an IAM condition key to restrict Git clients to fast-forward pushes for protected branches.

I'm aware that this is a service side feature request, but the support directed me here anyway. Please review Case ID 171696449600152 for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant