Skip to content

deposit: Configure deposit to use keycloak in staging

And keep the basic authentication mechanism for the production instance.

Related to T2858

Test Plan

bin/octocatalog:

bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging deposit.internal.staging.swh.network
Found host deposit.internal.staging.swh.network
*** Running octocatalog-diff on host deposit.internal.staging.swh.network
I, [2021-03-19T10:46:39.590029 #24158]  INFO -- : Catalogs compiled for deposit.internal.staging.swh.network
I, [2021-03-19T10:46:41.388585 #24158]  INFO -- : Diffs computed for deposit.internal.staging.swh.network
diff origin/production/deposit.internal.staging.swh.network current/deposit.internal.staging.swh.network
*******************************************
  File[/etc/softwareheritage/deposit/server.yml] =>
   parameters =>
     content =>
      @@ -24,4 +24,8 @@
       extraction_dir: "/tmp/swh-deposit/archive/"
       swh_authority_url: https://deposit.staging.swh.network/
      +authentication_provider: keycloak
      +keycloak:
      +  server_url: https://auth.softwareheritage.org/auth/
      +  realm_name: SoftwareHeritageStaging
       allowed_hosts:
       - deposit.staging.swh.network
*******************************************
*** End octocatalog-diff on deposit.internal.staging.swh.network
$ bin/octocatalog-diff --octocatalog-diff-args --no-truncate-details --to staging moma
Found host moma.softwareheritage.org
*** Running octocatalog-diff on host moma.softwareheritage.org
I, [2021-03-19T10:47:05.969085 #30451]  INFO -- : Catalogs compiled for moma.softwareheritage.org
I, [2021-03-19T10:47:08.697311 #30451]  INFO -- : Diffs computed for moma.softwareheritage.org
diff origin/production/moma.softwareheritage.org current/moma.softwareheritage.org
*******************************************
  File[/etc/softwareheritage/deposit/server.yml] =>
   parameters =>
     content =>
      @@ -23,4 +23,5 @@
       extraction_dir: "/tmp/swh-deposit/archive/"
       swh_authority_url: https://deposit.softwareheritage.org/
      +authentication_provider: basic
       allowed_hosts:
       - deposit.softwareheritage.org
*******************************************
*** End octocatalog-diff on moma.softwareheritage.org

Migrated from D5284 (view on Phabricator)

Merge request reports