Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
serverless-better-credentials
Advanced tools
The Serverless Better Credentials plugin replaces the existing AWS credential resolution mechanism in the Serverless Framework with an extended version that:
credential_process
mechanism for sourcing credentials from an external process.AWS_SHARED_CREDENTIALS_FILE
/ AWS_SDK_LOAD_CONFIG
).It is designed to be a drop-in replacement; respecting the current credentials resolution order and extensions already provided by the Serverless Framework.
npm install --dev serverless-better-credentials
# or
yarn add --dev serverless-better-credentials
Add the following to your serverless.yml:
plugins:
- serverless-better-credentials # as the first plugin
# - ... other plugins
AWS SSO profiles configured to work with the AWS CLI should "just work" when this plugin is enabled. This includes prompting and attempting to automatically open the SSO authorization page in your default browser when the credentials require refreshing.
Full details about how to configure AWS SSO can be found in the AWS CLI documentation.
Take note that if you are using SSO with the approach AWS document (a shared .aws/config
file) you'll also need to set the AWS_SDK_LOAD_CONFIG
enviornment value to something truthy (e.g. AWS_SDK_LOAD_CONFIG=1
), as described in the AWS SDK documentation.
Credentials are resolved in the same order the Serverless Framework currently uses. This order is:
--aws-profile
AWS_${STAGE}_PROFILE
AWS_${STAGE}_X
AWS_PROFILE
AWS_X
provider.profile
(unless --aws-profile is specified)provider.credentials
AWS_DEFAULT_PROFILE
|| default
Where:
[profile_name]
configuration:
credential_process
is specifiedsso_start_url
, etc. is specifiedIf you have an issue, suggestion, or want to contribute, please open an issue or create a pull request and I'll take a look.
FAQs
Better AWS credentials resolution plugin for serverless
The npm package serverless-better-credentials receives a total of 27,667 weekly downloads. As such, serverless-better-credentials popularity was classified as popular.
We found that serverless-better-credentials demonstrated a not healthy version release cadence and project activity because the last version was released 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.