Skip to content

Conversation

markgoddard
Copy link

Previously it was not possible to use this image in an environment with
a CA that is not trusted by the Python trust store. This is because the
rally-verify-wrapper.sh script unset any OS_CACERT environment variable
(presumably assuming any CA cert would not necessarily be available in
the container).

This change makes it possible to bind mount CA certificates in the
container under /usr/local/share/ca-certificates/ and have them added
to the system trust store and used by Rally/Tempest. In this case,
OS_CACERT is set automatically.

If there are no certificates in /usr/local/share/ca-certificates/, we
revert to the previous behaviour of unsetting OS_CACERT.

@markgoddard markgoddard self-assigned this Apr 11, 2024
markgoddard added a commit to stackhpc/kayobe-automation that referenced this pull request Apr 11, 2024
The tempest_cacert variable may specify the CA certificate path.

Depends on stackhpc/docker-rally#16
@markgoddard markgoddard marked this pull request as ready for review April 11, 2024 15:36
@markgoddard markgoddard marked this pull request as draft April 12, 2024 08:26
@markgoddard markgoddard changed the base branch from master to jammy April 13, 2024 08:45
@markgoddard markgoddard marked this pull request as ready for review April 13, 2024 08:45
Previously it was not possible to use this image in an environment with
a CA that is not trusted by the Python trust store. This is because the
rally-verify-wrapper.sh script unset any OS_CACERT environment variable
(presumably assuming any CA cert would not necessarily be available in
the container).

This change makes it possible to bind mount CA certificates in the
container under /usr/local/share/ca-certificates/ and have them added
to the system trust store and used by Rally/Tempest. In this case,
OS_CACERT is set automatically.

If there are no certificates in /usr/local/share/ca-certificates/, we
revert to the previous behaviour of unsetting OS_CACERT.
@markgoddard markgoddard changed the base branch from jammy to upper-constraints April 13, 2024 09:02
Base automatically changed from upper-constraints to master April 15, 2024 14:55
@markgoddard markgoddard merged commit defe6b0 into master Apr 15, 2024
markgoddard added a commit to stackhpc/kayobe-automation that referenced this pull request Apr 15, 2024
The tempest_cacert variable may specify the CA certificate path.

Depends on stackhpc/docker-rally#16
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.

2 participants