Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add second EFS drive for database #9

Open
gdelisle opened this issue Nov 19, 2021 · 0 comments
Open

Add second EFS drive for database #9

gdelisle opened this issue Nov 19, 2021 · 0 comments

Comments

@gdelisle
Copy link
Contributor

The volumes for the app and the database containers have used the same EFS drive with two different endpoints. Now that DataSync is in place, the S3 bucket and the EFS drive are more tightly linked, and this introduces a potential vulnerability. The user needs to create the db-mysql-data folder in the S3 bucket in order for the database to mount it as a volume, and if this folder is deleted or changed in S3, it could potentially wipe out the database. (This could be seen as a feature, allowing the user to easily truncate the database if its size grows too large.) If this is a problem, we could provision a second, separate EFS drive just for the database, and not attach DataSync to it, ensuring that the user would not stumble into data loss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant