Skip to content

Keys can't be revoked when configured with a Project key #11

@grahamc

Description

@grahamc

I've run:

      # vault kv put packet/config api_token=a-project-key
      # vault kv put packet/role/foo type=project ttl=30 max_ttl=3600 project_id=xxx-xxx-xxx-xxx-xxx read_only=false

and then I created a key and revoked it. Vault's log shows an error in revocation:

Mar 28 12:37:43 kif vault[4655]: 2020-03-28T12:37:43.906Z [ERROR] expiration: failed to revoke lease: lease_id=packet/creds/foo/xxxxxxx error="failed to revoke entry: resp: (*logical.Response)(nil) err: DELETE https://api.packet.net/user/api-keys/xxxxxxxxxx: 403 Access denied for the current authentication token "

Looking at the user portal, this is the request to delete a project key:

Request URL:https://api.packet.net/api-keys/xxxxxxxxxxxxxxx?token=...
Request Method:DELETE

This plugin should probably have a way to clean up keys made this way, too: I don't really want to use a user key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions