DEV Community

Discussion on: Configure Doctrine in Symfony to use AWS Secret values as MySQL connection parameters

Collapse
 
galiceau profile image
Galiceau

It is very interesting but there is a main issue concerning security aspect : the constup bundle requires AWS Credentials stored in the host. It is not a safe way to do. It would be better to use the instance profile permission to access to the secret in the secret manager. In this way, it is not necessary to know the AWS credentials. Clearly the instance profile should be granted to access to the AWS Secret manager.

Collapse
 
nikolastojilj12 profile image
Nikola Stojiljkovic

You may want to take a look at my other article: dev.to/nikolastojilj12/safe-and-si... That article covers pretty much all environments: from EC2 instances to bare metal local setups.