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

Add a flag for performing a sanity check after enforcing #33

Open
jmickelin opened this issue Aug 13, 2021 · 1 comment
Open

Add a flag for performing a sanity check after enforcing #33

jmickelin opened this issue Aug 13, 2021 · 1 comment
Assignees

Comments

@jmickelin
Copy link

We ran into a couple of issues where BEC reported that it was updating some settings, but Bitbucket (for various reasons) silently throwing away those changes. In order to detect when this happens in the future, we are considering changing our pipeline to run BEC in verify-mode again after enforcing, sort of like a sanity check.

Suggestion: The possibility of this happening (however rare) is not clear from the documentation I have read, but it can have disastrous consequences, say if some access permissions are not successfully enforced (as was the case for us). Adding a new flag -s, --sanity-check that can be used together with -e, and which causes the program to run a final verification after processing each repository would both highlight the possibility of this edge case and provide a more ergonomic solution than running the command twice.

@jesperes jesperes self-assigned this Sep 5, 2022
@jesperes
Copy link
Contributor

jesperes commented Sep 7, 2022

It seems like this could be accomplished by rerunning bec without the -e option afterwards.

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

2 participants