-
Notifications
You must be signed in to change notification settings - Fork 0
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
Are profile_pam_access::deny_rules position settings correct? #5
Comments
Update: If an existing access rule for the given user does not already exist in the file, it seems to add the deny rule at the top of the list. But if an existing access rule for the given user name DOES exist, the deny rule is going in at the end of the file. |
ALSO... just be setting the
e.g.
...making most of the allow rules useless. |
Ran into this again with
See https://jira.ncsa.illinois.edu/browse/SECURITY-1517?focusedCommentId=668572&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-668572 for more details. After reviewing MiamiOH/puppet-pam_access#7 I think this is more of an issue specific to https://github.com/ncsa/puppet-profile_pam_access/blame/7e7799d5e0f270c6f1653252c19f785b3a4239b2/manifests/init.pp#L47-L77, how we are merging Hiera data, and the order in which the For example, if |
This sounds like a similar issue we had (and still has) with sshd match blocks - Augeas doesn't really recognize existing rules well. Purging access.conf is always a good idea because most of the time Augeas won't remove the old rules. As for ordering, since exact matching of the rules is not implemented here, I believe 'before' and 'after' are effectively acting as 'before first' and 'after last', with the first and last rules being what's in the file at the time of addition. |
I just flipped a user from profile_pam_access::allow_rules to profile_pam_access::deny_rules. The new deny rule was after the pre-existing allow rule, which defeats the purpose.
puppet-profile_pam_access/manifests/init.pp
Line 69 in 7e7799d
I definitely do not understand pam_access position parameters, but it seems weird/odd to have deny rules always be the last in the access.conf file.
The text was updated successfully, but these errors were encountered: