Sym's Python SDK
Project description
Sym is the security workflow platform made for engineers, by engineers.
We solve the intent-to-execution gap between policies and workflows by providing fast-moving engineering teams with the just-right primitives to roll out best-practice controls.
This is the Python SDK for Sym. For guides and other help, check out our main docs site.
The SDK docs are broken into several core modules, which are described below. Click on one to see the classes and functions available in your Handlers.
The Sym SDK is used to customize workflow templates that are exposed by our Terraform provider. Here’s an example using the sym:approve Template!
from sym.sdk.annotations import reducer
from sym.sdk.integrations import pagerduty, okta, slack
@reducer
def get_approvers(evt):
# The import here uses credentials defined in an Integration in Terraform
if pagerduty.is_on_call(evt.user, schedule="id_of_eng_on_call"):
# This is a self-approval in a DM
return slack.user(evt.user)
if evt.payload.fields["urgency"] == "Emergency":
# This is a self-approval in a channel
return slack.channel("#break-glass", allow_self=True)
on_call_mgrs = okta.group("OnCallManagers").members()
# This would cause each on-call manager to be DMed
return slack.group([slack.user(x) for x in on_call_mgrs])
If you’re interested in using Sym, please reach out!
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
Hashes for sym_sdk-0.20.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69bb8079ff423174c1913aa4a95d901f488e8cba71037c3b2a5d233f270070a1 |
|
MD5 | 381b27867bb01dd60a8e97dc9edb589a |
|
BLAKE2b-256 | 43370a8e6494cc12cc46c1b8d65370d4b1072c6631aa5e7b545ff13b83146ac5 |