-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Description
Currently only the undocumented fleet api endpoint api/v1/users/keys allows setting the name of added key:
vehicle-command/pkg/account/account.go
Lines 220 to 230 in e9cdd8b
| func (a *Account) UpdateKey(ctx context.Context, publicKey *ecdh.PublicKey, name string) error { | |
| params := map[string]string{ | |
| "public_key": fmt.Sprintf("%02x", publicKey.Bytes()), | |
| "kind": "mobile_device", | |
| "model": "3rd Party Application", | |
| "name": name, | |
| "tag": a.UserAgent, | |
| } | |
| _, err := a.sendFleetAPICommand(ctx, "api/1/users/keys", ¶ms) | |
| return err | |
| } |
There are already some number of applications that use this library for BLE access and for those setting up fleet api authorization is not worth it to only rename the key.
Is there some way to do this locally or without fleet api or can this functionality be exposed to BLE as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels