Skip to main content

workstation-cli

This tool registers a work station given a daas-token generated from DaaS Website.

prerequisites

  • python >=3.6
  • openssl

Install

pip install sourcesense-vessel

Usage

Usage: vessel-cli [OPTIONS] COMMAND [ARGS]...

  Vessel cli tool

Options:
  --debug    output debug log [False]
  --version  Show version and exits
  --help     Show this message and exit.

Commands:
  completion  Install completion script
  deployment  Generated and Deploy agent, sentinel and event-engine...
  init        Init vault
  kubebench
  register    Register workstaion to Vessel with the given TOKEN
  unseal      Unseal vault
  update      Updates agent and sentinel deployments

Register

Usage: vessel-cli register [OPTIONS] TOKEN

  Register workstaion to Vessel with the given TOKEN

Options:
  --cluster-host TEXT  Hostname of the cluster to control  [required]
  --cluster-ro TEXT    Cluster read-only service-account token  [required]
  --cluster-rw TEXT    Cluster read-write service-account token  [required]
  --vault TEXT         Vault endpoint [http://vault.local]
  --openshift          Cluster is an Openshift distribution [False]
  --init               Initialize Vault [False]
  --deploy             Deploy agent and sentinel container automatically
                       [False]

  --vessel-api TEXT    Vessel API RPC endpoint [http://cloud-
                       api.oc.corp.sourcesense.com/rpc]

  --help               Show this message and exit.

Deployment

Usage: vessel-cli deployment [OPTIONS] TOKEN

  Generated and Deploy agent, sentinel and event-engine deployments to
  internal kubernetes for given TOKEN

Options:
  --sentinel TEXT  Generates sentinel at given tag [None]
  --agent TEXT     Generates agent yaml at given tag [None]
  --event TEXT     Generates event-engine yaml at given tag [None]
  --apply          run kubectl apply on generated deployments [False]
  --help           Show this message and exit.

development tests

From inside the vagrant box workstation-ansible you can register a cluster this way after obtained the <TOKEN> from the webapp:

vessel-cli init
# choose a password

vessel-cli --debug register --cluster-host https://192.168.58.2:6443 --cluster-ro $DAAS_CLU_READER_TOKEN --cluster-rw $DAAS_MANAGER_TOKEN <TOKEN>

# apply deployemnts of agent sentinel and event-engine
vessel-cli deployment --event latest --sentinel latest --agent latest --apply

Configure prometheus

Update alertmanager.tyaml config

kubectl -n monitoring create secret generic alertmanager-prometheus-kube-prometheus-alertmanager --dry-run=client -o yaml --from-file=alertmanager.yaml | kubectl -n monitoring apply -f -

DEBUG

# setup python environment
brew install pyenv
pyenv install 3.7.7
echo eval "$(pyenv init -)" > ~/.bashrc

pyenv global 3.7.7
pyenv virtualenv vessel
pyenv local vessel

python setup.py develop

Metadata

Release files for sourcesense-vessel 1.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sourcesense-vessel 1.3.8
File Size Uploaded Provenance Actions
sourcesense-vessel-1.3.8.tar.gz 11.9 kB Without provenance Details for sourcesense-vessel-1.3.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sourcesense-vessel 1.3.8
File Interpreter ABI Platform Actions
sourcesense_vessel-1.3.8-py3-none-any.whl Python 3 none any Details for sourcesense_vessel-1.3.8-py3-none-any.whl

Total release size: 29.8 kB

Release files / sourcesense-vessel-1.3.8.tar.gz

Download URL sourcesense-vessel-1.3.8.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
59cbcce03d2ca51a6ec5bab71d5be626eae30642f0c902423b28e36579314378
BLAKE2b-256 checksum
How to use checksums
330f971f50737341a287bfb7913ff43d46cdca7d9ea9156beae55c277bb994b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

Release files / sourcesense_vessel-1.3.8-py3-none-any.whl

Download URL sourcesense_vessel-1.3.8-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a68c2713445018eedf94b53c447a5b86e7eb062b3e69a9146d8de39fdf5a9dc7
BLAKE2b-256 checksum
How to use checksums
a327a2748aae12d80ffc3776ec03a8f696832ad7ac2d5c0f0221b47635a69c7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

Security for sourcesense-vessel 1.3.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page