akeyless-cloud-id-0.2.0
توضیحات
AKEYLESS Cloud ID Retriever
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | akeyless-cloud-id-0.2.0 |
| نام | akeyless-cloud-id |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Akeyless Security |
| ایمیل نویسنده | support@akeyless.io |
| آدرس صفحه اصلی | https://www.akeyless.io/ |
| آدرس اینترنتی | https://pypi.org/project/akeyless-cloud-id/ |
| مجوز | Apache 2.0 |
########################
Akeyless Python Cloud Id
########################
Retrieves cloud identity
Currently only AWS, GCP and Azure clouds supported. In order to get cloud identity you should import this package and call to generate method.
If no aws access id/key and token provided they will be retrieved authomatically from default session.
Minimum requirements
====================
* Python 3.5+
* urllib3 >= 1.15
* requests
* boto3
* google
* google-api-python-client
Installation
============
.. code::
$pip install akeyless_api_gateway
*****
Usage
*****
Such code can be used, for example, in order to retrieve secrets from Akeyless as part of AWS Code Pipeline:
.. code::
pip install git+https://github.com/akeylesslabs/akeyless-python-sdk
import akeyless_api_gateway
from akeyless_cloud_id import CloudId
configuration = akeyless_api_gateway.Configuration()
configuration.host="http://<api-gateway-host>:<port>"
api_instance = akeyless_api_gateway.DefaultApi(akeyless_api_gateway.ApiClient(configuration))
cloud_id = CloudId()
# for AWS use:
id = cloud_id.generate()
# For Azure use:
id = cloud_id.generateAzure()
# For GCP use:
id = cloud_id.generateGcp()
access_id = event['CodePipeline.job']['data']['actionConfiguration']['configuration']['UserParameters']
auth_response = api_instance.auth(access_id, access_type="aws_iam", cloud_id=id)
token = auth_response.token
postgresPassword = api_instance.get_secret_value("PostgresPassword", token)
*******
License
*******
This SDK is distributed under the `Apache License, Version 2.0`_ see LICENSE.txt for more information.
.. _Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
نیازمندی
| مقدار | نام |
|---|---|
| - | boto3 |
| - | |
| - | google-api-python-client |
| - | requests |
| >=1.15 | urllib3 |
نحوه نصب
نصب پکیج whl akeyless-cloud-id-0.2.0:
pip install akeyless-cloud-id-0.2.0.whl
نصب پکیج tar.gz akeyless-cloud-id-0.2.0:
pip install akeyless-cloud-id-0.2.0.tar.gz