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

Inconsistent user roles/permissions when user doc and users-settings are not consistent #8337

Open
kennsippell opened this issue Jun 22, 2023 · 0 comments
Labels
Type: Bug Fix something that isn't working as intended

Comments

@kennsippell
Copy link
Member

kennsippell commented Jun 22, 2023

Describe the bug

Essentially cht-core should consistently use the [roles and permissions] in user-settings because that's the only one that's downloaded for offline use. However I suspect couchdb db level permissions will use the one in the _users db because that's the only one it knows about. The CHT has code to keep these in sync but obviously it's not working correctly.

medic/cht-couch2pg#137 (comment)

Just a quick example:

  • Here sentinel pull roles from the _users db
  • Here admin app pulls from user-settings
  • Here a system admin alters one doc through Fauxton but not the other (this is common)

These two security docs stay in alignment when edited through the CHT UI, but when edited through scripts or Fauxton they are frequently not in sync. CHT currently expects these documents to be identical -- when they are not, it can cause inconsistent roles and permissions for users.

Labeling as bug because of this statement "The CHT has code to keep these in sync but obviously it's not working correctly".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Fix something that isn't working as intended
Projects
No open projects
Status: Todo
Development

No branches or pull requests

1 participant