Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
######################## Akeyless Python Cloud Id ########################
Retrieves cloud identity
Currently, AWS, GCP and Azure clouds are supported. In order to get cloud identity you should import this package and call the relevant method per your chosen CSP:
.. code:: pip install akeyless-python-cloud-id
AWS:
To install with AWS:
.. code::
pip install akeyless-python-cloud-id[aws]
The following additional packages will be installed:
GCP:
To install with GCP:
.. code::
pip install akeyless-python-cloud-id[gcp]
The following additional packages will be installed:
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
FAQs
AKEYLESS Cloud ID Retriever
We found that akeyless-cloud-id demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.