Use k8s-admin user and disable root SSH for s390x VPC and VSI resources#71
Use k8s-admin user and disable root SSH for s390x VPC and VSI resources#71sudharshanibm wants to merge 1 commit intokubernetes-sigs:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sudharshanibm The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @sudharshanibm! |
|
Hi @sudharshanibm. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
|
/ok-to-test |
43e3e69 to
e5e2d0e
Compare
|
/test-pull-provider-ibmcloud-test-infra-kubernetes |
|
/test pull-provider-ibmcloud-test-infra-kubernetes |
|
/hold |
|
New changes are detected. LGTM label has been removed. |
012ea44 to
ce623e8
Compare
ac40e59 to
97e3ce5
Compare
|
Please squash the commits. |
97e3ce5 to
e5e2d0e
Compare
|
Hi @kishen-v |
| [workers:vars] | ||
| ansible_user=k8s-admin | ||
| ansible_become=true | ||
| ansible_become_method=sudo |
There was a problem hiding this comment.
@sudharshanibm , just a thought. We're setting the same set of values under hosts.yml and the group_vars/all through deployer.go.
Based on the comment Extra-vars have the highest precedence in Ansible, so this overrides, setting them in group-vars alone should suffice?
There was a problem hiding this comment.
thanks @kishen-v removed the redundant inventory template vars
0b647b4 to
e2fdabe
Compare
| // has disabled root SSH access for new VPC-VSI instances. | ||
| // Extra-vars have the highest precedence in Ansible, so this overrides | ||
| // the ansible_user: root in group_vars/all (shared with PowerVS). | ||
| if d.TargetProvider == "vpc" { |
There was a problem hiding this comment.
can we pass these variables while calling the tf command itself as an extra-vars argument..
There was a problem hiding this comment.
thanks @mkumatag
removed this block and updated the job config in test-infra to pass these values directly via --extra-vars
here is the related PR for test-infra
|
|
||
| // Add-in the extra-vars set to the final set. | ||
| maps.Insert(combinedAnsibleVars, maps.All(d.ExtraVars)) | ||
|
|
There was a problem hiding this comment.
Please remove the new lines.
877f0f8 to
b6f0918
Compare
There was a problem hiding this comment.
What are the implications of these changes on PowerVS? Why are they needed?
There was a problem hiding this comment.
added it only to test whether returning an error instead of calling os.Exit(1) would work better with the periodic job wiring in kubernetes/test-infra#36659 but that did not fix the issue
reverting this so there is no unintended behavioral change for PowerVS from this PR
92bfcc8 to
620f61a
Compare
Create a non-root k8s-admin account on instances and update Terraform/Ansible to use it. Signed-off-by: Sudharshan Muralidharan <sudharshan.muralidharan1@ibm.com>
k8s-adminfor all automationansible_become_user: root