Janus DTNaaS Controller
Project description
Janus Controller
A container (Portainer Docker) controller with profiles for common Data Transfer Node (DTN) capabilities. Support DTN-as-a-Service deployments.
Build Instructions
python -m build
Upload to PyPi using
twine upload dist/*
Install Instructions
git clone https://github.com/esnet/janus.git
cd janus
pip3 install -e .
Configuring container registry authentication
The Janus controller supports authentication to private container registries using tokens passed via the X-Registry-Auth HTTP header. The tokens are in the form of a base64 encoded dictionary containing the following attributes:
{ "username": "",
"password": "",
"serveraddress": ""
}
As an example, Harbor registries allow for the creation of robot accounts with secret keys. Using one of these robot accounts, a valid token for Janus/Portainer can be created as follows:
echo '{"username": "robot+dtnaas+deployer", "password": "SECRET_KEY", "serveraddress": "wharf.es.net"}' | base64 -w 0
For a single authenticated registry, this token can be passed as an environment variable when launching the controller process. In a Janus controller Docker compose file, include the following:
...
environment:
- REGISTRY_AUTH=<TOKEN>
...
Within the Janus settings.py
file is where the registry auth
dictionary is maintained to map registry servers to authentication
tokens. Additional registries with their associated auth tokens may be
defined as needed.
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
Hashes for janus_dtnaas-0.3rc1.post2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87a631407dba97041ea52234d359d849bbcff8cfa31bc4dcb8bb9ce15cfd5a2f |
|
MD5 | d887e8599b03793abe235c7913c468a6 |
|
BLAKE2b-256 | 7cfd13656221a9975afe6e8f2fb893343d7f18e13e0cb5979925d835a32f6d6f |
Hashes for janus_dtnaas-0.3rc1.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66204a854b8819872e58ade3239756ad81f9760a659f4a5d933b121285b3d3d3 |
|
MD5 | 8e12399d1210f46b8f00258d5b603b7c |
|
BLAKE2b-256 | 9328496a0ede159bb6c854c0ff32d4242d92fff13b7fcd3d1865c95bca7ffa65 |