Page MenuHomeSoftware Heritage

keycloak: Install users to keycloak instance
ClosedPublic

Authored by ardumont on Mar 18 2021, 4:04 PM.

Details

Summary

Related to T2858

Test Plan

Run through docker

python -m migrate_users_to_keycloak --admin-user admin --admin-pass admin --credentials-path ./staging-users.yaml
INFO:__main__:keycloak server: http://localhost:5080/keycloak/auth/ ; realm: SoftwareHeritage
INFO:__main__:Client: swh-deposit ; client role: swh.deposit.api
INFO:__main__:User 'hal' installed.
INFO:__main__:User 'hal-preprod' installed.
INFO:__main__:User 'hal-test' installed.
INFO:__main__:User 'intel' installed.
INFO:__main__:User 'ipol' installed.
INFO:__main__:User 'swh' installed.
INFO:__main__:User 'swh-worker' installed.
INFO:__main__:User 'swh-olasd' installed.
INFO:__main__:User 'cottagelabs-alexsdutton' installed.

Diff Detail

Repository
rDSNIP Code snippets
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont created this revision.
anlambert added inline comments.
ardumont/keycloak/migrate_users_to_keycloak.py
68

s/keycloak_client/keycloak_user/

This revision is now accepted and ready to land.Mar 18 2021, 4:10 PM
  • Adapt according to suggestion
  • Add logs