#6977 ODCS openid token for OSBS
Closed: Fixed 5 years ago Opened 5 years ago by cverna.

  • Describe what you need us to do:
    For OSBS to be able to build flatpak, it needs to create new compose using ODCS. I would need a OIDC token with the ODCS new-compose scope for OSBS.

At first this is needed for staging. If the token could be saved in the private ansible under :
{{ private }}/files/osbs/staging/odcs-oidc-token

  • When do you need this? (YYYY/MM/DD)
    If possible by the end of this week (2018/05/27) so we can start testing flatpak build

Metadata Update from @kevin:
- Issue priority set to: Waiting on Assignee (was: Needs Review)

5 years ago

There is a super useful SOP that show how to generate a OIDC token :stuck_out_tongue_winking_eye:

https://fedora-infra-docs.readthedocs.io/en/latest/sysadmin-guide/sops/ipsilon.html

What should I request exactly here for scope? (ie, the -s argument)

What should I request exactly here for scope? (ie, the -s argument)

It needs the new-compose scope which looking at this should be https://pagure.io/odcs/new-compose

What should I request exactly here for scope? (ie, the -s argument)

It needs the new-compose scope which looking at this should be https://pagure.io/odcs/new-compose

Also should this be done on Ipsilon stg ? since this is for odcs stg ? maybe @puiterwijk can help here

Done. Yes, it was/should be in staging. ;)

Let us know if you run into any problems with it!

:last_quarter_moon:

Metadata Update from @kevin:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Metadata Update from @cverna:
- Issue status updated to: Open (was: Closed)

5 years ago

Reopening has it truns out that ODCS requires the following scopes.

https://id.fedoraproject.org/scope/groups
https://pagure.io/odcs/new-compose
https://pagure.io/odcs/renew-compose
https://pagure.io/odcs/delete-compose

Could you create a new token with these scopes and update the secret file {{ private }}/files/osbs/staging/odcs-oidc-token

It should be possible to add mutilple scopes like that

/scripts/generate-oidc-token osbs -e 365 -s https://id.fedoraproject.org/scope/groups -s https://pagure.io/odcs/new-compose -s https://pagure.io/odcs/renew-compose -s https://pagure.io/odcs/delete-compose

Done. I've generated new token with required scopes and ran the playbook:

ansible-playbook /srv/web/infra/ansible/playbooks/groups/osbs-cluster.yml -l staging -t osbs-orchestrator-namespace

Metadata Update from @mizdebsk:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata