Skip to content

feat(RHEL-50244): support for new flatpak registries #933

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

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

ralphbean
Copy link
Member

@ralphbean ralphbean commented May 6, 2025

There's a new registry coming up PROJQUAY-8882.

Describe your changes

Support new flatpak registries.

Relevant Jira

Dependencies

Downstream

Checklist before requesting a review

  • I have marked as draft or added do not merge label if there's a dependency PR
    • If you want reviews on your draft PR, you can add reviewers or add the release-service-maintainers handle if you are unsure who to tag
  • My commit message includes Signed-off-by: My name <email>
  • I have bumped the task/pipeline version string and updated changelog in the relevant README
  • I read CONTRIBUTING.MD and commit formatting

@ralphbean ralphbean requested a review from a team as a code owner May 6, 2025 17:53
@ralphbean ralphbean marked this pull request as draft May 6, 2025 17:53
@ralphbean ralphbean marked this pull request as ready for review May 6, 2025 19:40
Copy link
Contributor

Choose a reason for hiding this comment

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

(Commenting here just so that a thread is created.)

@ralphbean it looks good overall, but what about creating images in Pyxis? With no changes, we would simply create the image in Pyxis as usual and add a repository entry with registry=registry.access.redhat.com and repository=myprod/myflatpak

I think that's an issue. For one, RHEC will wrongly show that this image can be pulled from registry.access.redhat.com or registry.redhat.io which is not true. And also, Clair-wrapper is translating this entry back to quay.io/redhat-prod/myprod----myflatpack to pull the image and check for vulnerabilities.

So the question is, what is the correct way to create this image in Pyxis? Should it use flatpacks.registry.access.redhat.com as the registry? Is that what RHEC needs to show it in the right place? And what about clair-wrapper? Will it need to start looking for these entries as well?

Copy link
Member

Choose a reason for hiding this comment

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

Should it use flatpacks.registry.access.redhat.com as the registry?

yes.

Is that what RHEC needs to show it in the right place?

also yes

And what about clair-wrapper? Will it need to start looking for these entries as well?

yes, I can open a ticket for that to container health team. Thanks for raising it. We also need to let the Atlas team know to be importing the SBOMs for images in that registry.

Finally, I expect that the catalog probably won't look right. I already prepared stakeholders for that. We will have to see what is broken once we get something into staging and file tickets for the catalog team too.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, thanks for confirming. So somebody will need to modify create_container_image.py to support that first. So either Ralph can give it a go, or you can create a RELEASE Jira and I can take a look at that.

yes, I can open a ticket for that to container health team.

OK, sounds good.

@ralphbean ralphbean force-pushed the rh-flatpaks branch 2 times, most recently from b297efd to cbec142 Compare May 7, 2025 20:15
Copy link
Collaborator

Choose a reason for hiding this comment

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

## Changes in 6.1.0
* Add check for custom advisory id
* If `.releaseNotes.allow_custom_live_id` is set to `true` in the RPA, then a custom advisory live
id can be set via `.releaseNotes.live_id` and this will be used instead of requesting one from
Errata Tool API.
* If `.releaseNotes.allow_custom_live_id` is not set or `false` and `.releaseNotes.live_id` is set,
we will exit with an error.

Copy link
Collaborator

Choose a reason for hiding this comment

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

typo?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@ralphbean
Copy link
Member Author

Note to self: after the upcoming flatpak release, this needs a little rework. We should drop the onError change. The 413 Request Entity Too Large issue has been solved on the pyxis side; but the other registry url related changes here need to stay in.

ralphbean added 2 commits May 17, 2025 12:38
There's a new registry coming up PROJQUAY-8882.

Signed-off-by: Ralph Bean <[email protected]>
@openshift-merge-robot
Copy link
Collaborator

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@happybhati
Copy link
Contributor

It appears that PR is on hold, and a rebase is required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants