-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add sops file flag to diagnostics script #2250
base: main
Are you sure you want to change the base?
Add sops file flag to diagnostics script #2250
Conversation
823a5d0
to
50e02c3
Compare
50e02c3
to
231ded5
Compare
@anders-elastisys I guess you wanted some early feedback on your proposal. Overall, I think this is a good idea. It would be great if we could bring the script to the point where the on-call person only needs to type:
The expression convention over configuration comes to my mind. The on-call person should be provided with "sensible defaults". |
20d8c62
to
13414e1
Compare
Maybe 13414e1 is more in line with what we want? I removed the sops-config file flag and instead added so that by default the script will look for the file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the transparency of the error message and that we provide the platform administrator with sane defaults.
|
||
echo -e "\tCK8S_PGP_FP=<fingerprint provided during onboarding> ./bin/ck8s diagnostics [sc|wc]\n" 1>&2 | ||
echo -e "\tIf in doubt, contact support@elastisys.com\n" 1>&2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't our customer contact sme-support@elastisys.com
?
echo -e "\tEncrypting using the fingerprints: $fingerprints." 1>&2 | ||
echo -e "\tIf you want to send diagnostic data to Elastisys, make sure to do:\n" 1>&2 | ||
echo -e "\tIf you want to send diagnostic data to Elastisys, make sure to store GPG keys" 1>&2 | ||
echo -e "\tretrieved during onboarding in a file named:\n" 1>&2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not appropriate for this repository since it is open source. We should not assume that Elastisys is owning the platform.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The notice was added when the script was first created, see the discussion here. Maybe @cristiklein can chip in regarding this?
|
||
echo -e "\tCK8S_PGP_FP=<fingerprint provided during onboarding> ./bin/ck8s diagnostics [sc|wc]\n" 1>&2 | ||
echo -e "\tIf in doubt, contact support@elastisys.com\n" 1>&2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not appropriate for this repository since it is open source. We should not assume that Elastisys is owning the platform.
05df19f
to
2257d0c
Compare
13414e1
to
7dfc403
Compare
Warning
This is a public repository, ensure not to disclose:
What kind of PR is this?
Required: Mark one of the following that is applicable:
Optional: Mark one or more of the following that are applicable:
Important
Breaking changes should be marked
kind/admin-change
orkind/dev-change
depending on typeCritical security fixes should be marked with
kind/security
What does this PR do / why do we need this PR?
Want to simplify the usage of the diagnostics script, the script will now by default import GPG keys from a file
$CK8S_CONFIG_PATH/diagnostics_receiver.gpg
and use their fingerprints ifCK8S_PGP_FP
is not already set.Information to reviewers
I am planning to update the public docs to reflect this change.
Checklist
NetworkPolicy Dashboard