Categorygithub.com/maelvls/tppctl
modulepackage
0.0.0-20250127145834-9e5c8eed6594
Repository: https://github.com/maelvls/tppctl.git
Documentation: pkg.go.dev

# README

tppctl

A utility to edit the Generic Credentials in TPP.

Installation

go install github.com/maelvls/tppctl@latest

Usage

First, authenticate with the TPP server using the command:

tppctl auth

This will prompt you for the TPP URL, your username, password, and client ID:

$ tppctl 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 'tppctl ls'.
  Username: jetstack-platform

  The password will be stored in plain text in ~/.config/tppctl.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:

tppctl ls

You can edit a Generic Credential straight from your terminal with:

tppctl 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:

tppctl push '\VED\Policy\firefly\config.yaml' < config.yaml

You can output the Generic Credential's contents with:

tppctl show '\VED\Policy\firefly\config.yaml'

You can delete a Generic Credential with:

tppctl rm '\VED\Policy\firefly\config.yaml'

# Packages

No description provided by the author

# Functions

Env vars take precedence over the configuration file ~/.config/tppctl.yaml.
Also requests a new token if the token is empty.
No description provided by the author
No description provided by the author
ResultString returns the description of the error code.
POST /vedsdk/Credentials/delete.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Note: The Value field cannot be empty regardless of the Type.

# Type aliases

The `Expiration` field used by the TPP Credentials endpoints [1] use Microsoft's .NET JavaScriptSerializer hacky format [2] [3].
Error codes and their descriptions.
No description provided by the author