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
server: include list of altered settings in diagnostics reports #22705
Conversation
b3344ff
to
0358aa9
Compare
cc @nstewart Review status: 0 of 4 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
Reviewed 4 of 4 files at r1. pkg/server/updates.go, line 299 at r1 (raw file):
you sure you don't want to print out the raw value here? pkg/server/updates_test.go, line 305 at r1 (raw file):
we absolutely want to report the version in full Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, some commit checks pending. pkg/server/updates.go, line 299 at r1 (raw file): Previously, knz (kena) wrote…
yes, very sure: it could be a string or other sensitive setting. pkg/server/updates_test.go, line 305 at r1 (raw file): Previously, knz (kena) wrote…
it's an opaque byte string as far as we can tell, so I don't think we can easily. Comments from Reviewable |
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful. pkg/server/updates_test.go, line 305 at r1 (raw file): Previously, dt (David Taylor) wrote…
Hmm.. we could say that the value returned by transformer must string to a non-sensitive string, since the only current instance (version) does, and then be okay with reporting .String() here Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions, all commit checks successful. pkg/server/updates.go, line 299 at r1 (raw file):
If I set something to a non-default value and then change it back to the default, do we delete it from system.settings or do we write the default value? If the latter, we could do a little better here and distinguish pkg/server/updates_test.go, line 305 at r1 (raw file): Previously, dt (David Taylor) wrote…
We validate it on pkg/server/updates_test.go, line 336 at r1 (raw file):
Something to think about in the future: It would be fine to not redact the setting name here, and it might be useful to see how often people change different settings vs setting them once. Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions, all commit checks successful. pkg/server/updates.go, line 299 at r1 (raw file): Previously, bdarnell (Ben Darnell) wrote…
We never intentionally write defaults to system.settings (outside of the special migrations): tf you use If you explicitly set it to a value that happens to be the default, we persist your value -- e..g if we later change the default, your explicit preference is still respected. pkg/server/updates_test.go, line 305 at r1 (raw file): Previously, bdarnell (Ben Darnell) wrote…
Right, I think pkg/server/updates_test.go, line 336 at r1 (raw file): Previously, bdarnell (Ben Darnell) wrote…
We'd have to teach the scrubber to be a bit smarter -- right now it just rips strings out of the AST, and it would need to be a bit smarter to know these strings are safe. Not impossible, just not quite trivial. Comments from Reviewable |
Review status: all files reviewed at latest revision, 4 unresolved discussions, all commit checks successful. pkg/server/updates_test.go, line 305 at r1 (raw file): Previously, dt (David Taylor) wrote…
Right, I think the only thing we could do is whitelist Comments from Reviewable |
Review status: 2 of 5 files reviewed at latest revision, 4 unresolved discussions. pkg/server/updates_test.go, line 305 at r1 (raw file): Previously, bdarnell (Ben Darnell) wrote…
Ah, yep, good point, can just do it by name too. Done. Comments from Reviewable |
Knowing what settings are most useful, and, for those where the values are not potentially sensitive (i.e. non-strings), what values are common may be useful in determining if we are exposing useful knobs, should be turing the defaults further, etc. Release note (general change): include information about changed settings in diagnostics.
Reviewed 3 of 3 files at r2. pkg/server/updates_test.go, line 336 at r1 (raw file): Previously, dt (David Taylor) wrote…
File an issue for me, I know exactly where to look. I can do this in the bug fix period. Comments from Reviewable |
Review status: all files reviewed at latest revision, 3 unresolved discussions, all commit checks successful. pkg/server/updates_test.go, line 336 at r1 (raw file): Previously, knz (kena) wrote…
Comments from Reviewable |
Knowing what settings are most useful, and, for those where the values
are not potentially sensitive (i.e. non-strings), what values are common
may be useful in determining if we are exposing useful knobs, should be
turing the defaults further, etc.
Release note (general change): include information about changed settings in diagnostics.