Skip to content

[v7r1] Modifications to manage certificates to access the Elias (Elaasticsea…#4924

Merged
atsareg merged 3 commits into
DIRACGrid:rel-v7r1from
sanguillon:rel-v7r1
Feb 3, 2021
Merged

[v7r1] Modifications to manage certificates to access the Elias (Elaasticsea…#4924
atsareg merged 3 commits into
DIRACGrid:rel-v7r1from
sanguillon:rel-v7r1

Conversation

@sanguillon

@sanguillon sanguillon commented Jan 26, 2021

Copy link
Copy Markdown
Contributor

Configuration we used in /opt/dirac/etc/dirac.cfg to access the ELIAS database hosted at CC-IN2P3

/DIRAC/Setups/CTA-cert/Monitoring = Certification

/Systems/Monitoring/Certification/Databases/MonitoringDB
{
Host = elias-beta.cc.in2p3.fr
Port = 9200
SSL = False
IndexPrefix = cta-
CRT = True
ca_certs = /opt/dirac/etc/grid-security/ES/ca.crt
client_key = /opt/dirac/etc/grid-security/ES/ctacertbot.key
client_cert = /opt/dirac/etc/grid-security//ES/ctacertbot.crt
}

BEGINRELEASENOTES

*Monitoring
NEW: added possibility to login to ES via certificates.

ENDRELEASENOTES

@fstagni fstagni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!
It's missing some changes in the documentation too.

Comment thread ConfigurationSystem/Client/Utilities.py Outdated
# Elasticsearch use certs
result = gConfig.getOption(cs_path + '/CRT')
if not result['OK']:
# No host name found, try at the common place

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wrong (copy-pasted) comment (also below).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just change this comment please, and the ones below, and then I approve.

Comment thread ConfigurationSystem/Client/Utilities.py Outdated
Comment thread Core/Utilities/ElasticSearchDB.py Outdated
@sanguillon

sanguillon commented Jan 26, 2021 via email

Copy link
Copy Markdown
Contributor Author

@fstagni fstagni changed the title Modifications to manage certificates to access the Elias (Elaasticsea… [v7r1] Modifications to manage certificates to access the Elias (Elaasticsea… Jan 26, 2021
@fstagni

fstagni commented Jan 26, 2021

Copy link
Copy Markdown
Contributor

No problem, we all commit/fix/re-fix PRs. There's quite some doc in https://dirac.readthedocs.io/en/integration/DeveloperGuide/index.html and for the tests we run a mix of unit and integration tests, as well as static code checks and so on.
We also run "certification hackathons" every 2nd week on pre-releases.

@sanguillon

sanguillon commented Jan 29, 2021 via email

Copy link
Copy Markdown
Contributor Author

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.

3 participants