Skip to content

Update key over BLE #418

@Lenart12

Description

@Lenart12

Currently only the undocumented fleet api endpoint api/v1/users/keys allows setting the name of added key:

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", &params)
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions