nabla-c0d3 / trust_stores_observatory

Continuously monitor and record the content of the major platforms' root certificate stores.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pretty diff viewer

adamdecaf opened this issue · comments

From #4 it'd be handy to show diffs between yaml files. That way it's a bit more apparent which CA's were removed, added, etc between runs.

I tried implementing this using difflib (https://docs.python.org/3.6/library/difflib.html) but the result is not as good as just using the diff command line tool.
I actually don't think we can have something better than diff; one of the reasons I picked YAML was so that it would be easy to diff two stores.

Using diff is fine, but that probably forces us to sort the yaml. (Really just generate deterministic field ordering.) Otherwise there could be diffs just from line noise.

Yeah, the YAMLs are always sorted by the subject name in this project.