Skip to main content

Kubernetes RBAC plugin for the floe data platform

Project description

floe-rbac-k8s

Kubernetes RBAC plugin for the floe data platform.

Overview

This plugin implements the RBACPlugin interface from floe-core, providing Kubernetes-native RBAC manifest generation for:

  • ServiceAccounts with least-privilege configurations
  • Roles with constrained permissions (no wildcards)
  • RoleBindings including cross-namespace access patterns
  • Namespaces with Pod Security Standards labels

Installation

pip install floe-rbac-k8s

Usage

from floe_rbac_k8s import K8sRBACPlugin
from floe_core.schemas.rbac import ServiceAccountConfig

plugin = K8sRBACPlugin()

# Generate a ServiceAccount manifest
config = ServiceAccountConfig(
    name="floe-job-runner",
    namespace="floe-jobs",
    automount_token=False
)
manifest = plugin.generate_service_account(config)

Entry Point

This plugin registers under the floe.rbac entry point group:

[project.entry-points."floe.rbac"]
k8s = "floe_rbac_k8s:K8sRBACPlugin"

Requirements

  • Python 3.11+
  • Kubernetes 1.28+ (for Pod Security Standards support)
  • floe-core 0.1.0+

License

Apache-2.0

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

floe_rbac_k8s-0.1.0a1.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

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

floe_rbac_k8s-0.1.0a1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file floe_rbac_k8s-0.1.0a1.tar.gz.

File metadata

  • Download URL: floe_rbac_k8s-0.1.0a1.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for floe_rbac_k8s-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 343cbaec0d2453393b7db70b20ee0037f3aaf689e842a4b6f46c3f5a508d07c9
MD5 d93360aac72ece1e0148b96af6a274f8
BLAKE2b-256 a88eac3abf5d538276cb2e2a1457be5dfd76f0d4ca20a9fcb6346d95d00581a0

See more details on using hashes here.

File details

Details for the file floe_rbac_k8s-0.1.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for floe_rbac_k8s-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 d63250268290a99d91132acacdbe243ed5d40a1ce6669cb24aeb3cbd0ba361fc
MD5 812f2eaa8669831bcb6e23e11048994a
BLAKE2b-256 5eb7ed57d586d22cac3eae2784811b7b5f5ad65b9b8aa53d36f9bb3ed9f12505

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