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

GH-34 Fix for ee auth delete global and ee auth delete global --ip #53

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

PiyushKhurana
Copy link

@PiyushKhurana PiyushKhurana commented Sep 27, 2021

1st Issue

Reference #34

Approach

The additional code will ensure that if a site only have global auths , it will not be kept in separate site specific htpasswd file.

What was causing problem

When we create a auth on a site then again add a global auth on the site , and then remove auth (not global) from the site, the site specific htpasswd file is only storing global auths which is redundant as httpasswd/default file will be storing it.So when we delete global auth from site , the site specific htpasswd file will remain as it is.So the solution was to make sure that if a site only have global auths , it will not be kept in separate site specific htpasswd file.

2nd Issue

Reference #34 (comment)

Approach

The additional code will ensure that if a site only have global ip whitelist , it will not be kept in separate site specific avl file.

What was causing problem

When on a site there are both global and site specific ip whitelist present and when we remove site specific ip whitelist first , the site specific avl file is only storing global ip whitelist which is redundant as vhost.d/default_avl file will be storing it.So when we delete global ip whitelist , the site specific avl file will remain as it is.So the solution was to make sure that if a site only have global ip whitelist , it will not be kept in separate site specific avl.

this will ensure if a site only have global auths , it will not be kept in separte site specific htpasswd file
@PiyushKhurana PiyushKhurana changed the title Fix for ee auth delete global GH-34 Fix for ee auth delete global Sep 27, 2021
@PiyushKhurana PiyushKhurana linked an issue Sep 27, 2021 that may be closed by this pull request
this will ensure if a site only have global whitelist ips , it will not be kept in separte site specific `acl` file
@PiyushKhurana PiyushKhurana changed the title GH-34 Fix for ee auth delete global GH-34 Fix for ee auth delete global and ee auth delete global --ip Oct 11, 2021
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.

global auth for all sites is not disabled after deleting user
1 participant