-
Notifications
You must be signed in to change notification settings - Fork 256
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
🌱 deploy.sh to go code to fix gosec related issues #1602
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What kind of legit arguments is passed there? Something like |
This is an example from Also in From my testing (setting up with dev-env) there has been nothing set to |
Then definitely it is worth doing the regex validation the way I suggested. There aren't many legit ways to format legit params. |
Do you want to remove the old deploy.sh to avoid confusion? |
Thats the ultimate goal, for the time being they can coexist until we test the go code properly. |
ae8e7a2
to
be8724d
Compare
I'm currently updating the code to incorporate the k8s go-client. However, I'm unsure about the necessary options for |
Can you elaborate a bit more what do you mean my specifying options? Would you push the code so that we can check what is it that we may need? |
be8724d
to
6d418d6
Compare
So the solution I came up with for now is to use
|
Please check if you can use built-ins or de facto libraries instead of DIY. Also, logging a fatal and continuing is weird. If you can fall thru, then its not a fatal but a warning, or you error out if its really fatal. |
Thanks @tuminoid for the review! Will look into these comments today |
402d90c
to
0e73b3b
Compare
e066a76
to
7d8b23f
Compare
7d8b23f
to
0dfa2a5
Compare
d7cec0b
to
d4a8751
Compare
e146e7e
to
b805267
Compare
Signed-off-by: Max Rantil <[email protected]>
b805267
to
e34ef0a
Compare
/test metal3-bmo-e2e-test-pull |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@maxrantil: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Closing this in favor of #1669 |
@lentzi90: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
This PR transitions the functionality of the
deploy.sh
script into Go, aiming to fix gosec related issues.There is still one exception related to gosec that remains within thepipeCommands
function:A env var,KUBECTL_ARGS
, introduces a potential security risk. ThevalidateCmd
function is currently the best approach to ador the option to choose kubeconfigdressing this issue