Skip to content

Strip Admin Users In Development DB Dump#309

Merged
cmuench merged 2 commits into
netz98:developfrom
mpchadwick:feature/strip-admin
Sep 19, 2017
Merged

Strip Admin Users In Development DB Dump#309
cmuench merged 2 commits into
netz98:developfrom
mpchadwick:feature/strip-admin

Conversation

@mpchadwick
Copy link
Copy Markdown
Contributor

Magerun pull-request check-list:

  • Pull request against develop branch (if not, just close and create a new one against it)
  • README.md reflects changes (if any)

Subject: Strip Admin Users In Development DB Dump

For security purposes, it's better to strip admin* and authorization* when dumping a production database for non-production use. For example, the production database could be restored to staging with production admin user data. The staging environment may not have the same level of security as production (e.g. default admin route, not rate limiting brute force password guessing). An attacker could leverage the staging environment to identify production user credentials and then use them to obtain access to the production system.

Changes proposed in this pull request:

  • admin* and authorization* are stripped when running a development db dump

If the maintainers agree with this change, I can additionally issue a pull request to n98-magerun.

@cmuench cmuench merged commit 69f3445 into netz98:develop Sep 19, 2017
@cmuench
Copy link
Copy Markdown
Member

cmuench commented Sep 19, 2017

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants