{"id":16407,"date":"2023-02-08T06:32:44","date_gmt":"2023-02-08T06:32:44","guid":{"rendered":"https:\/\/www.insentragroup.com\/au\/insights\/uncategorized\/creating-service-account-for-registry-redhat-io\/"},"modified":"2024-12-13T02:22:58","modified_gmt":"2024-12-13T02:22:58","slug":"creating-service-account-for-registry-redhat-io","status":"publish","type":"post","link":"https:\/\/www.insentragroup.com\/au\/insights\/geek-speak\/professional-services\/creating-service-account-for-registry-redhat-io\/","title":{"rendered":"Creating Service Account for registry.redhat.io"},"content":{"rendered":"\n<p>Finding information on how to create a service account to allow login to registry.redhat.io and pull containers from the registry can take some time. This could be done using a standard Red Hat account, but if the user leaves the organisation, a service account is necessary to ensure the application continues to function. Fortunately, <a href=\"https:\/\/www.insentragroup.com\/au\/services\/professional-services\/cloud-and-modern-data-centre\/\" target=\"_blank\" rel=\"noreferrer noopener\">Red Hat<\/a> offers the ability to create service accounts specifically for pulling images from registry.redhat.io.\u00a0<\/p>\n\n\n\n<p>The following explains this process step by step:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to <a href=\"https:\/\/access.redhat.com\/terms-based-registry\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Red Hat Customer Portal<\/a><\/li>\n\n\n\n<li>Login using your RH account&nbsp;<\/li>\n\n\n\n<li>Click on New Service Account&nbsp;<\/li>\n\n\n\n<li>Enter the name for the service account&nbsp;<\/li>\n\n\n\n<li>Click Create&nbsp;<\/li>\n\n\n\n<li>Click on Docker Login tab&nbsp;<\/li>\n\n\n\n<li>Use the information from the Docker Login tab to login with podman (replace docker with podman):<\/li>\n<\/ul>\n\n\n\n<p>The results below:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@aap02 ~]# podman login -u='6910732|new-sa-account' -p=eyJhbGciOiJSUzUxMiJ9.eyJzdWIiOiJiOTRlNzQ3MjMyZTI0ZjhjYjQyNGUyOTFmOTRlMGY3YyJ9.QqmAJa6TFyTczQ4DtulmaFbd-wiSXnMrqRacoKzkyr8SDTT1Igch3I-22oHOINpDoEHFvCOx6gBJGw40hKLKXxSU6PpM7v0wS-P0USrlgdwJnF_U3MO38xVNCMMQWcDOtcRakJx2hkgRZu9dK9KgOwW8orbQ8MJ3veLCI3Qkl48SmlxR-Zpei0vtFvFwUGC3bajlChkl4m1609m1NqU5Qypla2yi8JvnVyhIbVyXfQR5Mc4FjbKoIVrEfKQm7rs9OrUyUDzgn1XfeDNEozx-ClUHCPnthwz13zlKlXRNWpwAUxlzUOH5aKBnWAvb7QxxaUL0xifg1Rqo1XRsvVtgLImXMhud529a6y1uLViTmoywvjBUjs9YWkCSpj5UeB7V5l2CYV8C_j9Y70L8ox80kKmlMnBEW_jpuxAkiXuj_5FSh1z6mHSDhosm2Nd-PT3Jbgw0Z2SwQZUhsRkGqaZ16AsjyRgrzYihbBMY9sGRE39AeGEgfdDuDPn8seOGOr4sVpoeze-DOcdiQZiT7rYj4XY2RKO4cUiHkuXeTSTalA4sCqQsDdzjVQ7cuCrtvwI8MlcGVT81pOIPcLY34SehgIaiWTrRCt7U6s2h5T2wgbVJLvjYRRj7DNYc5FssXIIg3wXbf616fFey54CiBg5qihMKhgst8Juzfx7JT8YI registry.redhat.io \n\nLogin Succeeded! <\/code><\/pre>\n\n\n\n<p>(BTW \u2013 the account and token above have been edited \ud83d\ude42 )&nbsp;<\/p>\n\n\n\n<p>To verify if we really can pull images from this registry, issue the command similar to the one below:&nbsp;<\/p>\n\n\n\n<p>Test pulling the image:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@aap02 etc]# podman pull registry.redhat.io\/ansible-automation-platform-23\/ee-minimal-rhel8 \n\nTrying to pull registry.redhat.io\/ansible-automation-platform-23\/ee-minimal-rhel8:latest... \n\nGetting image source signatures \n\nChecking if image destination supports signatures \n\nCopying blob 762908e901a6 done   \n\nCopying blob c779eca88374 done   \n\nCopying blob 60776429df00 done   \n\nCopying config 566499dfb0 done   \n\nWriting manifest to image destination \n\nStoring signatures \n\n566499dfb02c6fdea5a3ef7102890258e4ec2f22cb31c4405eaaebb3fab5acae <\/code><\/pre>\n\n\n\n<p>Verify if the image is visible on the local host:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@aap02 etc]# podman images \n\nREPOSITORY                                                               TAG         IMAGE ID      CREATED        SIZE \n\nregistry.redhat.io\/ansible-automation-platform-23\/ee-minimal-rhel8       latest      566499dfb02c  5 weeks ago    299 MB <\/code><\/pre>\n\n\n\n<p>For more information about RedHat Registry and why a service account is necessary to ensure the application continues to function, <a href=\"https:\/\/www.insentragroup.com\/au\/contact\/\" target=\"_blank\" rel=\"noreferrer noopener\">contact us<\/a> today and speak with one of our experts.\u00a0<\/p>\n\n\n\n<style>body .wp-block-code>code {\n    background: #ddd !important;\n    color: #000 !important;\n}\n<\/style>\n","protected":false},"excerpt":{"rendered":"<p>Red Hat offers the ability to create service accounts specifically for pulling images from registry.redhat.io<\/p>\n","protected":false},"author":67,"featured_media":16408,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[25],"tags":[],"class_list":["post-16407","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-professional-services","entry"],"_links":{"self":[{"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/posts\/16407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/comments?post=16407"}],"version-history":[{"count":1,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/posts\/16407\/revisions"}],"predecessor-version":[{"id":16410,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/posts\/16407\/revisions\/16410"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/media\/16408"}],"wp:attachment":[{"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/media?parent=16407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/categories?post=16407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.insentragroup.com\/au\/wp-json\/wp\/v2\/tags?post=16407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}