#9270 asking for permanent session token
Closed: Fixed 3 years ago by pingou. Opened 3 years ago by lnie.

Hi,

I need a permanent session token for fedoraproject.org and stg.fedoraproject.org,thanks for your help.

Thanks,
Lili


Hi Lili

Could you give more info on why you need a permanent session token? It would not be normal good practise to issue these.

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

3 years ago

Hi ,
I have wrote a service which will listen to fedora-messaging message ,and trigger jobs and report to wiki the results,so I need a permanent session token to avoid interactive authentication.Would you please send me the token to my email?Or,would you please tell me where should I open a ticket?Thanks.

I am not sure we have set up permanent session tokens at all (or in at least a very very very long time). This will need some research on our part. There are a couple of questions that I know will be asked by other admins:

  1. Where is this service listening to fedora-messaging running?
  2. What jobs is it triggering and where?
  3. What group is this work for (QA/Engineering/Communications/etc)

Some of these are security related since the wiki gets hit with a lot of spam and people have tried different ways to get permanent access to it in the past. [Then Fedora gets blacklisted again by google for being a spam-site ...] If there is a permanent token that service needs more eyes on it.

hi,
I'm following Authentication of this page https://pagure.io/fedora-qa/python-wikitcms
and thought it's a very common case, at least Openqa has a permanent one?
1.Where is this service listening to fedora-messaging running?
On fedora Infra servers or container on openshift deployed by internal pnt dev ops
2.What jobs is it triggering and where?
Customized Installation jobs on beaker servers testing fedora branched compose and rawhide compose
3. What group is this work for (QA/Engineering/Communications/etc)
QA

Metadata Update from @mohanboddu:
- Issue tagged with: medium-gain, medium-trouble, ops

3 years ago

IIUC you just want an OIDC token to authenticate to wiki?

@lnie basically wants the same thing we have for openQA to do wiki reporting. The token that's {{ private }}/files/openidc/production/wikitcms.json in ansible. lnie is on the same team as me, this is Fedora QA work.

IIUC you just want an OIDC token to authenticate to wiki?

yes,thanks Adam's comment:)

Does it need the same scopes?

it would need to be able to edit the wiki, basically. I dunno what scopes the openQA token has.

Checking the DB for @adamwill's token, it has:

scope                  | ["openid", "https://fedoraproject.org/wiki/api"]

So let's do the same.

How can we give you access to that token? Should it be in the private repo for @adamwill or should we send it to you somehow? (a file on fedorapeople? gpg encrypted email?)

Oh one thing that we are missing is: What is the name of the application?

Metadata Update from @pingou:
- Issue assigned to pingou

3 years ago

Oh one thing that we are missing is: What is the name of the application?

hi, the name is fedora-release-autotest,thanks.

I have created the token, how should I send it to you?

Hi,thanks a lot for your help,by email?lnie@redhat.com
Here is my gpg pub key just in case it's needed

-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBF9GJiwBEAC9mpTGITlYJi+WY32zlUt4+VnutCzmeRUQIMUg8PVZkS1Ve9QG
RKmG/qdvXcfGFDzdQ/jP07gmcYRSNXKFvo82tdpg/2YKnI+cAiBZNyrOkeYNWvyY
UqZcgAiDddsg+9L+6cUe/wKtebQgs3oxrbSFaBVSEgrAbuT3joSKaMY3j5CfKDo/
EKXmaTcfsECOu/fQUvLu2/Ul+sQtBsIwiWEnJCm5HwQZYlO3qmwI+WhghcVD/wW0
kgY+LwnMT8wKGp6yrotPnemHlBATrqqUqzit1fzDO2zhZpdv9vV56DBMoSATLeZS
t1Jgee/Jgkxk1IAvzJqJASN2E6OFGuiAopNoP1DGXO8aTYHHT7vW14I3Yo8zvpul
x+KYfpIQFt/fr/E/krc23XpIDdA09PmgsSgnfrYqlRATcfKwA+OmD+k1ypLwkT4L
CATGM/pVODVkosrBt8tTR7J6xQ6HuytT5nLQgREjya58XJyRLfFe0FxrtQkB4sc2
69IYSUksF7rvF374J6N5nUlvIZODrCBRbsl3TD2nkLY2Sd0k0n3/+pIf5dUm29Pj
Tg0tCKygfXdtOvzBWe1n+Q9UM6u6ZT3A8ToqoRDEFuqJaIJ/R67ph5sbPMTjoITI
tioy4uCEbiAt6TgZfRyda8MziMxkiBteHQcCm0vWN99b6cNDTMFA0cdZAQARAQAB
tDxmZWRvcmEtcmVsZWFzZS1hdXRvdGVzdCA8ZmVkb3JhLXJlbGVhc2UtYXV0b3Rl
c3RAcmVkaGF0LmNvbT6JAk4EEwEIADgWIQRdT8E6Jp8lFyVQlAJ6ARGkL2JCYgUC
X0YmLAIbAwULCQgHAg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Zhnbsr4sQu0j7yDEVzR3A6ov4JV/+pWGR6CCzx7fb
5C7Zs1tM9ixTse/pw4BOxE4qOrelI6UL
=ZpbE
-----END PGP PUBLIC KEY BLOCK-----

I've sent you the token, could you confirm you've received and can read it?

Thanks

Hi,
I can read it,thanks for your help again:)

Cool, let's close this ticket then :)

Let us know if you need anything else!

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

3 years ago

Login to comment on this ticket.

Metadata
Boards 1
ops Status: Done