Nonce generation should use uuids rather than randint(100000000)
Bug #1359247 reported by
Greg Lutostanski
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Go MAAS API Library |
In Progress
|
High
|
Greg Lutostanski | ||
juju-core |
New
|
Undecided
|
Unassigned |
Bug Description
Even with maas' nonce cleaner we should be using uuids for nonces rather than randInt(
It only takes 10000 calls to have a ~40% chance of a collision using the randInt method.
This can be hit using juju bootstrap (or any time juju makes a lot of gomaasapi calls) causing the "ERROR Nonce already used:" problem (https:/
Related branches
lp:~lutostag/gomaasapi/fix_nonce_generation
- Ian Booth: Approve
-
Diff: 30 lines (+4/-5)1 file modifiedoauth.go (+4/-5)
Changed in gomaasapi: | |
importance: | Undecided → High |
status: | New → In Progress |
assignee: | nobody → Greg Lutostanski (lutostag) |
tags: | added: cloud-installer landscape |
no longer affects: | juju-core (Ubuntu) |
Changed in juju-core: | |
milestone: | none → 1.20.7 |
To post a comment you must log in.