Page MenuHomeSoftware Heritage

OIN -> SWH deposit connection
Closed, MigratedEdits Locked

Description

[Currently as email exchange]

First check on staging and then reiterate the procedure on production when ready.

Plan, staging first:

  • swh: provide documentation on actions to undertake by clients (and push them to the clients). None exists ¯\_(ツ)_/¯
  • Reply to email asking for required information:
    • keycloak staging user to create on staging
    • provider url
  • D8142: Create documentation on how to boostrap a new deposit collection
  • Send email to require the needed information [1]
  • Publish new documentation to register new deposit client [1]
  • (current status) awaiting feedback from client
  • replied
  • client: Create account on keycloak staging [2] (amurphy97) [3]
  • T4399#89019: swh: add swh.web.deposit to oin user's role
  • T4399#89019: swh: Create deposit collection for new deposit client
  • T4399#89019: swh: associate the provider url to the new deposit client
  • client: check everything is fine
    • Access the authenticated service document endpoint, GET /servicedocument/ [4]
    • push their first deposit following api documentation [5]

[1] https://docs.softwareheritage.org/devel/swh-deposit/api/register-account.html

[2] https://webapp.staging.swh.network/oidc/login/?next_path=https://webapp.staging.swh.network/

[3] client information:

  • username: amurphy97
  • collection: oin
  • provider-url: openinventionnetwork.com

[4] https://docs.softwareheritage.org/devel/swh-deposit/endpoints/service-document.html

[5] https://docs.softwareheritage.org/devel/swh-deposit/endpoints/collection.html

Event Timeline

ardumont triaged this task as Normal priority.Jul 19 2022, 11:59 AM
ardumont created this task.
ardumont updated the task description. (Show Details)
ardumont changed the task status from Open to Work in Progress.Aug 5 2022, 10:19 AM
ardumont updated the task description. (Show Details)
ardumont moved this task from Backlog to in-progress on the System administration board.

On deposit staging instance, create the user with the proper information [1].
Check everything is fine [2] (if it's not amend directly in db).

[1]

swhdeposit@deposit:~$ swh deposit admin --config-file $SWH_CONFIG_FILENAME --platform production \
>   user create --username amurphy97 --collection oin \
>   --provider-url openinventionnetwork.com
Create collection 'oin'.
Collection 'oin' created.
Create user 'amurphy97'.
User 'amurphy97' created.

[1]

psql service=staging-swh-deposit -c "select * from deposit_client inner join auth_user u on u.id=user_ptr_id where username='amurphy97'"
...
+-------------+-------------+--------------------------+--------------------------+----+----------+------------+--------------+-----------+------------+-----------+-------+----------+-----------+-------------------------------+
| user_ptr_id | collections |       provider_url       |          domain          | id | password | last_login | is_superuser | username  | first_name | last_name | email | is_staff | is_active |          date_joined          |
+-------------+-------------+--------------------------+--------------------------+----+----------+------------+--------------+-----------+------------+-----------+-------+----------+-----------+-------------------------------+
|          13 | {12}        | openinventionnetwork.com | openinventionnetwork.com | 13 |          | (null)     | f            | amurphy97 |            |           |       | f        | t         | 2022-08-05 08:34:02.972894+00 |
+-------------+-------------+--------------------------+--------------------------+----+----------+------------+--------------+-----------+------------+-----------+-------+----------+-----------+-------------------------------+
(1 row)

Time: 73.491 ms
ardumont updated the task description. (Show Details)
ardumont renamed this task from OID -> SWH deposit connection to OIN -> SWH deposit connection.Aug 5 2022, 1:17 PM

No feedback received but some deposits are showing up in the staging deposit db.
So i'm assuming all is fine.

Closing this.

ardumont claimed this task.
ardumont moved this task from deployed/landed/monitoring to done on the System administration board.