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

McM client #11672

Merged
merged 2 commits into from
Aug 2, 2023
Merged

McM client #11672

merged 2 commits into from
Aug 2, 2023

Conversation

ggonzr
Copy link
Contributor

@ggonzr ggonzr commented Jul 25, 2023

Fixes #11671

Status

not-tested

Description

Updates McM client module to request SSO cookies for both SSO components

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

NO

There are some changes to McM client constructor method that bring breaking changes. Also, it is required to have a valid Kerberos ticket available in the runtime environment.

External dependencies / deployment changes

  • auth-get-sso-cookie
  • Kerberos

Please make sure that the “auth-get-sso-cookie” package is available in your runtime environment. If you require to install it, please see the following documentation

Use “auth-get-sso-cookie” package for requesting SSO cookies with a Kerberos ticket
Include some test cases that use the development environment, this environment uses the new SSO for its authentication layer.
@cmsdmwmbot
Copy link

Can one of the admins verify this patch?

@amaltaro
Copy link
Contributor

@ggonzr thank you for creating this PR. You should have received an invitation to join one of the DMWM teams now. Once you accept that, we can then run the Jenkins CI pipeline.

@ggonzr
Copy link
Contributor Author

ggonzr commented Jul 25, 2023

Hi @amaltaro thanks for the prompt reply. I have accepted the invitation.

@amaltaro
Copy link
Contributor

test this please

@cmsdmwmbot
Copy link

Jenkins results:

  • Python3 Unit tests: failed
    • 1 new failures
    • 1 changes in unstable tests
  • Python3 Pylint check: failed
    • 5 warnings and errors that must be fixed
    • 29 comments to review
  • Pylint py3k check: succeeded
  • Pycodestyle check: succeeded
    • 1 comments to review

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

@ggonzr
Copy link
Contributor Author

ggonzr commented Jul 26, 2023

@amaltaro How can I get more information about failed tests?

@amaltaro amaltaro self-requested a review July 26, 2023 11:27
Copy link
Contributor

@amaltaro amaltaro left a comment

Choose a reason for hiding this comment

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

@ggonzr the unit test failure comes from an unstable unit test and it is unrelated to these changes.

My understanding is that those unit tests will not work because it would require to have a kerberos token in the environment, right? I am not sure how to deal with that in the docker container, but it can be addressed in the future as well.

This code looks good to me! And thanks for splitting the proposed changes in 2 commits!

@ggonzr
Copy link
Contributor Author

ggonzr commented Jul 26, 2023

@amaltaro Thanks for the feedback. Yes, the new CLI package works only with Kerberos tickets, so if there is no one available, a RuntimeError will be raised. I remain attentive if anything else is required from PdmV side to update this package.

Best regards

Geovanny

@amaltaro
Copy link
Contributor

amaltaro commented Aug 2, 2023

Thank you again for contributing to the project, Geovanny, we appreciate it!

@amaltaro amaltaro merged commit 53b5671 into dmwm:master Aug 2, 2023
2 of 4 checks passed
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.

Update McM client to request SSO cookies via “auth-get-sso-cookie” package
3 participants