Stingray
Cryptocoryne registeres and renews certificates for the lofar.net domain based on consul service registrations.
Installation
pip install .
Usage
Cryptocoryne runs periodically on the central nomad cluster.
Every 5 minutes, cryptocoryne queries all services registered within consul that have the tag cert.
Then the certificate <service_name>.lofar.net is registered or renewed (if needed) and stored in the LOFAR vault.
Services then have the option to retrieve the certificates from the vault using nomads job templating:
template {
data = <<EOH
{{with secret "lets-encrypt/certificates/<service_name>.lofar.net" -}}
{{.Data.data.cert }}
{{.Data.data.chain -}}
{{end}}
EOH
destination = "${NOMAD_SECRETS_DIR}/fullchain.cer"
}
template {
data = <<EOH
{{with secret "lets-encrypt/certificates/<service_name>.lofar.net" -}}
{{.Data.data.key -}}
{{end}}
EOH
destination = "${NOMAD_SECRETS_DIR}/key.key"
}
Contributing
To contribute, please create a feature branch and a "Draft" merge request. Upon completion, the merge request should be marked as ready and a reviewer should be assigned.
Verify your changes locally and be sure to add tests. Verifying local
changes is done through tox.
pip install tox
With tox the same jobs as run on the CI/CD pipeline can be run. These include unit tests and linting.
tox
To automatically apply most suggested linting changes execute:
tox -e format
License
This project is licensed under the Apache License Version 2.0
Metadata
Release files for lofar-cryptocoryne 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lofar_cryptocoryne-0.1.1.tar.gz | 19.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lofar_cryptocoryne-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.0 kB
Release files / lofar_cryptocoryne-0.1.1.tar.gz
| Download URL | lofar_cryptocoryne-0.1.1.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1214393daecdf60c20dcccf43189b1bb54906281cca6ae162ee57fe8b2bbb6a2
|
|
BLAKE2b-256 checksum How to use checksums |
d074bd17f3f0228e655f411c18bc27e040ea5fc2adfe84d62b324df0af9e7068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / lofar_cryptocoryne-0.1.1-py3-none-any.whl
| Download URL | lofar_cryptocoryne-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c3d5c13296293996f93208e8bd078593b9cadb56a941e6e1b9c5a16b1ece105
|
|
BLAKE2b-256 checksum How to use checksums |
b069326aa65eb5ef56fb2ae459dfb89e3c2d41f28e4d42db891415e1ca16a246
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|