{"id":20574740,"url":"https://github.com/macpaw/doctrine-aws-iam-rds-auth-bundle","last_synced_at":"2025-04-26T13:59:36.021Z","repository":{"id":241622184,"uuid":"785300733","full_name":"MacPaw/doctrine-aws-iam-rds-auth-bundle","owner":"MacPaw","description":"Doctrine AWS IAM RDS Auth Bundle","archived":false,"fork":false,"pushed_at":"2024-06-07T09:51:03.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":13,"default_branch":"develop","last_synced_at":"2025-04-24T08:19:16.489Z","etag":null,"topics":["backend","doctrine","macpaw"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MacPaw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-04-11T15:55:30.000Z","updated_at":"2025-03-20T17:17:32.000Z","dependencies_parsed_at":"2024-06-06T17:36:51.163Z","dependency_job_id":null,"html_url":"https://github.com/MacPaw/doctrine-aws-iam-rds-auth-bundle","commit_stats":null,"previous_names":["macpaw/doctrine-aws-iam-rds-auth-bundle"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacPaw%2Fdoctrine-aws-iam-rds-auth-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacPaw%2Fdoctrine-aws-iam-rds-auth-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacPaw%2Fdoctrine-aws-iam-rds-auth-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacPaw%2Fdoctrine-aws-iam-rds-auth-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MacPaw","download_url":"https://codeload.github.com/MacPaw/doctrine-aws-iam-rds-auth-bundle/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250797232,"owners_count":21488880,"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":["backend","doctrine","macpaw"],"created_at":"2024-11-16T05:36:55.223Z","updated_at":"2025-04-25T10:26:00.844Z","avatar_url":"https://github.com/MacPaw.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Doctrine AWS IAM RDS Auth Bundle\nDoctrine AWS IAM RDS Auth Bundle provides a Doctrine DBAL driver decorator that supports AWS IAM RDS authentication.\n\n## Installation\nUse Composer to install the bundle:\n```\ncomposer require macpaw/doctrine-aws-iam-rds-auth-bundle\n```\n\n## Applications that don't use Symfony Flex\nEnable the bundle by adding it to the list of registered bundles in ```config/bundles.php```\n\n```php\n// config/bundles.php\n\u003c?php\n\nreturn [\n            Macpaw\\DoctrineAwsIamRdsAuthBundle\\DoctrineAwsIamRdsAuthBundle::class =\u003e ['all' =\u003e true],\n        // ...\n    ];\n```\n\n## Configuration\nSet the following environment variables in your ```.env``` file:\n```\nAWS_REGION # AWS region\nUSE_IAM # Set to 1 to enable AWS IAM RDS authentication\nRDS_TOKEN_LIFETIME_MINUTES # RDS token lifetime in minutes\nRDS_TOKEN_CACHE_LIFETIME_SECONDS # RDS token cache lifetime in seconds\nSSL_MODE # SSL mode\nSSL_ROOT_CERT_PATH # Path to the root certificate\n```\nAdd sslmode and sslrootcert to your database configuration in ```config/packages/doctrine.yaml```:\n```yaml\n#example\ndoctrine:\n  dbal:\n    url: 'postgresql://%env(DB_USER)%:%env(DB_PASSWORD)%@%env(DB_HOST)%:%env(DB_PORT)%/%env(DB_NAME)%?serverVersion=%env(DB_SERVER_VERSION)%\u0026charset=%env(DB_CHARSET)%\u0026sslmode=%env(SSL_MODE)%\u0026sslrootcert=%env(SSL_ROOT_CERT_PATH)%'\n```\n\nSpecify CacheStorageInterface in ```config/services.yaml```:\n```yaml\nservices:\n    Macpaw\\DoctrineAwsIamRdsAuthBundle\\Cache\\CacheStorageInterface:\n      class: Macpaw\\DoctrineAwsIamRdsAuthBundle\\Cache\\CacheStorage\n      arguments:\n        $cacheAdapter: '@redis_cache_adapter' # Implementation of Symfony\\Component\\Cache\\Adapter\\AdapterInterface\n```\n## Links\n[RDS SSL Certificates](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html#UsingWithRDS.SSL.CertificatesAllRegions)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacpaw%2Fdoctrine-aws-iam-rds-auth-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacpaw%2Fdoctrine-aws-iam-rds-auth-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacpaw%2Fdoctrine-aws-iam-rds-auth-bundle/lists"}