CLI Command making OCI Bastion and kubernetes usage simple and fast
Project description
Auto Bastion
Manage your bastion sessions automatically without pain of creating them by clicking and copy pasting commands
Supported
OS
No specific requirements here, whatever runs Python
Cloud Providers
- Oracle Cloud
Requirements
Python
- 3.7+
Configuration of OCI SDK
- Add key in your Oracle cloud profile
- Generate new key
- Copy configuration file generated in your profile to
~/.oci/config - Replace path of your
*.pemkey on line with #TODO
Installing
MacOS
On most MacOS machines there is pip3 instead of pip use pip3 for install
Install and update using pip:
pip install abst
or
pip3 install abst
How to set up
- Use
abst config fill {context}to fill your credentials for usage, you can find all the credentials on cloud provider site, leave context empty if you want to fill default - Use
abst generate {context}to generate default config for context, leave context empty if you want to generate to default
Usage
Both commands do automatic reconnect on idle SSH Tunnel termination
abst create forward/managed {context}for automatic Bastion session creation once deleted, will keep your, leave context empty if you want to use default connection alive till you kill this scriptabst cleanfor removal all the saved credentialsabst use {context}for using different config that you had filled,defaultis the default context increds.json- Use
abst locate {context}to locate your configs, leave context empty if you want to locate default
Parallel execution
If you are more demanding and need to have connection to your SSH Tunnels ready at all times you can use parallel executed Bastions that currently work for full-auto forwarded setting
Change local port in the setting to port that is unique to other configs, and it will be running on
all the added ports
Until you kill the abst command, it will automatically remove all generated Bastion sessions by
this program
abst parallel add {context}will add context from yourcontext folderto stack that will be executedabst parallel remove {context}will remove context from yourcontext folderto stack that will be executedabst parallel run {context}will run all the stacked contextsabst parallel displaywill display current stacked contexts
Helm registry commands
abst helm loginwill log you in with credentials set in config.json, you set these credentials when running this command first time. Edit with flag --edit 1-n number is the index of credential in listabst helm push <chart-name>will push to specified remote branch, if more credentials preset it will let you pick which one to use
Kubectl commands
abst cp secret secret_namespace target_namespace source_namespace(optional)this will copy secret to target namespace, without providing source namespace it will use current as a source
Did I made your life less painful ?
Support my coffee addiction ;)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file abst-2.2.0.tar.gz.
File metadata
- Download URL: abst-2.2.0.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a959928686604ff3c743cf64523050bd906d8cf0cf421caf68a88131a70738e1
|
|
| MD5 |
829328f968ada0a8e297ecb97c357143
|
|
| BLAKE2b-256 |
0d83b7e6cc6f4d716b89cda3b4f30b8ea181294c7601c6a54f02267cf1cf30db
|
File details
Details for the file abst-2.2.0-py3-none-any.whl.
File metadata
- Download URL: abst-2.2.0-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4d2d651634bb8f1061a52b99415398206a2c0054b078be798a82bf8ebd9d3df
|
|
| MD5 |
664284d762bca3af7bc9a4dc57389148
|
|
| BLAKE2b-256 |
19f4287d8b03fdae1d29dfe2a20f73088e6e9b11d2f0a2bd2b7f5312767e3869
|