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

Fix bug where requestor membership of public_key_read_access was not being properly tested for keys access. #817

Merged
merged 1 commit into from
Apr 21, 2016

Conversation

tylercloke
Copy link
Contributor

@tylercloke tylercloke commented Apr 21, 2016

Access to the org scoped user and client keys read endpoints are controlled by membership on the public_key_read_access group (which defaults to the users and clients groups); however, a bug resulted in testing membership on public_key_read_access for the member being requested instead of the requestor.

This commit fixes that bug and adds regression tests.

Passing build

list_client_keys(org_name, test_client_name_2, other_requestor).should look_like(:status => 403)
end

it 'the second actor an no longer get client keys, returning a 403', :authentication do
Copy link
Contributor

Choose a reason for hiding this comment

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

s/an/can/

@stevendanna
Copy link
Contributor

This change looks good to me 👍

…being properly tested for keys access.

Access to the org scoped user and client keys read endpoints are controlled by membership on the public_key_read_access group (which defaults to the users and clients groups); however, a bug resulted in testing membership on public_key_read_access for the member being requested instead of the requestor.

This commit fixes that bug and adds regression tests.
@tylercloke tylercloke force-pushed the tc/fix-keys-access-group branch from e316904 to 409002c Compare April 21, 2016 22:05
@tylercloke tylercloke merged commit 6af1710 into master Apr 21, 2016
@tylercloke tylercloke deleted the tc/fix-keys-access-group branch April 21, 2016 22:32
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

Successfully merging this pull request may close these issues.

None yet

4 participants