Description of Problem
Via the api, a user can specify an origin of red_hat, causing a repository to be created. It will even show up under their red hat tab. Thankfully it doesn't show up for other users.
We should fix this and run a job to delete any existing repositories:
> select origin, name, url from repository_configurations rc inner join repositories r on rc.repository_uuid = r.uuid where origin = 'red_hat' and org_id != '-1'; ORIGIN | NAME | URL ---------+--------------------------------------+--------------------------------------------------------------------------------------- red_hat | rhel-8-forx86_64-baseos-rpms | https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/baseos/os/ red_hat | testrepolink | https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/rh-common/os/ red_hat | RHEL for Edge Repo | https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/rhocp/4.13/os/ red_hat | RHEL Fastpath | https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/fast-datapath/ red_hat | FastDataPath | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/fast-datapath/os/ red_hat | MicroShift4_12 | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/rhocp/4.12/os/ red_hat | baseos | https://cdn.redhat.com/content/dist/rhel8/8.6/x86_64/baseos/os/ red_hat | fast-datapath-for-rhel | https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/fast-datapath/source/SRPMS/ red_hat | OCP413 | https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/rhocp/4.13/os/ red_hat | FDP | https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/fast-datapath/os/ red_hat | rhel_ceph | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/rhceph-tools/5/os/ red_hat | rhel_ha | https://cdn.redhat.com/content/dist/rhel8/8/x86_64/highavailability/os/ red_hat | RHOCP | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/rhocp/4.12/os/ red_hat | rhocp-48-for-rhel-8-x86_64-rpms | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/rhocp/4.8/os/ red_hat | rhocp-4-12-for-rhel-8-x86_64-rpms | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/rhocp/4.12/os/ red_hat | rhocp-4-13-for-rhel-9-x86_64-rpms | https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/rhocp/4.13/os/ red_hat | fast-datapath-for-rhel-9-x64_86-rpms | https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/fast-datapath/os/ red_hat | rhocp-48 | https://cdn.redhat.com/content/dist/layered/rhel8/s390x/rhocp/4.8/os/ red_hat | fast-datapath-for-rhel-9-x86_64 | https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/fast-datapath/os/ red_hat | rhocp-412-for-rhel-8-x86_64-rpms | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/rhocp/4.12/os/ red_hat | qq | https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/os/ red_hat | fast-datapath-for-rhel-8-x86_64-rpms | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/fast-datapath/os/ red_hat | rhocp-410 | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/rhocp/4.10/os/ red_hat | appstream | https://cdn.redhat.com/content/dist/rhel8/8.6/x86_64/appstream/os/ red_hat | rhel-8-for-x86_64-appstream-rpms | https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/appstream/os/ red_hat | fast-datapath | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/fast-datapath/os/ red_hat | rhocp | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/rhocp/4.11/os/ red_hat | fast-datapath-for-rhel-9-x86_64 | https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/fast-datapath/os/ red_hat | fast-datapath-for-rhel-8-x86_64-rpms | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/fast-datapath/os/ red_hat | fast-datapath | https://cdn.redhat.com/content/dist/layered/rhel8/x86_64/fast-datapath/os/ red_hat | rhocp_4-13 | https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/rhocp/4.13/os/ red_hat | fast-datapath | https://cdn.redhat.com/content/dist/layered/rhel9/x86_64/fast-datapath/os/
How reproducible
Always
(Always/Intermittent)
Steps to Reproduce
- Call the repository create api and specify origin = red_hat
Actual Behavior
repo is created
Expected Behavior
repo shouldn't be created