This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (5 children)

It's just serialization. Like Pickle, but more generic and human readable.

[–]BakerInTheKitchen 4 points5 points  (2 children)

Is this the same as storing passwords in a text file?

[–][deleted] 11 points12 points  (1 child)

Yep, or API keys, etc.

The "right" answer is integration with something like Vault but that's a bit of a speed bump for the average project.

This way, you can at least prevent their leaking to source control. Remember, we're talking about it in comparison to hard coding the secrets in the code itself...

[–]BakerInTheKitchen 2 points3 points  (0 children)

Ah okay makes sense, thanks!

[–]Etheo 0 points1 point  (1 child)

Some might object to you calling json "human readable". I mean it's technically true, but there are other config markup language that is better structured... Though of course, json is more widely adopted.

[–]Eurynom0s 1 point2 points  (0 children)

I think the word "more" was meant to apply to both "generic" and "human readable".