Closed Bug 962970 Opened 10 years ago Closed 10 years ago

Allow tokenserver to use a single signing secret for all nodes

Categories

(Cloud Services Graveyard :: Server: Token, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WONTFIX

People

(Reporter: rfkelly, Assigned: rfkelly)

References

Details

(Whiteboard: [qa?])

Attachments

(2 files)

To simplify our initial deployments of tokenserver+sync1.5, it will be handy to allow tokenserver to sign all tokens with a single, shared secret that is associated with all storage nodes.  This means we don't have to block deployment on scripting/management of the secrets database.
To enable this, I've added a FixedSecrets class to mozsvc.secrets.  It provides the same API as the existing Secrets class, but uses the same set of secrets for every node.

I've also changed the auth-checking logic to validate that the user is in the right place - we used to get this for free, because the signature wouldn't validate on an incorrect node.
Assignee: nobody → rfkelly
Attachment #8364194 - Flags: review?(telliott)
And here's the patch to make tokenserver use it.  You can now specify either "secret" or "secrets_file" to use FixedSecrets or Secrets respectively.
Attachment #8364195 - Flags: review?(telliott)
Whiteboard: [qa?]
This is possibly lowering the security of the whole system. We need to keep track of this and restore back to having a different secret per node later on :)
> This is possibly lowering the security of the whole system.

Yep.  Actually I think I left all the default configs using secrets_file, so this will be a secret Ops switch that we can throw on/off as we need during deployment prep.
I synced up with Ops again this morning and it sounds like they're unblocked enough without needing to go this route, so I'm just going to close this out.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Attachment #8364194 - Flags: review?(telliott)
Attachment #8364195 - Flags: review?(telliott)
Ok then
Status: RESOLVED → VERIFIED
Depends on: 996112
No longer depends on: 996112
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: