Public runtime and manifest contract for Kangal plugins
Project description
Kangal Plugin SDK
The Kangal Plugin SDK provides the public Python runtime and signed manifest contract for custom Kangal gateway policies.
Install
python -m pip install kangal-plugin-sdk
Python 3.11 or newer is required.
Create a plugin
from typing import Any
from kangal_plugin_sdk import Plugin
class AddRequestHeader(Plugin):
async def before_request(
self,
request: Any,
headers: dict[str, str],
tenant_id: str,
) -> dict[str, str]:
return {**headers, "X-Kangal-Plugin": "active"}
The package also exposes helpers for canonical manifest hashing, protocol validation, and Ed25519 manifest signing. Start from the complete plugin SDK guide and the header policy example.
Verify a release
Every GitHub release includes a wheel, source distribution, and
SHA256SUMS.txt. Each package artifact also receives a keyless Sigstore bundle
that binds its digest to the GitHub Actions release identity.
Project details
Release history Release notifications | RSS feed
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 kangal_plugin_sdk-1.0.2.tar.gz.
File metadata
- Download URL: kangal_plugin_sdk-1.0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d111a7d2769a8d806bf8885ddaf25df291686f9fc16bbdbd7ec5666128b4fba
|
|
| MD5 |
8e6ab7341b7bb5aff48a050820dcc10d
|
|
| BLAKE2b-256 |
3432c6655b745b1d98497095debbe2b927cf3bc917b0173f2f98b85e70300382
|
Provenance
The following attestation bundles were made for kangal_plugin_sdk-1.0.2.tar.gz:
Publisher:
publish-plugin-sdk.yml on latifv/kangal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kangal_plugin_sdk-1.0.2.tar.gz -
Subject digest:
8d111a7d2769a8d806bf8885ddaf25df291686f9fc16bbdbd7ec5666128b4fba - Sigstore transparency entry: 2190042093
- Sigstore integration time:
-
Permalink:
latifv/kangal@41bd9e9993a5143f5a0f56926e1293933e4ebb13 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/latifv
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-plugin-sdk.yml@41bd9e9993a5143f5a0f56926e1293933e4ebb13 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file kangal_plugin_sdk-1.0.2-py3-none-any.whl.
File metadata
- Download URL: kangal_plugin_sdk-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c840f9f048226003f8b871ebc9698e3ca0c8d07eea46f79a7d7d08631841d670
|
|
| MD5 |
9ac841876af6b0119199690418b04d3b
|
|
| BLAKE2b-256 |
01377610ddb5ca74a4e3699a8ba7fff496e1dc60e4bb918bee1bf1f93b77acf1
|
Provenance
The following attestation bundles were made for kangal_plugin_sdk-1.0.2-py3-none-any.whl:
Publisher:
publish-plugin-sdk.yml on latifv/kangal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kangal_plugin_sdk-1.0.2-py3-none-any.whl -
Subject digest:
c840f9f048226003f8b871ebc9698e3ca0c8d07eea46f79a7d7d08631841d670 - Sigstore transparency entry: 2190042123
- Sigstore integration time:
-
Permalink:
latifv/kangal@41bd9e9993a5143f5a0f56926e1293933e4ebb13 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/latifv
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-plugin-sdk.yml@41bd9e9993a5143f5a0f56926e1293933e4ebb13 -
Trigger Event:
workflow_dispatch
-
Statement type: