Skip to content
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

WIP: Configure fips on the bastion node of openshift cluster #276

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gauravpbankar
Copy link
Contributor

@gauravpbankar gauravpbankar commented Oct 17, 2023

To configure the bastion node of openshfit cluster with FIPS enablement on PowerVM.

  • As a part of fips enablement we have already enabled fips on master nodes and worker nodes, In this PR we are going to enable fips on the bastion node.

@ppc64le-cloud-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gauravpbankar
Once this PR has been reviewed and has the lgtm label, please assign cs-zhang for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ppc64le-cloud-bot
Copy link
Contributor

ppc64le-cloud-bot commented Oct 17, 2023

@gauravpbankar: PR is not mergeable.

The PR state is: BLOCKED

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.

@ppc64le-cloud-bot
Copy link
Contributor

Hi @gauravpbankar. Thanks for your PR.

I'm waiting for a ocp-power-automation member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@@ -345,3 +345,32 @@ resource "null_resource" "setup_nfs_disk" {
]
}
}


resource "null_resource" "bastion_nop" {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
resource "null_resource" "bastion_nop" {
resource "null_resource" "fips_enablement" {

Copy link

@prb112 prb112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs changes

@gauravpbankar gauravpbankar changed the title -s {WIP} Oct 18, 2023
@gauravpbankar gauravpbankar changed the title {WIP} [WIP] Oct 18, 2023
@gauravpbankar gauravpbankar changed the title [WIP] [WIP] configure fips on the bastion to set the certificates properly on the openshift cluster Oct 18, 2023
@gauravpbankar gauravpbankar changed the title [WIP] configure fips on the bastion to set the certificates properly on the openshift cluster [WIP] configure fips on the bastion node of openshift cluster. Oct 18, 2023
@gauravpbankar gauravpbankar changed the title [WIP] configure fips on the bastion node of openshift cluster. WIP: Configure fips on the bastion node of openshift cluster Oct 18, 2023


Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added changes.

Comment on lines +35 to +37
time = {
source = "hashicorp/time"
version = "0.9.1"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new dependency to facilitate synchronization between null_resource providers

@@ -83,6 +84,7 @@ module "network" {
}

module "helpernode" {
depends_on = [module.bastion]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added due to module level synchronization problems when FIPS is enabled.

There is an option to use a small dummy step that uses fips_compliant as the synchronization point only when fips is enabled. We opted for this cleaner approach.

Copy link

@prb112 prb112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the few style changes, and change from work in progress to ready for review.

Copy link

@prb112 prb112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comments are inline

Signed-off-by: Gaurav Bankar <Gaurav.Bankar@ibm.com>
@gauravpbankar gauravpbankar marked this pull request as ready for review October 25, 2023 12:40
@gauravpbankar gauravpbankar changed the title WIP: Configure fips on the bastion node of openshift cluster Configure fips on the bastion node of openshift cluster Oct 25, 2023
@gauravpbankar
Copy link
Contributor Author

gauravpbankar commented Oct 25, 2023

@yussufsh :
Can you please review the PR.

@yussufsh
Copy link
Contributor

/ok-to-test

@ppc64le-cloud-bot
Copy link
Contributor

@gauravpbankar: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-ocp4-upi-powervm-terraform-lint 1bce9c9 link true /test pull-ocp4-upi-powervm-terraform-lint
pull-ocp4-upi-powervm-terraform-fmt 1bce9c9 link true /test pull-ocp4-upi-powervm-terraform-fmt
pull-ocp4-upi-powervm-terraform-validate 1bce9c9 link true /test pull-ocp4-upi-powervm-terraform-validate

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.

@yussufsh
Copy link
Contributor

@yussufsh : Can you please review the PR.

@gauravpbankar There are syntax errors in the code. When you are making any further changes I want to see a full run log with the required variables.
Please assign PRs only when you have a working code otherwise it is a waste of time for reviewers.
@prb112

@prb112
Copy link

prb112 commented Oct 25, 2023

Hey @gaurav / @yussufsh yes - I totally agree. please ping the log to Yussuf and I

@gauravpbankar gauravpbankar changed the title Configure fips on the bastion node of openshift cluster WIP: Configure fips on the bastion node of openshift cluster Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants