معرفی شرکت ها


c7n-policystream-0.4.9


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Cloud Custodian - Git Commits as Logical Policy Changes
ویژگی مقدار
سیستم عامل -
نام فایل c7n-policystream-0.4.9
نام c7n-policystream
نسخه کتابخانه 0.4.9
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Cloud Custodian Project
ایمیل نویسنده -
آدرس صفحه اصلی https://cloudcustodian.io
آدرس اینترنتی https://pypi.org/project/c7n-policystream/
مجوز Apache-2.0
# c7n-policystream: Policy Changes from Git % [comment]: # ( !!! IMPORTANT !!! ) % [comment]: # (This file is moved during document generation.) % [comment]: # (Only edit the original document at ./tools/c7n_policystream/README.md) Using custodian in accordance with infrastructure as code principles, we store policy assets in a versioned control repository. This provides for an audit log and facilitates code reviews. However this capability is primarily of use to humans making semantic interpretations of changes. This script also provides logical custodian policy changes over a git repo and allows streaming those changes for machine readable/application consumption. Its typically used as a basis for CI integrations or indexes over policies. Two example use cases: - Doing dryrun only on changed policies within a pull request - Constructing a database of policy changes. Policystream works on individual github repositories, or per Github integration across an organization's set of repositories. ## Install policystream can be installed via pypi, provided the require pre-requisites libraries are available (libgit2 > 0.26) ``` pip install c7n-policystream ``` Docker images available soon, see build for constructing your own. ## Build Alternatively a docker image can be built as follows ```shell # Note must be top level directory of checkout cd cloud-custodian docker build -t policystream:latest -f tools/c7n_policystream/Dockerfile . docker run --mount src="$(pwd)",target=/repos,type=bind policystream:latest ``` ## Usage Streaming use case (default stream is to stdout, also supports kinesis, rdbms and sqs) ``` $ c7n-policystream stream -r foo 2018-08-12 12:37:00,567: c7n.policystream:INFO Cloning repository: foo <policy-add policy:foi provider:aws resource:ec2 date:2018-08-02T15:13:28-07:00 author:Kapil commit:09cb85> <policy-moved policy:foi provider:aws resource:ec2 date:2018-08-02T15:14:24-07:00 author:Kapil commit:76fce7> <policy-remove policy:foi provider:aws resource:ec2 date:2018-08-02T15:14:46-07:00 author:Kapil commit:570ca4> <policy-add policy:ec2-guard-duty provider:aws resource:ec2 date:2018-08-02T15:14:46-07:00 author:Kapil commit:570ca4> <policy-add policy:ec2-run provider:aws resource:ec2 date:2018-08-02T15:16:00-07:00 author:Kapil commit:d3d8d4> <policy-remove policy:ec2-run provider:aws resource:ec2 date:2018-08-02T15:18:31-07:00 author:Kapil commit:922c1a> <policy-modified policy:ec2-guard-duty provider:aws resource:ec2 date:2018-08-12T09:39:43-04:00 author:Kapil commit:189ea1> 2018-08-12 12:37:01,275: c7n.policystream:INFO Streamed 7 policy changes ``` Policy diff between two source and target revision specs. If source and target are not specified default revision selection is dependent on current working tree branch. The intent is for two use cases, if on a non-master branch then show the diff to master. If on master show the diff to previous commit on master. For repositories not using the `master` convention, please specify explicit source and target. ``` $ c7n-policystream diff -r foo -v ``` Pull request use, output policies changes between current branch and master. ``` $ c7n-policystream diff -r foo policies: - filters: - {type: cross-account} name: lambda-access-check resource: aws.lambda ``` ## Options ``` $ c7n-policystream --help Usage: c7n-policystream [OPTIONS] COMMAND [ARGS]... Policy changes from git history Options: --help Show this message and exit. Commands: diff Policy diff between two arbitrary revisions. org-checkout Checkout repositories from a GitHub organization. org-stream Stream changes for repos in a GitHub organization. stream Stream git history policy changes to destination. ```


نیازمندی

مقدار نام
==0.9.26 c7n
==1.26.109 boto3
==4.17.3 jsonschema
==3.0.5 argcomplete
==2.8.2 python-dateutil
==6.0 pyyaml
==0.9.0 tabulate
==5.2.0 importlib-metadata
==0.18.1 docutils
==1.29.109 botocore
==1.0.1 jmespath
==0.6.0 s3transfer
==22.2.0 attrs
==5.12.0 importlib-resources
==1.3.10 pkgutil-resolve-name
==0.19.3 pyrsistent
==4.5.0 typing-extensions
==1.16.0 six
==3.15.0 zipp
==1.26.15 urllib3
==8.1.3 click
==1.12.0 pygit2
==2.28.2 requests
==0.4.6 colorama
==1.15.1 cffi
==2022.12.7 certifi
==3.1.0 charset-normalizer
==3.4 idna
==2.21 pycparser


زبان مورد نیاز

مقدار نام
>=3.8,<4.0 Python


نحوه نصب


نصب پکیج whl c7n-policystream-0.4.9:

    pip install c7n-policystream-0.4.9.whl


نصب پکیج tar.gz c7n-policystream-0.4.9:

    pip install c7n-policystream-0.4.9.tar.gz