{"id":22398735,"url":"https://github.com/tappnetwork/laravel-aws-secrets-manager","last_synced_at":"2025-04-04T13:07:44.437Z","repository":{"id":40559797,"uuid":"279656488","full_name":"TappNetwork/laravel-aws-secrets-manager","owner":"TappNetwork","description":"Manage environment secrets using AWS Secrets Manager.","archived":false,"fork":false,"pushed_at":"2025-02-16T19:31:36.000Z","size":43,"stargazers_count":36,"open_issues_count":2,"forks_count":21,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-28T01:55:56.026Z","etag":null,"topics":["hacktoberfest","hacktoberfest2021"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TappNetwork.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-14T17:56:11.000Z","updated_at":"2025-02-16T19:31:01.000Z","dependencies_parsed_at":"2023-10-03T06:51:00.256Z","dependency_job_id":"6cf8e21f-7c3e-4da5-b1b4-0a89e6f2c613","html_url":"https://github.com/TappNetwork/laravel-aws-secrets-manager","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Flaravel-aws-secrets-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Flaravel-aws-secrets-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Flaravel-aws-secrets-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TappNetwork%2Flaravel-aws-secrets-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TappNetwork","download_url":"https://codeload.github.com/TappNetwork/laravel-aws-secrets-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247176540,"owners_count":20896489,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","hacktoberfest2021"],"created_at":"2024-12-05T07:12:02.314Z","updated_at":"2025-04-04T13:07:44.388Z","avatar_url":"https://github.com/TappNetwork.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Secrets Manager\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/tapp/laravel-aws-secrets-manager.svg?style=flat-square)](https://packagist.org/packages/tapp/laravel-aws-secrets-manager)\n![Tests Laravel 10](https://github.com/TappNetwork/laravel-aws-secrets-manager/actions/workflows/run-tests-l10.yml/badge.svg)\n[![Total Downloads](https://img.shields.io/packagist/dt/tapp/laravel-aws-secrets-manager.svg?style=flat-square)](https://packagist.org/packages/tapp/laravel-aws-secrets-manager)\n\nManage environment secrets using AWS Secrets Manager.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require tapp/laravel-aws-secrets-manager\n```\n\nPublish Config:\n```\nphp artisan vendor:publish --provider=\"Tapp\\LaravelAwsSecretsManager\\LaravelAwsSecretsManagerServiceProvider\"\n```\n\n## Usage\n\nThis package will try and load in secrets from AWS Secrets manager in any environment that is in the `enabled-environments` config array.  It is recommended that caching is enabled to reduce round trips to AWS Secrets Manager.\n\nAvailable env values:\n``` php\nAWS_DEFAULT_REGION\nAWS_SECRETS_TAG_NAME=stage\nAWS_SECRETS_TAG_VALUE=production\n```\n\n`AWS_SECRETS_TAG_NAME` and `AWS_SECRETS_TAG_VALUE` are used to pull down all the secrets that match the tag key/value.\n\n### Other Environment-based Configuration\n\n#### Enabled environments\n\nSpecify which environments should have AWS Secrets enabled:\n\n`AWS_SECRETS_ENABLED_ENV=production,staging`\n\nDefault: `production`\n\n#### Overwritable Variables Config\n\nSpecify which variables should be able to overwrite the config using the `AWS_SECRETS_VARIABLES_CONFIGS` key in the `.env` file. The format is a comma-separated list of `ENV_VARIABLE_NAME:CONFIG_KEY` pairs.\n\nFor example:\n\n`VARIABLES_CONFIG_KEYS=APP_KEY:app.key,OTHER_KEY:app.other_key`\n\nThis setup allows `APP_KEY` to overwrite `app.key` in the config, and `OTHER_KEY` to overwrite `app.other_key`.\n\nDefault Behavior: If `AWS_SECRETS_VARIABLES_CONFIGS` is not set or is empty, no variables will be set for config overwriting.\n\n#### Cache Settings\n\nFor example:\n```\nAWS_SECRETS_CACHE_ENABLED=true\nAWS_SECRETS_CACHE_EXPIRY=60\nAWS_SECRETS_CACHE_STORE=file\n```\n\n### Setting up AWS Secrets\n\n1. Store New Secret.\n1. Select type of secret, one of AWS managed or other.\n1. Enter Key/Value, the KEY should match a env variable.\n1. Give it a secret name and description\n1. Add a tag key/value (stage =\u003e production) is an example if you want to pull down all production secrets.\n\n### Cache the config\n```\nphp artisan config:cache\n```\n\n### AWS Credentials\n\nSince this package utilizes the PHP AWS SDK the following .env values are used or credentials set ~/.aws/credentials.\n\n```\nAWS_ACCESS_KEY_ID\nAWS_SECRET_ACCESS_KEY\n```\n[https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials.html](https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials.html)\n\n### Key Rotation\nIf key rotation is enabled, the most recent next rotation date is cached and if it's in the past we force getting the secrets.\n\n### Testing\n\n``` bash\ncomposer test\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email security@tappnetwork.com instead of using the issue tracker.\n\n## Credits\n\n- [Steve Williamson](https://github.com/tapp)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Laravel Package Boilerplate\n\nThis package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).\n\n## Laravel Google App Engine (GAE) Datastore Secret Manager\n\nThis package was heavily based off of the GAE package. [laravel-GAE-secret-manager](https://github.com/tommerrett/laravel-GAE-secret-manager).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftappnetwork%2Flaravel-aws-secrets-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftappnetwork%2Flaravel-aws-secrets-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftappnetwork%2Flaravel-aws-secrets-manager/lists"}