Skip to main content

Mythical client

Project description

============
mythical-client
============

.. image:: https://magnum.travis-ci.com/verygoodgroup/mythical-client.svg?token=ykTaJtscxcuMJxYq2Nt5&branch=travis
:target: https://magnum.travis-ci.com/verygoodgroup/mythical-client

test
====

.. code:: bash

$ git clone git@github.com:verygoodgroup/mythical-client.git
$ cd mythical-client
$ git submodule update --init --recursive
$ mkvirtualenv mythical-client
(mythical-client)$ pip install -e .[tests]
(mythical-client)$ export \
MYTHICAL_SUITE_ROOT=https://mythical-test-4w3ebo.vgs.io \
MYTHICAL_SUITE_USERNAME=company \
MYTHICAL_SUITE_PASSWORD=password
(mythical-client)$ py.test suite.py --cov=mythical

suite
=====

If you have many suite targets (e.g. test, local, proxied, etc.) dump them in
``~/.mythical`` like e.g.:

.. code:: bash

$ cat <<EOF >> ~/.mythical

[suite:dev]
http_root=https://vault-all-dev-b6oy83-mythical-http.noxious.io
sftp_host=vault-all-dev-b6oy83-mythical-sftp.noxious.io
sftp_port=8022
username=travis-057e4f1be6c742cc876af9d8cdc74981
password=xxxxxxxxxxxxxxxxxxx

EOF

and target them like:

.. code:: bash

(mythical-client)$ MYTHICAL_SUITE=dev py.test suite.py
...

proxy
=====

To route through a `token proxy <https://github.com/verygood/vault>`_ install the client:

.. code:: bash

(mythical-client)$ pip install vault

setup a target:

.. code:: bash

(mythical-client)$ cat <<EOF >> ~/.mythical

[suite:dev-proxy]
http_root=https://mythical-LoadBala-1RZB12W0TY5A0-1578257076.us-west-2.elb.amazonaws.com
sftp_host=mythical-LoadBala-1RZB12W0TY5A0-1578257076.us-west-2.elb.amazonaws.com
sftp_port=8022
username=vault
password=vaultvault
tokenize=
import vault

token_key = """\
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDFJEBRUTO6URKuJYboKeSeYYIa
a4AE4zN/bZg/q+F/6y9mODqUC8Ldye6M4a+rSSC8ilVJ7UuLGnVGUztg9VVpBdt5
a1WTpvf4VnyqSkKhQkQ95La7y98FDm8HEI5DZvSlROG39fdyUfTl9PDlEfK9nf40
jQmoXIeRgEF9l2LFiwIDAQAB
-----END PUBLIC KEY-----\
"""

token_version = '0'

tokenize = vault.ephemeral.InlineTokenizer.from_config(
vault.ephemeral.InlineTokenizer.Config(
key=token_key, version=token_version
))

EOF

and test:

.. code:: bash

(mythical-client)$ MYTHICAL_SUITE=dev-proxy py.test suite.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mythical-0.2.0.tar.gz (10.3 kB view details)

Uploaded Source

File details

Details for the file mythical-0.2.0.tar.gz.

File metadata

  • Download URL: mythical-0.2.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mythical-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2790813341eaf61e09ccc9284c8ec4bf23d843e9f876ad2c441239aad72d5f49
MD5 956954e0c95e2b49a79613c6dff0ab96
BLAKE2b-256 3b469dc0b8fc172e07068053111c0bab128436d96178f86d5aa1d48971fbbd2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page