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

Remove DB configuration inspection #178

Merged
merged 1 commit into from
Apr 18, 2018

Conversation

livathinos
Copy link
Contributor

Previously, if the ActiveRecord::AdapterNotSpecified exception was raised, the whole configurations object would be inspected - including information like shard sets and credentials for accessing the mysql cluster.

This PR fixes the above by only inspecting the keys inside the configurations hash.

@bquorning @pschambacher please review

@livathinos
Copy link
Contributor Author

cc @v4lproik this fixes the issue from happening to other applications that use this gem.

@livathinos livathinos changed the title Stop inspecting configurations, keys are enough Remove DB configuration inspection Apr 18, 2018
@bquorning bquorning merged commit 22d12b5 into master Apr 18, 2018
@bquorning bquorning deleted the slivathinos/no-configuration-exposure branch April 18, 2018 18:38
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

Successfully merging this pull request may close these issues.

2 participants