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

feat: manage TLS cert/key files for registry connections and validate certs #146

Merged
merged 3 commits into from
Apr 22, 2024

Conversation

richm
Copy link
Contributor

@richm richm commented Apr 18, 2024

Feature: Add two new parameters:
podman_registry_certificates is a list of dict. Each dict specifies the
certs and keys to use to connect to the specified registry using TLS and
optionally use certificate authentication. More information can be found
in the manpage for containers-certs.d.
podman_validate_certs is a boolean which allows you to require or disable
TLS certificate checking (i.e. if you do not have a CA cert for
podman_registry_certificates and you still want to pull images from a TLS
enabled registry). This corresponds to the parameter "validate_certs"
of the module containers.podman.podman_image. You can also control
certificate validation by using podman_registries_conf to configure
the "insecure" parameter for a registry.

Reason: Users need to be able to configure the TLS settings for
connecting to registries.

Result: Users can connect to registries using TLS and control how
that works.

QE: tests_auth_and_security.yml has been extended for this.

@richm richm changed the title certs.d feat: manage TLS cert/key files for registry connections and validate certs Apr 18, 2024
@richm
Copy link
Contributor Author

richm commented Apr 18, 2024

[citest]

@richm
Copy link
Contributor Author

richm commented Apr 18, 2024

[citest]

@richm richm force-pushed the certs.d branch 2 times, most recently from a6fd30e to ed8b139 Compare April 18, 2024 22:57
@richm
Copy link
Contributor Author

richm commented Apr 18, 2024

[citest]

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

The code is way above my head but the podman-specific paths and explanations LGTM

richm added 3 commits April 22, 2024 09:09
… certs

Feature: Add two new parameters:
podman_registry_certificates is a list of dict.  Each dict specifies the
certs and keys to use to connect to the specified registry using TLS and
optionally use certificate authentication.  More information can be found
in the manpage for containers-certs.d.
podman_validate_certs is a boolean which allows you to require or disable
TLS certificate checking (i.e. if you do not have a CA cert for
podman_registry_certificates and you still want to pull images from a TLS
enabled registry).  This corresponds to the parameter "validate_certs"
of the module containers.podman.podman_image.  You can also control
certificate validation by using podman_registries_conf to configure
the "insecure" parameter for a registry.

Reason: Users need to be able to configure the TLS settings for
connecting to registries.

Result: Users can connect to registries using TLS and control how
that works.

QE: tests_auth_and_security.yml has been extended for this.

Signed-off-by: Rich Megginson <[email protected]>
@richm richm merged commit 77386b3 into linux-system-roles:main Apr 22, 2024
8 checks passed
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