A simple CLI utility for automating token generations with kubernetes.
Project description
Configure Azure CLI from CLI
# Authenticate with Azure CLI Creds from Terminal -- Temporal
az login
# Creating an Azure Active Directory Registered Application
az ad sp create-for-rbac --name <app-name> --role Contributor --scopes /subscriptions/<subscription-id>
# Set Environment Variables with the Values
AZURE_CLIENT_ID appId value from the generated JSON
AZURE_TENANT_ID tenant value from the generated JSON
AZURE_CLIENT_SECRET password value from the generated JSON
Environment Setup
# create venv
python3 -m venv venv
# Activate the venv
source venv/bin/activate
# Install packages
pip install -r requirements.txt
# Switch to developer mode
python3 setup.py develop
# Run for helper commands
tokengen -h
Why Python Secrets?
# From Python Docs
The secrets module is used for generating cryptographically strong random numbers suitable for managing data such as passwords, account authentication, security tokens, and related secrets.
In particularly, secrets should be used in preference to the default pseudo-random number generator in the random module, which is designed for modelling and simulation, not security or cryptography.
Logging Improvement
- Exception if the secret doesnt exist
- Exception if the secret name is invalid
- Azure Authenticate with Env variables or kubernetes (hmm..!)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tokengen-0.0.14.tar.gz
(6.5 kB
view details)
Built Distribution
File details
Details for the file tokengen-0.0.14.tar.gz
.
File metadata
- Download URL: tokengen-0.0.14.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ee521e6ed764714eb6b9a9312f905f12e344b2117785f9ac2922a2ca3c3593d |
|
MD5 | d62228002323e09404b2ceb5ea4226d1 |
|
BLAKE2b-256 | 000eb478dc5a727f637b5e00b93507e52f3db6abfd15e0e8044a4f0d23b9ff91 |
File details
Details for the file tokengen-0.0.14-py3-none-any.whl
.
File metadata
- Download URL: tokengen-0.0.14-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4c6b34da1043844ec194abdb48c2f9059a1a27be4b11d125c00aea06cbd79ca |
|
MD5 | ec83302a60da7caaff8c43b322840099 |
|
BLAKE2b-256 | 364770d4e27501596c551a2564acd696e6d15e262bd242396b0244c58dba73fd |