Can't set a specific API key through the API or UI
Bug #1488649 reported by
Jason Hobbs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
There is no way, through the API or CLI, to set an API key for a user to specific value. I'm setting up a new MAAS to replace an existing MAAS server. I want to reuse the MAAS API keys from my existing MAAS server so I don't have to redistribute new API keys to all my infrastructure that uses it.
To work around this, I wrote a script that used sql directly to set the key values in the piston_consumer and piston_token tables in the database.
This was with MAAS 1.8.2.
summary: |
- Can't set a specific API key through the API + Can't set a specific API key through the API or UI |
Changed in maas: | |
milestone: | next → none |
To post a comment you must log in.
It is my understanding that by design, the API is to be generated automatically by MAAS and not allow the user to change that or specify one themselves. That being said, I don't know if we would like to support this in the future, but at the moment it is nto something that has priority.