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

Drop redundant update-ca-trust enable step #494

Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Aug 21, 2024

On EL 7 & 8 the argument is ignored, so it effectively ran twice. On EL 9 since ca-certificates-0:2024.2.69_v8.0.303-91.3.el9 it does check the argument and changes behavior. The on 91.3 it hard fails on enable while 91.4 yields a deprecation warning. It still effectively runs twice.

This drops the redundant step because it only needs to extract after the new CA has been added.

See voxpupuli/puppet-trusted_ca#69 for a lot more context on this.

@@ -125,7 +125,6 @@ def script_template

# also add the katello ca cert to the system wide ca cert store
if [ -d $CA_TRUST_ANCHORS ]; then
update-ca-trust enable
cp $CERT_DIR/$KATELLO_SERVER_CA_CERT $CA_TRUST_ANCHORS
update-ca-trust
Copy link
Member Author

Choose a reason for hiding this comment

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

Should this be changed to explicitly extract? Similar to voxpupuli/puppet-trusted_ca#69 (comment)

Suggested change
update-ca-trust
update-ca-trust extract

Copy link
Member

Choose a reason for hiding this comment

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

I'd do that, yeah

On EL 7 & 8 the argument is ignored, so it effectively ran twice. On EL
9 since ca-certificates-0:2024.2.69_v8.0.303-91.3.el9 it does check the
argument and changes behavior. The on 91.3 it hard fails on enable while
91.4 yields a deprecation warning. It still effectively runs twice.

This drops the redundant step because it only needs to extract after the
new CA has been added.

It makes the extract step explicit, where it previously was implicit.
@ekohl ekohl force-pushed the drop-redundant-update-ca-trust-enable-step branch from 6bf8901 to 53187d9 Compare August 21, 2024 13:35
@ekohl ekohl merged commit 53187d9 into theforeman:master Aug 21, 2024
11 checks passed
@ekohl ekohl deleted the drop-redundant-update-ca-trust-enable-step branch August 21, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants