A utility to edit the Generic Credentials in TPP.
go install github.com/maelvls/tppcred@latestFirst, authenticate with the TPP server using the command:
tppcred authThis will prompt you for the TPP URL, your username, password, and client ID:
$ tppcred auth
┃ Do not add the suffix '/vedsdk'.
┃ URL: https://tpp-ext.tpp-tests.jetstack.net
The TPP user must be a super admin if you want to run 'tppcred ls'.
Username: jetstack-platform
The password will be stored in plain text in ~/.config/tppcred.yaml
Password: *******************
The API Integration associated to your client ID must accept the scope configuration:manage;security:manage,delete.
Client ID: vcert-sdkYou can list the Generic Credentials with:
tppcred lsYou can edit a Generic Credential straight from your terminal with:
tppcred edit '\VED\Policy\firefly\config.yaml'This will open your $EDITOR (e.g., Vim). Close the editor to save the changes.
You can create or update a Generic Credential with:
tppcred push '\VED\Policy\firefly\config.yaml' < config.yamlYou can output the Generic Credential's contents with:
tppcred show '\VED\Policy\firefly\config.yaml'You can delete a Generic Credential with:
tppcred rm '\VED\Policy\firefly\config.yaml'