Skip to content

Conversation

@rhdedgar
Copy link
Collaborator

Avoids the issue where users without active RH subscriptions get a 403 when trying to install openssl via microdnf using the default repos.

Passes the check-payload tool.

Closes RHAIENG-844.

@rhdedgar
Copy link
Collaborator Author

rhdedgar commented Sep 9, 2025

Seems like rebasing PRs also has the effect of requesting reviews from everyone - I'll look into if this is intended behavior or not.

@nathan-weinberg
Copy link
Collaborator

@rhdedgar i think that's just the CODEOWNERS file being triggered on the PR update, since it was opened before that file itself was changed

@VaishnaviHire
Copy link
Collaborator

/lgtm

Copy link
Collaborator

@derekhiggins derekhiggins left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@leseb leseb left a comment

Choose a reason for hiding this comment

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

I'm not quite sure I understand the full rationale for this change, why was RUN microdnf install -y openssl && microdnf clean all needed in the first place?

Please clarify.

Comment on lines +39 to +41
COPY --from=builder /usr/bin/openssl /usr/bin/openssl
COPY --from=builder /lib64/libssl.so.3 /lib64/libssl.so.3
COPY --from=builder /lib64/libcrypto.so.3 /lib64/libcrypto.so.3
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hum this feels "dangerous", are the builder and final image the same? Same distro? Same glibc version?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Btw how can we repro? I have no subscription and could install the package 🤔

$ podman run -ti --entrypoint=bash  registry.access.redhat.com/ubi9/ubi-minimal:latest
Trying to pull registry.access.redhat.com/ubi9/ubi-minimal:latest...
Getting image source signatures
Checking if image destination supports signatures
Copying blob sha256:73ac460760dbc07b4e932677ed1d86c86c51259cd8ea7c5f1d5b13c9dd3d9d59
Copying config sha256:f36340c5d8884dc930bfe0a7a5d3602b665e10569317ce1931b78e15444938b9
Writing manifest to image destination
Storing signatures
[root@09c1c81257d6 /]# microdnf install -y openssl && microdnf clean all

(microdnf:8): librhsm-WARNING **: 08:52:00.526: Found 0 entitlement certificates

(microdnf:8): librhsm-WARNING **: 08:52:00.529: Found 0 entitlement certificates
Downloading metadata...
Downloading metadata...
Downloading metadata...
Package                                                                        Repository                   Size
Installing:                                                                                                     
 openssl-1:3.2.2-6.el9_5.1.aarch64                                             ubi-9-baseos-rpms          1.4 MB
Transaction Summary:
 Installing:        1 packages
 Reinstalling:      0 packages
 Upgrading:         0 packages
 Obsoleting:        0 packages
 Removing:          0 packages
 Downgrading:       0 packages
Downloading packages...
Running transaction test...
Installing: openssl;1:3.2.2-6.el9_5.1;aarch64;ubi-9-baseos-rpms
Complete.

(microdnf:65): librhsm-WARNING **: 08:52:02.258: Found 0 entitlement certificates

(microdnf:65): librhsm-WARNING **: 08:52:02.259: Found 0 entitlement certificates
Complete.
[root@09c1c81257d6 /]# 

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.

5 participants