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

Strip quotes from role names #1034

Merged
merged 1 commit into from
Nov 5, 2018

Conversation

jstuart
Copy link
Contributor

@jstuart jstuart commented Nov 2, 2018

This resolves a bug in the detection of existing permissions for roles being granted USAGE on ALL SEQUENCES. We found that role names that need to be quoted (like those containing -) will come back from the $custom_unless queries wrapped in double quotes, causing the query, which is limited using the unquoted role name, never to detect the presence of permissions. When the grant is set to 'present' this causes the grant to be applied on every puppet run. When the grant is set to 'absent' this causes the permissions to remain, even though they should be removed. Stripping out the double quotes from the role name within the query resolves the issue.

We have validated this on 9.4+, but I see no reason why it wouldn't work on across the board.

@jstuart
Copy link
Contributor Author

jstuart commented Nov 4, 2018

The CI check just needs to be rerun. It failed because of a timeout on one of the tasks. The tasks all ran successfully against my fork.

@david22swan
Copy link
Member

screen shot 2018-11-05 at 10 38 24 am

@david22swan david22swan merged commit 4699399 into puppetlabs:master Nov 5, 2018
@pmcmaw pmcmaw added the bugfix label Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants