Skip to content

[9.0] Use DIRACX_CA_PATH to communicate to diracx and S3#8364

Closed
atsareg wants to merge 3 commits intoDIRACGrid:integrationfrom
atsareg:fix-ca-path
Closed

[9.0] Use DIRACX_CA_PATH to communicate to diracx and S3#8364
atsareg wants to merge 3 commits intoDIRACGrid:integrationfrom
atsareg:fix-ca-path

Conversation

@atsareg
Copy link
Copy Markdown
Contributor

@atsareg atsareg commented Nov 3, 2025

With this fix DIRAC9 clients can communicate to diracx and S3 minIO storage with are set up with IGTF non-default certificates using the DIRACX_CA_PATH environment.

BEGINRELEASENOTES

*Framework
FIX: Use DIRACX_CA_PATH to communicate to diracx

*WorkloadManagement
FIX: Use DIRACX_CA_PATH to communicate to S3

ENDRELEASENOTES

@atsareg atsareg requested a review from fstagni as a code owner November 3, 2025 13:37
DEFAULT_TOKEN_CACHE_SIZE = 1024

legacy_exchange_session = requests.Session()
diracxUrl = gConfig.getValue("/DiracX/URL")
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.

This should be a URL, or you break the pydantic check.

Probably:

Suggested change
diracxUrl = gConfig.getValue("/DiracX/URL")
diracxUrl = gConfig.getValue("/DiracX/URL", os.environ["DIRACX_URL"])

then inject one for the unit test.

@chrisburr
Copy link
Copy Markdown
Member

With this fix DIRAC9 clients can communicate to diracx and S3 minIO storage with are set up with IGTF non-default certificates using the DIRACX_CA_PATH environment.

If you do this you're going to have issues with the DiracX web app.

@chrisburr chrisburr marked this pull request as draft January 12, 2026 15:48
@chrisburr chrisburr closed this Mar 9, 2026
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