Skip to content

Conversation

@sjha4
Copy link
Member

@sjha4 sjha4 commented Jul 3, 2025

Test that cert clients can consume flatpaks from capsules correctly. This is applicable only to Rhel 10.1+ clients. On rhel9 clients, verify that placing the certs doesn't break the original flow of username/password authentication which is still required. Rhel 10.1+ clients can similarly use user auth for fetching content but they'll not have LCE support for their content.

@sjha4 sjha4 force-pushed the cert_authenticated_flatpak branch from 3b26cf9 to f9eab13 Compare July 14, 2025 14:00
@sjha4 sjha4 marked this pull request as ready for review July 14, 2025 14:01
@sjha4 sjha4 force-pushed the cert_authenticated_flatpak branch from f9eab13 to e62a0af Compare July 14, 2025 18:34
Copy link
Member

@ianballou ianballou left a comment

Choose a reason for hiding this comment

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

Working well, just a couple of small comments!

elsif valid_uuid
host = database.connection[:hosts][{ uuid: client_cert.uuid }]
if host.nil?
repo_response = ForemanApi.new.fetch_host_repositories(client_cert.uuid, request.params)
Copy link
Member

Choose a reason for hiding this comment

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

Might be good to add some error checking for the ForemanApi call.

Suggested change
repo_response = ForemanApi.new.fetch_host_repositories(client_cert.uuid, request.params)
repo_response = ForemanApi.new.fetch_host_repositories(client_cert.uuid, request.params)
halt repo_response.code.to_i, repo_response.body unless repo_response.code.to_i == 200

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.. 👍🏼

end
catalog = container_gateway_main.host_catalog(client_cert.uuid).select_map(::Sequel[:repositories][:name])
pulp_index = JSON.parse(pulp_response.body)
pulp_index["Results"].select! { |result| catalog.include?(result["Name"]) }
Copy link
Member

Choose a reason for hiding this comment

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

Could check if there is a Results section and throw an error otherwise.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.. 👍🏼

@sjha4 sjha4 force-pushed the cert_authenticated_flatpak branch from e62a0af to 438a562 Compare July 17, 2025 16:31
Copy link
Member

@ianballou ianballou left a comment

Choose a reason for hiding this comment

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

Thanks!

@sjha4 sjha4 merged commit b27aa97 into Katello:main Jul 17, 2025
12 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