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

Added possibility to suppress or throw exceptions during config loading #17

Merged
merged 1 commit into from
Feb 19, 2018
Merged

Conversation

peterdeme
Copy link
Contributor

Hi Guys,

So we are getting serious troubles becauses of this.. Actually I don't really understand why is it good to suppress config loading error, but its fine I made it true by default.

Thanks
Peter

@adamhathcock
Copy link
Member

The suppression of errors was in the original python: https://github.com/fugue/credstash/blob/master/credstash.py#L343
I recall there were valid errors because of dynamo querying and ignoring was safe because the value just wouldn't be in the list.

I'm not sure what issues you're seeing.

Also, if you were going to do this, you should put the option on the options class provided.

@peterdeme
Copy link
Contributor Author

"I'm not sure what issues you're seeing."

Well, lacking permission of reading from table, decrypting with key etc.
The original code is bad as well, valid errors must be allowed explicitly, but this implementation suppresses literally every error which is dangerous.

"Also, if you were going to do this, you should put the option on the options class provided."

Okay.

@peterdeme
Copy link
Contributor Author

Is this fine by you in the current state @adamhathcock ?

@adamhathcock
Copy link
Member

Sorry. I forgot about this.

Do you mind bumping the minor version like this?: https://github.com/Narochno/Narochno.Credstash/pull/14/files

@peterdeme
Copy link
Contributor Author

Sure, bumped minor to 2.2.0

@adamhathcock adamhathcock merged commit 309aff5 into Narochno:master Feb 19, 2018
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.

None yet

2 participants