production: OIN -> SWH deposit client
production:
- client: needs to create their production account
-
client:
asavory
- Domain and provider url from client [3]
-
Add
swh.deposit.api
role to user in keycloak in production realm - deposit db: Create deposit api collection & client [2] (same as staging)
- Ask client whether the deposit access is ok
[1] https://docs.softwareheritage.org/devel/swh-deposit/api/register-account.html#as-a-sysadm
[2] Output sample cli
swhdeposit@deposit:~$ swh deposit admin \
--config-file $SWH_CONFIG_FILENAME \
--platform production \
user create \
--collection "<collection>" \
--username "<username>" \
--provider-url <url-tbd> \
--domain "<domain>"
Collection '<collection>' exists, skipping.
Create user '<username>'.
User '<username>' created.
[3] Using the same configuration as staging user
2024-05-14 09:45:51 swh-deposit@db1:5432 λ select * from deposit_client where user_ptr_id=13;
+-------------+-------------+-----------------------------------+--------------------------+
| user_ptr_id | collections | provider_url | domain |
+-------------+-------------+-----------------------------------+--------------------------+
| 13 | {12} | https://openinventionnetwork.com/ | openinventionnetwork.com |
+-------------+-------------+-----------------------------------+--------------------------+
(1 row)