https://github.com/maelvls/tppcred
A utility to edit the Generic Credentials in TPP.
https://github.com/maelvls/tppcred
Last synced: 3 months ago
JSON representation
A utility to edit the Generic Credentials in TPP.
- Host: GitHub
- URL: https://github.com/maelvls/tppcred
- Owner: maelvls
- Created: 2025-01-23T15:39:07.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-03-13T10:56:06.000Z (3 months ago)
- Last Synced: 2025-03-13T11:35:31.582Z (3 months ago)
- Language: Go
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tppcred
A utility to edit the Generic Credentials in TPP.
## Installation
```bash
go install github.com/maelvls/tppcred@latest
```## Usage
First, authenticate with the TPP server using the command:
```bash
tppcred auth
```This will prompt you for the TPP URL, your username, password, and client ID:
```console
$ tppcred auth
┃ Do not add the suffix '/vedsdk'.
┃ URL: https://tpp-ext.tpp-tests.jetstack.netThe TPP user must be a super admin if you want to run 'tppcred ls'.
Username: jetstack-platformThe 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-sdk
```You can list the Generic Credentials with:
```bash
tppcred ls
```You can edit a Generic Credential straight from your terminal with:
```bash
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:
```bash
tppcred push '\VED\Policy\firefly\config.yaml' < config.yaml
```You can output the Generic Credential's contents with:
```bash
tppcred show '\VED\Policy\firefly\config.yaml'
```You can delete a Generic Credential with:
```bash
tppcred rm '\VED\Policy\firefly\config.yaml'
```