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

Move config.py with delegate DNs to helm #8685

Closed
novicecpp opened this issue Sep 3, 2024 · 3 comments · Fixed by #8871 · May be fixed by sinonkt/CRABServer#1
Closed

Move config.py with delegate DNs to helm #8685

novicecpp opened this issue Sep 3, 2024 · 3 comments · Fixed by #8871 · May be fixed by sinonkt/CRABServer#1
Assignees

Comments

@novicecpp
Copy link
Contributor

novicecpp commented Sep 3, 2024

config.py is in crab-secrets and also migrate the delegate DN here into config.py.

The config.py is already part of new helm chart dmwm/CMSKubernetes#1545, also delegateDN.
But delegateDN need some code changes on REST.

@belforte
Copy link
Member

belforte commented Jan 8, 2025

@sinonkt here's a quick way to test change:

belforte@lxplus916/~> voms-proxy-init -voms cms
Enter GRID pass phrase for this identity:
Contacting voms-cms-auth.app.cern.ch:443 [/DC=ch/DC=cern/OU=computers/CN=cms-auth.web.cern.ch] "cms"...
Remote VOMS server contacted succesfully.


Created proxy in /tmp/x509up_u8516.

Your proxy is valid until Thu Jan 09 02:11:39 CET 2025
belforte@lxplus916/~> export  X509_USER_PROXY=`voms-proxy-info -path`
belforte@lxplus916/~> curl --cert $X509_USER_PROXY  --key $X509_USER_PROXY  https://cmsweb-testbed.cern.ch/crabserver/prod/info?subresource=delegatedn
{"result": [
 {"services": ["/DC=ch/DC=cern/OU=computers/CN=crab-(preprod|prod)-tw(01|02).cern.ch|/DC=ch/DC=cern/OU=computers/CN=crab-dev-tw(01|02|03|04).cern.ch|/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=cmscrab/CN=(817881|373708)/CN=Robot: cms crab|/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=crabint1/CN=373708/CN=Robot: CMS CRAB Integration 1"]}
]}
belforte@lxplus916/~> 

replace cmsweb-testbed with your favorite cluster and verify that the JSON retrieved via curl is the same as in an un-modified cluster.

@belforte
Copy link
Member

belforte commented Jan 8, 2025

side note: I do not particularly like that this longish list is present separately in multiple files (e.g. https://github.com/dmwm/CMSKubernetes/blob/d1eb8a7ff4a2e66ca498ca9896fbfb00f3e8798a/helm/crabserver/config/preprod/config.py#L49 ). Requires some effort to keep consistency in the future. E.g. it is not present in current config/prod/config.py file.

@sinonkt
Copy link
Contributor

sinonkt commented Jan 8, 2025

@belforte I've tested on cmsweb-test12. the response are identical with cmsweb-testbed now as following.

[kphornsi@lxplus910 ~]$ curl --cert $X509_USER_PROXY  --key $X509_USER_PROXY  https://cmsweb-test12.cern.ch/crabserver/devthree/info?subresource=delegatedn
{"result": [
 {"services": ["/DC=ch/DC=cern/OU=computers/CN=crab-(preprod|prod)-tw(01|02).cern.ch|/DC=ch/DC=cern/OU=computers/CN=crab-dev-tw(01|02|03|04).cern.ch|/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=cmscrab/CN=(817881|373708)/CN=Robot: cms crab|/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=crabint1/CN=373708/CN=Robot: CMS CRAB Integration 1"]}
]}
[kphornsi@lxplus910 ~]$

the corresponding changes can be seen in PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants