#10270 Make badges use FASJSON
Closed: Fixed 2 years ago by ryanlerch. Opened 2 years ago by ryanlerch.

FAS2 is being retired (see #102540 ) and badges still uses it. we need to get badges to use FASJSON.


Ok -- i actaully forgot that i implemented the required changes to make fedbadges (badges-backend) to use fasjson over FAS.

The patch is in this commit:

https://github.com/fedora-infra/fedbadges/commit/54503d211c76b24d59204e8c33742e2236f7928b

and i have applied this patch as a hotfix to fedbadges on stg. the following change to the config was required on stage to give it the details it needed to work:

https://pagure.io/fedora-infra/ansible/blob/main/f/roles/badges/backend/templates/badges-awarder.py#_42

Metadata Update from @humaton:
- Issue tagged with: authentication, medium-gain, medium-trouble

2 years ago

Metadata Update from @ryanlerch:
- Issue assigned to ryanlerch

2 years ago

OK, pushed a 1.0.3 release of fedbadges with the fasjson code in it:

https://github.com/fedora-infra/fedbadges/releases/tag/1.0.3

next step is to build this in the infra yum repo with koji, and try deploying that to stage.

(currently on stage, the code is there, just put there manually)

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

2 years ago

Have packaged this up, and its now running on stg

however, stage is not granting any badges, as fasjson on stage is not working for some reason.

filed https://pagure.io/fedora-infrastructure/issue/10274 for fasjson stage being down.

Okay, have tested this out on staging, and it all seems to work well. (now it can actaully talk to staging fasjson -- thanks @kevin )

I have filed this PR with the changes required to get this working on prod:

https://pagure.io/fedora-infra/ansible/pull-request/833

I just don't have access to either badges-frontend or badges-backend on prod to go any further.

appears i need to be a member of sysadmin-badges to be able to sudo on the prod machines, and to run the playbooks.

have pinged @nb on #fedora-badges to see if i can get this priv to update badges.

Badges is now using FASJSON -- have verified this works with a testuser, and they have badges now:

https://badges.fedoraproject.org/user/testaccount22

so it is definitely veryifying against Fedora Accounts, not FAS2 (this user doesnt exist in FAS2)

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

2 years ago

Login to comment on this ticket.

Metadata