Open
Conversation
`hash_salt_path` parameter is for security. Here is a use cases. Use case: Don't version control hash salt. If we version control fluentd.conf, hash salt is also version controlled because we need to write hash salt by `hash_salt` parameter in fluentd.conf. We can use random hash salt for each host by `hash_salt_path` parameter without version controlling hash salt. Because `hash_salt_path` generates random hash salt key and saves it when the path doesn't exist.
Owner
|
Hi @kou Thank you very much for contribution this fluentd plugin project! How do you think store hash_salt_key into environment data? Storing hash_salt_key in environment vs. in file comparison. Pros
Cons
How do you think? |
Author
|
英語で説明できる気がしないので日本語ですみません。。。 ユーザーとしての意見だと、提案してもらった方法は自分で各ホスト毎のsaltを生成する必要があって面倒だなぁと感じます。 (環境変数を使うと他のプラグインが 1開発者の意見だと、多少ユーザーが不便になったとしても使用や実装をシンプルに保ちたいというのは理解できるので、このプロジェクトがそういう方針であれば、このpull requestは取り下げます。 という感じです! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hash_salt_pathparameter is for security.Here is a use cases.
Use case: Don't version control hash salt.
If we version control fluentd.conf, hash salt is also version controlled
because we need to write hash salt by
hash_saltparameter influentd.conf.
We can use random hash salt for each host by
hash_salt_pathparameterwithout version controlling hash salt. Because
hash_salt_pathgeneratesrandom hash salt key and saves it when the path doesn't exist.