Skip to main content

Add your description here

Project description

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 import add_connection_gate

await 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 = await Get.async_get(namespace="myctf", name="close-network")
await gate.async_delete()

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

ctfroute_k8s-0.3.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ctfroute_k8s-0.3.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file ctfroute_k8s-0.3.0.tar.gz.

File metadata

  • Download URL: ctfroute_k8s-0.3.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for ctfroute_k8s-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e6dd5a0b59f030ab28b1dfb69f48ed4acd27b24d409e12db07edcd13e5d267b7
MD5 b330bf790ece117ff70ac1025e85c074
BLAKE2b-256 c71b20cba1b12b0c953941f3f693162deb808a20ab306b0eb4bd543b31ac840b

See more details on using hashes here.

File details

Details for the file ctfroute_k8s-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ctfroute_k8s-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9adceae99d5e30eccc651cb62b91022112046e6218c1d22b6793b989a764f0c1
MD5 884bba199a4fa563c44dc80d17078ce0
BLAKE2b-256 feee418bb712a8f5fd0409947151991f7bc2a29c77f1c2495f50d0c7f07657f5

See more details on using hashes here.

Supported by

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