Skip to main content

Python Provider Development kit

Project description

Provider Development Kit

Common Fate Provider Development Kit for Python.

What is a provider?

A Provider is a Python service which provides a consistent API for managing fine-grain permissions.

Managing permissions in cloud providers, SaaS applications, and CI/CD platforms usually requires access to highly sensitive secrets, like administrative API tokens. The Provider framework allows for access to be granted and revoked to these platforms without requiring direct access to these tokens:

diagram of Provider framework

What does the Provider Development Kit do?

The Provider Development Kit (PDK) makes it easy to develop and deploy Providers.

class Provider(provider.Provider):
    api_url = provider.String()

@access.target()
class Target:
    ...

@access.grant()
def grant(p: Provider, subject: str, target: Target):
    # perform API calls here to grant access
    ...

@access.revoke()
def revoke(p: Provider, subject: str, target: Target):
    # perform API calls here to revoke access
    ...

The PDK handles configuration and packaging into a cloud-native function which can be executed by an application.

Supported runtimes

Currently the supported runtimes for Providers are as follows:

  • AWS Lambda

Provider Schemas

Each Provider has a strongly-typed schema. An example schema is shown below:

{
  "audit": {
    "resourceLoaders": {},
    "resources": {}
  },
  "config": {},
  "target": {
    "MyTarget": {
      "schema": {
        "first": {
          "description": "first var",
          "id": "first",
          "resourceName": null,
          "title": "First",
          "type": "string"
        }
      }
    }
  }
}

The schema is based on JSON Schema and allows applications using Providers to interpret the available resources and display the appropriate UI.

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

commonfate_provider-0.9.2.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

commonfate_provider-0.9.2-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file commonfate_provider-0.9.2.tar.gz.

File metadata

  • Download URL: commonfate_provider-0.9.2.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.9.16 Linux/5.15.0-1034-azure

File hashes

Hashes for commonfate_provider-0.9.2.tar.gz
Algorithm Hash digest
SHA256 9b18d56b2d33616b896fbfd1eae6a45d40eedbf0cd4de7ae4e4f29f55997ce26
MD5 f33349a4ed43e526548a17479968421c
BLAKE2b-256 5d28593fa8dc9d508715ffefed955dae244db6c6d20d3b061af6a10d52ee03e9

See more details on using hashes here.

File details

Details for the file commonfate_provider-0.9.2-py3-none-any.whl.

File metadata

File hashes

Hashes for commonfate_provider-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 82969d0824242601664b9134d788a1ed24104a0cbdccbda2d9dc178ea4a9e3e8
MD5 653d69ab94d1db4426993954fc2f0eca
BLAKE2b-256 cc723828c205f83d332452896a896873e3e7ec4b1e12e4c080d45ccbf2d58baa

See more details on using hashes here.

Supported by

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