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_CHECKAuthCapability.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_URLSPAKKY_OPENFGA_STORE_IDSPAKKY_OPENFGA_AUTHORIZATION_MODEL_IDSPAKKY_OPENFGA_PRINCIPAL_TYPESPAKKY_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spakky_openfga-6.6.0.tar.gz.
File metadata
- Download URL: spakky_openfga-6.6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c737bbb630c7f10dd3e6bc7440843d62728814ed1461e5978e4168379820273b
|
|
| MD5 |
692ad3263995900584c56fde390052b8
|
|
| BLAKE2b-256 |
8ec368a9aabfccacef8e42f41d26921ae8a9f2fd5de900d71fb35b17fa7686f1
|
Provenance
The following attestation bundles were made for spakky_openfga-6.6.0.tar.gz:
Publisher:
publish-package.yml on E5presso/spakky-framework
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spakky_openfga-6.6.0.tar.gz -
Subject digest:
c737bbb630c7f10dd3e6bc7440843d62728814ed1461e5978e4168379820273b - Sigstore transparency entry: 1817552518
- Sigstore integration time:
-
Permalink:
E5presso/spakky-framework@a750eb66a4ec78130f7782372b5e92a25c2b9839 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/E5presso
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@a750eb66a4ec78130f7782372b5e92a25c2b9839 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file spakky_openfga-6.6.0-py3-none-any.whl.
File metadata
- Download URL: spakky_openfga-6.6.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0455ddb52e8a3a9f24b5df9406150b3ff53e2ea6ad69f3023d6dc8cadd9e4f19
|
|
| MD5 |
a8a7c0f14bd4e462c3ced18f2e60589a
|
|
| BLAKE2b-256 |
2f7da348b6e83e9e90ab4727157ef3152ddd8151e93857e28fab8764a002283d
|
Provenance
The following attestation bundles were made for spakky_openfga-6.6.0-py3-none-any.whl:
Publisher:
publish-package.yml on E5presso/spakky-framework
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spakky_openfga-6.6.0-py3-none-any.whl -
Subject digest:
0455ddb52e8a3a9f24b5df9406150b3ff53e2ea6ad69f3023d6dc8cadd9e4f19 - Sigstore transparency entry: 1817552666
- Sigstore integration time:
-
Permalink:
E5presso/spakky-framework@a750eb66a4ec78130f7782372b5e92a25c2b9839 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/E5presso
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yml@a750eb66a4ec78130f7782372b5e92a25c2b9839 -
Trigger Event:
workflow_dispatch
-
Statement type: