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

remove all the CMS authz logic from the CouchDB validate functions #11191

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

amaltaro
Copy link
Contributor

@amaltaro amaltaro commented Jun 22, 2022

Fixes #11190

Status

ready

Description

This PR removes the couchapp validate functions in all of the WMCore design documents. In practice, it means we no longer evaluate the user CRIC group/roles to decide what that person can or cannot do.

Some operations are still reserved only for CouchDB admins, like write/update to design documents; create/delete database admins and members; create and delete databases. Further information in: https://docs.couchdb.org/en/stable/api/database/security.html

Is it backward compatible (if not, which system it affects?)

YES

Related PRs

Might be related to: dmwm/deployment#1088

External dependencies / deployment changes

CouchApps need to be refreshed on the CouchDB backend nodes. Practically speaking, this directory must be removed before CouchDB gets started: /data/srv/state/couchdb/stagingarea/couchapps/

Doesn't necessarily need CouchDB 3.x, but it's meant for that.

@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Unit tests: succeeded
    • 2 tests no longer failing
    • 1 changes in unstable tests
  • Python3 Pylint check: succeeded
  • Pylint py3k check: succeeded
  • Pycodestyle check: succeeded

Details at https://cmssdt.cern.ch/dmwm-jenkins/view/All/job/DMWM-WMCore-PR-test/13368/artifact/artifacts/PullRequestReport.html

@amaltaro amaltaro requested review from todor-ivanov and vkuznet June 22, 2022 20:07
Copy link
Contributor

@todor-ivanov todor-ivanov left a comment

Choose a reason for hiding this comment

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

Thanks @amaltaro As widely discussed in a private chat, this is change is now well understood and to me it looks pretty good.

@amaltaro
Copy link
Contributor Author

I will tighten up authz in ReqMgr2 with this ticket: #6072
It should be done before things go to production.

@amaltaro amaltaro merged commit d49ccab into dmwm:master Jun 24, 2022
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.

Remove the CRIC based CouchDB authz layer
3 participants