-
Notifications
You must be signed in to change notification settings - Fork 210
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
Fix policy_groups policy authorization to pull from the correct org #643
Conversation
Looks reasonable to me. |
Wow, nice find. I can help you out setting up a multi-org test, there are a couple of examples kicking around in there. |
👍 Let's make sure we do get those regression tests soon though. |
Is this ready to go? |
@marcparadise Only question is pedant tests for this. |
@jkeiser I know we talked about testing this, and I think we were able to get tests straightened out. Do you recall any details around that? |
We definitely have multiorg tests: https://github.com/chef/chef-server/blob/master/oc-chef-pedant/spec/api/keys/user_keys_spec.rb#L459-L471 Should probably just write some pedant tests for this. |
@marcparadise @tylercloke Thoughts on a plan forward here. In my reading this is seriously incorrect behavior. My vote is to either rebase and merge OR make an explicit card for SPOOL to finish the tests if there isn't one already. |
3564ccb
to
c4347a5
Compare
Just bumping this on the behalf of Bloomberg, caused multiple days of confusion for us :-( I think it's already been escalated internally but public vis++. |
+1! We hit this one too, spent a day ferreting through the code / database to work out what was going on. |
Travis failure looked unrelated, likely transient VM fell down. |
I'm 👍 on merging and we can add testing the the SPOOL backlog alongside |
Also 👍. I'll rebase and run through CI, then go ahead with the merge. |
👍 Let's merge this! |
c4347a5
to
70a3276
Compare
Merged. @chef/chef-server-maintainers I think we should hold a short post-mortem on why this wasn't merged for so long and how we can have a faster turn around in the future. This was a security related patch that went unmerged for too long in my opinion. |
For my part, I waited because I hadn't added tests; I hadn't added tests because I would have had to modify test infrastructure more than I had time for; and then the patch simply dropped off my radar. Sorry about that! |
Reviewing some chat logs, it looks like the recent history is more or less this:
I think the take aways for me are:
FWIW, I'm happy to use this ticket as a discussion for follow-up actions rather than doing a realtime post-mortem since I know schedules can be difficult. |
The case that fails:
/organizations/A/policy_groups/foo/policies/bar
from a client in A/organizations/B/policy_groups/foo/policies/bar
from a client in BWe don't have Pedant multi-org tests yet, so this is hard to add to Pedant.