<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>~/blog - ~/blog/posts/</title>
    <subtitle>Modern systems are invisible cathedrals</subtitle>
    <link rel="self" type="application/atom+xml" href="https://blog.oziol.fr/posts/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://blog.oziol.fr/posts/"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-10-25T00:00:00+00:00</updated>
    <id>https://blog.oziol.fr/posts/atom.xml</id>
    <entry xml:lang="en">
        <title>Integrating Ceph RADOS Gateway with STS, OpenID Connect and INDIGO IAM</title>
        <published>2026-10-25T00:00:00+00:00</published>
        <updated>2026-10-25T00:00:00+00:00</updated>
        
        <author>
          <name>Unknown</name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://blog.oziol.fr/posts/ceph-rados-gateway-sts-oidc/"/>
        <id>https://blog.oziol.fr/posts/ceph-rados-gateway-sts-oidc/</id>
        
        <content type="html" xml:base="https://blog.oziol.fr/posts/ceph-rados-gateway-sts-oidc/">&lt;p&gt;In this post, I explore how to configure STS for Ceph RADOS Gateway S3 with INDIGO IAM as an OpenID Connect provider.&lt;/p&gt;
&lt;h1 id=&quot;some-context&quot;&gt;Some context&lt;a class=&quot;zola-anchor&quot; href=&quot;#some-context&quot; aria-label=&quot;Anchor link for: some-context&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;RADOS Gateway implements a subset of AWS &lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://docs.aws.amazon.com/STS/latest/APIReference/Welcome.html&quot;&gt;Security Token Service&lt;/a&gt; (STS) APIs since the Nautilus release. STS allows applications and services to get ephemeral access to S3 resources, by issuing temporary credentials: &lt;code&gt;AWS_ACCESS_KEY_ID&lt;/code&gt;, &lt;code&gt;AWS_SECRET_ACCESS_KEY&lt;/code&gt; and &lt;code&gt;AWS_SESSION_TOKEN&lt;/code&gt;. Access to the resources can be further controlled through the use of AWS S3 bucket policies which are &lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://docs.ceph.com/en/latest/radosgw/bucketpolicy/&quot;&gt;natively supported by RADOS Gateway&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This mechanism is especially interesting when users want to delegate access to their S3 resources to a third party service or application, with fine grained control over what operations can be done and with support for federated access when using OpenID Connect.&lt;/p&gt;
&lt;h1 id=&quot;enabling-sts-in-rados-gateway&quot;&gt;Enabling STS in RADOS Gateway&lt;a class=&quot;zola-anchor&quot; href=&quot;#enabling-sts-in-rados-gateway&quot; aria-label=&quot;Anchor link for: enabling-sts-in-rados-gateway&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h1&gt;
&lt;h2 id=&quot;configuring-rgw-sts-key&quot;&gt;Configuring &lt;code&gt;rgw_sts_key&lt;/code&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#configuring-rgw-sts-key&quot; aria-label=&quot;Anchor link for: configuring-rgw-sts-key&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;We are going to begin by generating a 16 characters hexadecimal string that will be used to encrypt and decrypt the session tokens contained in &lt;code&gt;AWS_SESSION_TOKEN&lt;/code&gt;.&lt;/p&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; openssl&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; rand&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;hex&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; 8&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;c7f4de5b357db789&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ceph&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; config&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; set&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; client.{RGW_SERVICE_NAME}&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; rgw_sts_key&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; c7f4de5b357db789&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote class=&quot;markdown-alert-note&quot;&gt;
&lt;p&gt;&lt;code&gt;RGW_SERVICE_NAME&lt;/code&gt; is the name of the RADOS Gateway service, i.e. &lt;code&gt;rgw.mesocentre.uca-lab-oscar&lt;/code&gt; in the following output.&lt;/p&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ceph&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; orch&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ls&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;NAME&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;                          PORTS&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;        RUNNING&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  REFRESHED&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  AGE&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  PLACEMENT&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;alertmanager&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;                  ?:9093,9094&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;      1/1&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  114s&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ago&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   2w&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   count:1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;crash&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;                                          1/1&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  114s&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ago&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   2w&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;   *&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;grafana&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;                       ?:3000&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;           1/1&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  114s&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ago&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   2w&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   count:1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;mgr&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;                                            2/2&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  114s&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ago&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   2w&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   count:2&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;mon&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;                                            1/5&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  114s&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ago&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   2w&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   count:5&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;node-exporter&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;                 ?:9100&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;           1/1&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  114s&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ago&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   2w&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;   *&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;osd.all-available-devices&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;                        3&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  114s&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ago&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   2w&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;   *&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;prometheus&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;                    ?:9095&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;           1/1&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  114s&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ago&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   2w&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   count:1&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l z-l-hl z-d-hl&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;rgw.mesocentre.uca-lab-oscar&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  ?:7480&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;           1/1&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  114s&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ago&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   2w&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;   count:1&lt;/span&gt;&lt;span&gt;     &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;markdown-alert-warning&quot;&gt;
&lt;p&gt;Since the Squid release, this key should be generated using &lt;code&gt;ceph-authtool --gen-print-key&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;configuring-rgw-s3-auth-use-sts&quot;&gt;Configuring &lt;code&gt;rgw_s3_auth_use_sts&lt;/code&gt;&lt;a class=&quot;zola-anchor&quot; href=&quot;#configuring-rgw-s3-auth-use-sts&quot; aria-label=&quot;Anchor link for: configuring-rgw-s3-auth-use-sts&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;This flag is used to enable STS on the RADOS Gateway S3 endpoint.&lt;/p&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ceph&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; config&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; set&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; client.{RGW_SERVICE_NAME}&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; rgw_s3_auth_use_sts&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; true&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&quot;checking-the-configuration&quot;&gt;Checking the configuration&lt;a class=&quot;zola-anchor&quot; href=&quot;#checking-the-configuration&quot; aria-label=&quot;Anchor link for: checking-the-configuration&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;You should now have something similar to this in your Ceph configuration:&lt;/strong&gt;&lt;/p&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; ceph&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; config&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; get&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; client.{RGW_SERVICE_NAME}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;WHO&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;                        MASK&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  LEVEL&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;     OPTION&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;               VALUE&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;             RO&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;client.&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;R&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;G&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;W&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;_&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;E&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;R&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;V&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;I&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;C&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;E&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;_&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;N&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;A&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;M&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;E&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;        advanced&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  rgw_s3_auth_use_sts&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;  true&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;client.&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;R&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;G&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;W&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;_&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;S&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;E&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;R&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;V&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;I&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;C&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;E&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;_&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;N&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;A&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;M&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;E&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;        advanced&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  rgw_sts_key&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;          c7f4de5b357db789&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;  *&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&quot;configuring-indigo-iam-openid-connect-to-work-with-rados-gateway-sts&quot;&gt;Configuring INDIGO IAM OpenID Connect to work with RADOS Gateway STS&lt;a class=&quot;zola-anchor&quot; href=&quot;#configuring-indigo-iam-openid-connect-to-work-with-rados-gateway-sts&quot; aria-label=&quot;Anchor link for: configuring-indigo-iam-openid-connect-to-work-with-rados-gateway-sts&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;RADOS Gateway implements the following STS APIs:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;AssumeRole&lt;/code&gt; which allows you to get ephemeral S3 access tokens provided you have existing an existing &lt;code&gt;AWS_ACCESS_KEY_ID&lt;/code&gt; and &lt;code&gt;AWS_SECRET_ACCESS_KEY&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;AssumeRoleWithWebIdentity&lt;/code&gt; which allows you to get ephemeral S3 access tokens from an OpenID Connect ID Token.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;See &lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://docs.ceph.com/en/latest/radosgw/STS/&quot;&gt;STS in Ceph&lt;/a&gt; for more details.&lt;/p&gt;
&lt;blockquote class=&quot;markdown-alert-note&quot;&gt;
&lt;p&gt;The &lt;code&gt;GetCallerIdentity&lt;/code&gt; API is also implemented &lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://docs.ceph.com/en/umbrella/radosgw/STS/&quot;&gt;since the Umbrella release&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;the-assumerolewithwebidentity-api&quot;&gt;The &lt;code&gt;AssumeRoleWithWebIdentity&lt;/code&gt; API&lt;a class=&quot;zola-anchor&quot; href=&quot;#the-assumerolewithwebidentity-api&quot; aria-label=&quot;Anchor link for: the-assumerolewithwebidentity-api&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Here is an overview of how it works:&lt;/strong&gt;&lt;/p&gt;
&lt;pre class=&quot;mermaid&quot;&gt;

sequenceDiagram
    autonumber
    actor User as User
    participant App as Application or Service
    participant IAM as INDIGO IAM
    participant RGW as RADOS Gateway

    User-&gt;&gt;App: Wants to access S3 Resources
    App-&gt;&gt;User: Redirects to IAM
    User-&gt;&gt;IAM: Authorizes App
    IAM-&gt;&gt;App: Returns auth. code 
    App&lt;&lt;-&gt;&gt;IAM: Exhanges auth. code for user {ID Token}
    App-&gt;&gt;RGW: Calls STS AssumeRoleWithWebIdentity API &lt;br&gt; {Role, ID Token, Duration}
    RGW-&gt;&gt;IAM: Validates {ID Token}
    RGW-&gt;&gt;App: Returns &lt;br&gt; {AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN}
    App-&gt;&gt;RGW: Accesses S3 APIs with &lt;br&gt; {AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN}

&lt;/pre&gt;
&lt;p&gt;RADOS Gateway STS engine validates the token against the JSON Web Key Sets (JWKS). To do this the STS engine accesses the JWKS URI, which is specified in the &lt;code&gt;jwks_uri&lt;/code&gt; field of the OpenID Connect discovery documents of your Authorization Server at &lt;code&gt;https://{Authorization Server}/.well-known/openid-configuration&lt;/code&gt;.
In the JWKS the STS engine specifically looks for the &lt;code&gt;x5c&lt;/code&gt; field. As per &lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://www.rfc-editor.org/info/rfc7517/#section-4.7&quot;&gt;RFC7517&lt;/a&gt;, this optional field should contain a base64-encoded DER certificate which will be used for token verification.&lt;/p&gt;
&lt;h2 id=&quot;indigo-iam-jwks-x5c-field&quot;&gt;INDIGO IAM JWKS &lt;code&gt;x5c&lt;/code&gt; field&lt;a class=&quot;zola-anchor&quot; href=&quot;#indigo-iam-jwks-x5c-field&quot; aria-label=&quot;Anchor link for: indigo-iam-jwks-x5c-field&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;If you have followed the INDIGO IAM documentation to &lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://indigo-iam.github.io/v/current/docs/getting-started/jwk/&quot;&gt;generate you JWKS&lt;/a&gt;, it won&#39;t include the &lt;code&gt;x5c&lt;/code&gt; field. Luckily, we can generate a certificate for it using the existing information present in the JWKS as it includes everything we need to generate a public and a private key, which we will use to generate a certificate.&lt;/p&gt;
&lt;blockquote class=&quot;markdown-alert-caution&quot;&gt;
&lt;p&gt;If you already have and INDIGO IAM deployment in production, I strongly advise you against generating a new JWKS using a tool which produces the &lt;code&gt;x5c&lt;/code&gt; field. It will most likely break your deployment and prevent users from authenticating.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We are going to proceed as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Locate the current JWKS on the INDIGO IAM server, it is usually named &lt;code&gt;keystore.jwks&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote class=&quot;markdown-alert-note&quot;&gt;
&lt;p&gt;You probably want to back it up before, i.e. &lt;code&gt;$ cp keystore.jwks keystore.jwks.backup&lt;/code&gt;, as we will edit it later on.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol start=&quot;2&quot;&gt;
&lt;li&gt;Use this &lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://git.oziol.fr/&quot;&gt;script&lt;/a&gt;, which I have slighty modified to accommodate INDIGO IAM JWKS structure. &lt;!-- (TODO: CREATE REPO WITH SCRIPT) --&gt;&lt;/li&gt;
&lt;li&gt;You now have the keys corresponding to your JWKS: &lt;code&gt;rsa_private.pem&lt;/code&gt; and &lt;code&gt;rsa_public.pem&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Use the private key to to generate a self-signed certificate which will expire in the duration of your choice. For example 3650 days or ~10 years. You may also include a subject to your certificate although it is optional:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; openssl&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; req&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;x509&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; rsa_private.pem&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;sha256&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;days&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; 3650&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; certificate.pem&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;subj&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;/CN=iam-uca-mesocentre&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ol start=&quot;5&quot;&gt;
&lt;li&gt;Encode the certificate to base64 for the &lt;code&gt;x5c&lt;/code&gt; field:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; openssl&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; x509&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; certificate.pem&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;outform&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; DER&lt;/span&gt;&lt;span class=&quot;z-l-8 z-d-10&quot;&gt; |&lt;/span&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt; basenc&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-base64&lt;/span&gt;&lt;span class=&quot;z-l-8 z-d-10&quot;&gt; |&lt;/span&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt; tr&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;MIIDGzCCAgOgAwIBAgIUBUMtm5GP...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ol start=&quot;6&quot;&gt;
&lt;li&gt;Edit &lt;code&gt;keystore.jwks&lt;/code&gt; and add the certificate to the &lt;code&gt;x5c&lt;/code&gt; field. Note that this field contains an array.&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;json&quot; data-name=&quot;keystore.jwks&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;keys&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;kty&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;RSA&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;e&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;AQAB&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;kid&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;....&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;qi&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;dp&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;dq&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l z-l-hl z-d-hl&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;x5c&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;MIIDGzCCAgOgAwIBAgIUBUMtm5GP...==&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&quot;indigo-iam-jwks-x5t-field&quot;&gt;INDIGO IAM JWKS &lt;code&gt;x5t&lt;/code&gt; field&lt;a class=&quot;zola-anchor&quot; href=&quot;#indigo-iam-jwks-x5t-field&quot; aria-label=&quot;Anchor link for: indigo-iam-jwks-x5t-field&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;We are also going to generate the &lt;code&gt;x5t&lt;/code&gt; field. As per &lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://www.rfc-editor.org/info/rfc7517/#section-4.8&quot;&gt;RFC7517&lt;/a&gt;, this optional field should contain the base64-&lt;strong&gt;url&lt;/strong&gt; encoded SHA-1 thumbprint for the certificate we have put in the &lt;code&gt;x5c&lt;/code&gt; field. We will also use the unencoded version of the SHA-1 thumbprint when creating the OpenID Connect provider in RADOS Gateway.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Get the thumbprint&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; openssl&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; x509&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; certificate.pem&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;fingerprint&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;sha1&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;noout&lt;/span&gt;&lt;span class=&quot;z-l-8 z-d-10&quot;&gt; |&lt;/span&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt; cut&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;f2&lt;/span&gt;&lt;span class=&quot;z-l-8 z-d-10&quot;&gt; |&lt;/span&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt; tr&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;CF6CD9212F24FE6A98C697A0BBCD83861C80FCDC&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;blockquote class=&quot;markdown-alert-note&quot;&gt;
&lt;p&gt;Save it for later! We&#39;ll use it when configuring the OpenID Connect provider in RADOS Gateway.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol start=&quot;2&quot;&gt;
&lt;li&gt;Encode it to base64-&lt;strong&gt;url&lt;/strong&gt;. This is the value for the &lt;code&gt;x5t&lt;/code&gt; field.&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; echo&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;CF6CD9212F24FE6A98C697A0BBCD83861C80FCDC&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-8 z-d-10&quot;&gt; |&lt;/span&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt; basenc&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-base64url&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;Q0Y2Q0Q5MjEyRjI0RkU2QTk4QzY5N0EwQkJDRDgzODYxQzgwRkNEQw&lt;/span&gt;&lt;span class=&quot;z-l-8 z-d-10&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;After editing the JWKS and adding the thumbprint, it should look like this:&lt;/strong&gt;&lt;/p&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;json&quot; data-name=&quot;keystore.jwks&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;keys&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;kty&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;RSA&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;e&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;AQAB&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;kid&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;....&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;qi&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;dp&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;dq&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;n&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l z-l-hl z-d-hl&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;x5c&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;MIIDGzCCAgOgAwIBAgIUBUMtm5GP...==&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l z-l-hl z-d-hl&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;x5t&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;Q0Y2Q0Q5MjEyRjI0RkU2QTk4QzY5N0EwQkJDRDgzODYxQzgwRkNEQw==&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&quot;testing-sts&quot;&gt;Testing STS&lt;a class=&quot;zola-anchor&quot; href=&quot;#testing-sts&quot; aria-label=&quot;Anchor link for: testing-sts&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;Now that STS is configured and that RADOS Gateway will be able to validate INDIGO IAM OpenID Connect tokens, we will test the &lt;code&gt;AssumeRoleWithWebIdentity&lt;/code&gt; API. We will do this using dummy scripts posing as an application wanting to access S3 resources on behalf of a user.&lt;/p&gt;
&lt;h2 id=&quot;setting-up-an-openid-connect-client-in-indigo-iam&quot;&gt;Setting up an OpenID Connect client in INDIGO IAM&lt;a class=&quot;zola-anchor&quot; href=&quot;#setting-up-an-openid-connect-client-in-indigo-iam&quot; aria-label=&quot;Anchor link for: setting-up-an-openid-connect-client-in-indigo-iam&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Please refer to the &lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://indigo-iam.github.io/v/current/docs/tasks/user/client-registration/&quot;&gt;Registering a client&lt;/a&gt; page in the INDIGO IAM documentation for more details.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Create a client with the following specifications:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Main&lt;/strong&gt; → &lt;strong&gt;Redirect URIs&lt;/strong&gt;: Ensure it is set to something like &lt;code&gt;http://localhost:4242/cb&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Scopes&lt;/strong&gt; → &lt;strong&gt;System scopes&lt;/strong&gt;: Ensure &lt;code&gt;openid&lt;/code&gt;, &lt;code&gt;profile&lt;/code&gt; and &lt;code&gt;email&lt;/code&gt; are checked.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Grant types&lt;/strong&gt; → &lt;strong&gt;Grant types&lt;/strong&gt;: Ensure &lt;code&gt;authorization_code&lt;/code&gt; is checked as we will use the authorization code flow to get an OpenID Connect token.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You will get a client ID and a client secret, which I will respectively call &lt;code&gt;CLIENT_ID&lt;/code&gt; and &lt;code&gt;CLIENT_SECRET&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&quot;registering-the-openid-connect-provider-in-rados-gateway&quot;&gt;Registering the OpenID Connect provider in RADOS Gateway&lt;a class=&quot;zola-anchor&quot; href=&quot;#registering-the-openid-connect-provider-in-rados-gateway&quot; aria-label=&quot;Anchor link for: registering-the-openid-connect-provider-in-rados-gateway&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Ensure you have a RADOS Gateway user with the &lt;code&gt;oidc-provider=*&lt;/code&gt; capabilities. If not, you can create one like this:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; radosgw-admin&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-uid&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; oidc-admin&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-display-name&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;OIDC Admin&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-access_key&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; oidc-admin&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-secret&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; test4242&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; user&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; create&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; radosgw-admin&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; caps&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; add&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-uid=&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;oidc-admin&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-caps=&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;oidc-provider=*&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ol start=&quot;2&quot;&gt;
&lt;li&gt;Register the the OpenID Connect provider using the AWS CLI:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; export&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; AWS_ACCESS_KEY_ID=oidc-admin&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; export&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; AWS_SECRET_ACCESS_KEY=test123&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; aws&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-endpoint-url&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; http://{RADOS&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; Gateway&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; endpoint}&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; iam&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; create-open-id-connect-provider&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;  -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-url&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; https://{Authorization&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; Server}&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; \ &lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;#&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; Authorization&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; Server&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; designates&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; your&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; INDIGO&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; IAM&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; instance&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;  --client-id-list&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; {CLIENT_ID}&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;  -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-thumbprint-list&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; CF6CD9212F24FE6A98C697A0BBCD83861C80FCDC&lt;/span&gt;&lt;span class=&quot;z-l-5 z-d-3&quot;&gt; #&lt;/span&gt;&lt;span class=&quot;z-l-5 z-d-3&quot;&gt; SHA-1 thumbprint from earlier&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ol start=&quot;3&quot;&gt;
&lt;li&gt;Ensure the provider has been created:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; aws&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-endpoint-url&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; http://{RADOS&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; Gateway&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; endpoint}&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;  iam&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; list-open-id-connect-providers&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;OpenIDConnectProviderList&lt;/span&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;:&lt;/span&gt;&lt;span&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;            &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;Arn&lt;/span&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;arn:aws:iam:::oidc-provider/{Authorization Server}&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;    ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ol start=&quot;4&quot;&gt;
&lt;li&gt;We will also use the &lt;code&gt;oidc-admin&lt;/code&gt; user to create roles, give it this capability like this:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo z-l-code z-d-code&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span class=&quot;z-l-6 z-d-7&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; radosgw-admin&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; caps&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt; add&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-uid=&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;oidc-admin&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt; -&lt;/span&gt;&lt;span class=&quot;z-l-1 z-d-4&quot;&gt;-caps=&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;roles=*&lt;/span&gt;&lt;span class=&quot;z-l-2 z-d-6&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&quot;resources&quot;&gt;Resources&lt;a class=&quot;zola-anchor&quot; href=&quot;#resources&quot; aria-label=&quot;Anchor link for: resources&quot; style=&quot;visibility: hidden;&quot;&gt;&lt;/a&gt;
&lt;/h1&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://docs.redhat.com/en/documentation/red_hat_ceph_storage/4/html/developer_guide/examples-using-the-secure-token-service-apis_dev&quot;&gt;https://docs.redhat.com/en/documentation/red_hat_ceph_storage/4/html/developer_guide/examples-using-the-secure-token-service-apis_dev&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://indico.cern.ch/event/1032742/contributions/4369915/attachments/2257652/3831191/20210603-WLCG-CE-Hackathon.pdf&quot;&gt;https://indico.cern.ch/event/1032742/contributions/4369915/attachments/2257652/3831191/20210603-WLCG-CE-Hackathon.pdf&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://www.redbooks.ibm.com/redpapers/pdfs/redp5715.pdf&quot;&gt;https://www.redbooks.ibm.com/redpapers/pdfs/redp5715.pdf&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://docs.ceph.com/en/quincy/radosgw/oidc/&quot;&gt;https://docs.ceph.com/en/quincy/radosgw/oidc/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://github.com/indigo-iam/iam/issues/529&quot;&gt;https://github.com/indigo-iam/iam/issues/529&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://stackoverflow.com/questions/69179822/jwk-key-creation-with-x5c-and-x5t-parameters&quot;&gt;https://stackoverflow.com/questions/69179822/jwk-key-creation-with-x5c-and-x5t-parameters&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://www.youtube.com/watch?v=y7-fAT3z8Lo&quot;&gt;https://www.youtube.com/watch?v=y7-fAT3z8Lo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;noopener nofollow noreferrer external&quot; target=&quot;_blank&quot; href=&quot;https://indico4.twgrid.org/event/33/contributions/1369/attachments/819/1041/Remote_S3_Storage_Access_Using_CEPH_Rados_Gateway.pptx&quot;&gt;https://indico4.twgrid.org/event/33/contributions/1369/attachments/819/1041/Remote_S3_Storage_Access_Using_CEPH_Rados_Gateway.pptx&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</content>
        
    </entry>
</feed>
