ctfroute-k8s
This package exposes a lightweight interface to ctfroute via Kubernetes CRDs. Specifically, it allows to create gate instances in Kubernetes via CRDs that will be handled by the ctfroute operator.
Installation
The package can be installed from pypi:
uv add ctfroute-k8s
Managing gates
To create instances, you can either use the models or the wrapper functions which should allow for more intuitive gate declaration.
from ctfroute_k8s.utils.sync_helpers import add_connection_gate
add_connection_gate(
namespace=NAMESPACE,
name="close-network",
conn_src="any-team",
conn_dst="any-team",
)
If you want to remove gates, fall back to the functionality provided by cloudcoil via the Gate model.
from ctfroute_k8s import Gate
gate = Get.get(namespace="myctf", name="close-network")
gate.delete()
Async
The package provides async wrappers around cloudcoil for creating gates:
from ctfroute_k8s.utils.async_helper import add_connection_gate
await add_connection_gate(
namespace=NAMESPACE,
name="close-network",
conn_src="any-team",
conn_dst="any-team",
)
Metadata
Release files for ctfroute-k8s 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ctfroute_k8s-0.4.0.tar.gz | 4.5 kB | Without provenance | Details for ctfroute_k8s-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ctfroute_k8s-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for ctfroute_k8s-0.4.0-py3-none-any.whl |
Total release size: 11.0 kB
Release files / ctfroute_k8s-0.4.0.tar.gz
| Download URL | ctfroute_k8s-0.4.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
868b94ae4583672ba207edbcb7825aadf621768256d90c23726ea6d47fb6a868
|
|
BLAKE2b-256 checksum How to use checksums |
ca66ac0a9a567c0e045eba203552c3c526b69529d72dd3b27d94d2e00476c1ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.3
|
Release files / ctfroute_k8s-0.4.0-py3-none-any.whl
| Download URL | ctfroute_k8s-0.4.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4e8b58177301a65663feb1e0f6994d6ea916658a8cdc0ae7c5fc2969fd7d171
|
|
BLAKE2b-256 checksum How to use checksums |
c1dbdc5cd8fb00099cce82c859a9552738ef7b8b91919c27a9f16b173f11c9df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.3
|
Security for ctfroute-k8s 0.4.0
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.