Skip to main content

OpenFGA relationship authorization provider plugin for Spakky Auth

Project description

spakky-openfga

spakky-openfga provides a check-only OpenFGA authorization provider for Spakky Auth relationship enforcement.

Auth Provider Capabilities

The plugin registers OpenFgaAuthProvider, which implements:

  • AuthCapability.RELATION_CHECK
  • AuthCapability.POLICY_EVALUATION

RelationCheckRequest.relation and AuthorizationRequest.action are mapped to the OpenFGA relation. AuthContext.subject.id is mapped to the OpenFGA user, and resource/tenant canonical refs are mapped into the OpenFGA object string.

Configuration

OpenFgaConfig is registered as a settings Pod and reads SPAKKY_OPENFGA_* environment variables. It contains the OpenFGA API URL, store id, optional authorization model id, principal type, and tenant/object mapping controls. By default a subject id without a type prefix is mapped as user:<subject>, and tenant refs are prefixed into object refs as <tenant>/<resource>.

Common settings:

  • SPAKKY_OPENFGA_API_URL
  • SPAKKY_OPENFGA_STORE_ID
  • SPAKKY_OPENFGA_AUTHORIZATION_MODEL_ID
  • SPAKKY_OPENFGA_PRINCIPAL_TYPE
  • SPAKKY_OPENFGA_INCLUDE_TENANT_IN_OBJECT

Non-goals

This package intentionally does not implement tuple writes, authorization model migration, admin CLI/API, list resources, data/query filtering, or tuple/model management surfaces.

Provider-unavailable conditions map to an ERROR authorization decision with AuthorizationReasonCode.VERIFICATION_PROVIDER_UNAVAILABLE.

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

spakky_openfga-6.5.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

spakky_openfga-6.5.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file spakky_openfga-6.5.0.tar.gz.

File metadata

  • Download URL: spakky_openfga-6.5.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spakky_openfga-6.5.0.tar.gz
Algorithm Hash digest
SHA256 9a20b37202951e14e17c3e1fc2113545e0a17b23b135a804bcb6dffefca3ef3f
MD5 dad842dc8e093b8fb4e84d7d1e447588
BLAKE2b-256 4405fea14d709ea9556c4431155e4f27a8f14df0fd0236233b17e7b7d16713df

See more details on using hashes here.

Provenance

The following attestation bundles were made for spakky_openfga-6.5.0.tar.gz:

Publisher: publish-package.yml on E5presso/spakky-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spakky_openfga-6.5.0-py3-none-any.whl.

File metadata

  • Download URL: spakky_openfga-6.5.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spakky_openfga-6.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24214c44ac5b4c5abd9dff94f3be366c932ac75e5271b710bb5573e66ebaa81f
MD5 d61473ce76b00760ffed6fd60be4e693
BLAKE2b-256 aeb9e2061caf95d2f059900f103101b4ba07ddf03c77655037424102e9418307

See more details on using hashes here.

Provenance

The following attestation bundles were made for spakky_openfga-6.5.0-py3-none-any.whl:

Publisher: publish-package.yml on E5presso/spakky-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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