Skip to content

fix: getCAs and CRLs unsetting X509_CERT_DIR#8503

Merged
aldbr merged 2 commits intoDIRACGrid:integrationfrom
fstagni:fix_unsetXCD
Apr 21, 2026
Merged

fix: getCAs and CRLs unsetting X509_CERT_DIR#8503
aldbr merged 2 commits intoDIRACGrid:integrationfrom
fstagni:fix_unsetXCD

Conversation

@fstagni
Copy link
Copy Markdown
Contributor

@fstagni fstagni commented Apr 9, 2026

closes #8501

BEGINRELEASENOTES

*Framework
FIX: getCAs and CRLs unsetting X509_CERT_DIR

ENDRELEASENOTES

@fstagni
Copy link
Copy Markdown
Contributor Author

fstagni commented Apr 10, 2026

Probably needing DIRACGrid/management#70

@fstagni fstagni closed this Apr 10, 2026
@fstagni fstagni reopened this Apr 10, 2026
@fstagni fstagni marked this pull request as ready for review April 13, 2026 16:45
@chaen
Copy link
Copy Markdown
Contributor

chaen commented Apr 13, 2026

Just for my education: what's the point of unsetting the X509 variable ?

@fstagni
Copy link
Copy Markdown
Contributor Author

fstagni commented Apr 14, 2026

Just for my education: what's the point of unsetting the X509 variable ?

IIRC it's only for pilots, and for the case when a release is installed (not taken from CVMFS): not being "polluted" by an existing environment variable pointing to a possibly not-updated locations.

Comment thread tests/CI/run_pilot.sh
elif command -v python3 &>/dev/null; then
py='python3'
elif command -v python2 &> /dev/null; then
elif command -v python2 &>/dev/null; then
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.

Fine here but for next PRs: can we avoid that kind of formatting changes unrelated with the PRs please?

"/entrypoint.sh",
"python",
"-c",
"import requests; requests.get('http://localhost:8000/.well-known/openid-configuration').raise_for_status()",
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.

Here for instance, it's taking me some time to figure out whether you changed that line or whether it's just a formatting change (I assume it's just formatting here).

@chaen
Copy link
Copy Markdown
Contributor

chaen commented Apr 15, 2026

Just for my education: what's the point of unsetting the X509 variable ?

IIRC it's only for pilots, and for the case when a release is installed (not taken from CVMFS): not being "polluted" by an existing environment variable pointing to a possibly not-updated locations.

But aren't you updating a location that will never be used, given you set again the X509* ?

@fstagni
Copy link
Copy Markdown
Contributor Author

fstagni commented Apr 15, 2026

The DIRAC's specific locations will always be looked up before the other ones, including those set by X509* variables.

@aldbr aldbr merged commit 6847532 into DIRACGrid:integration Apr 21, 2026
23 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Treatment of X509_CERT_DIR in BundleDeliveryClient

5 participants