-
Notifications
You must be signed in to change notification settings - Fork 773
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
Organization Ruleset missing support for OrganizationAdmin bypass #1899
Comments
@YElyousfi Thanks for opening this! I'll take a look into it tomorrow. My first thoughts though are that this isn't really a provider issue, it could be something on the |
Seems my hunch was partially correct, even if we were to set it to
This is part of the request made on my test provider build where I set
There are a couple of things to note here:
Based on those notes, as things currently stand, whichever approach we take with the provider would cause a problem. The options here are either:
Either way, before this is fixed here, one of the two options must happen since each requires a minor change here for it to work. |
So this was the case but the Not sure why it's not documented on the API side but it should be added to the provider docs on the field or even simply as an example of resource usage |
Interesting, I'll add that to the docs. Thanks @YElyousfi! |
I think there are some similar magic numbers in the
It's also worth mentioning that if you try to create a bypass_actor with Although I don't know if this project is comfortable enough assuming that these magic numbers will stay constant from Github. I imagine this would cause funky behaviour if Github shifted these under you. Probably one for the maintainers to make a call on. @kfcampbell |
Expected Behavior
actor_id
should not be required because it is not applicable to OrganizationAdmin role typeActual Behavior
actor_id
causes apply to fail if it is not set or set to null. Setting to 0 doesn't work either. Creating a ruleset in the UI with org admin bypass and fetching the payload shows that the actor id should be null.Curious on what @o-sama thinks and if a change is needed.
Terraform Version
V1.5.5
Affected Resource(s)
Terraform Configuration Files
No response
Steps to Reproduce
No response
Debug Output
No response
Panic Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: