-
Notifications
You must be signed in to change notification settings - Fork 198
[CI][FIPS] Reconfigure pipeline to use Staging GovCloud/FRH ESS environment #9198
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
Conversation
|
This pull request does not have a backport label. Could you fix it @ycombinator? 🙏
|
|
This pull request is now in conflicts. Could you fix it? 🙏 |
8e4a04d to
30e152b
Compare
5b4e64b to
3212ff2
Compare
|
@pkoutsovasilis I could use your input here on how best to resolve the CI failure on this PR, since it pertains to the contents of the The "Start ESS stack for FIPS integration tests" step is failing in CI like so: This is happening because there is no Docker image with this tag ( elastic-agent/.package-version Line 7 in c1de40f
That field is being read in the terraform file used for creating the ESS deployment over here:
Just for testing, I temporarily hardcoded the tag as Do you have any thoughts on how we could accommodate the Staging GovCloud environment in our testing configuration? Here is one idea I have; let me know if you have a better suggestion:
Another solution, similar to the above, but needing more automation would be to store something like a Keep in mind that we have a deadline to finish FIPS testing by the end of this week so we may need to go with a less-ideal solution for now and then revisit it to make it better. |
|
Hey @ycombinator 👋 I do like the following proposal
but let's move fast to get this up and running and we figure the details of how
this will result using only the STACK_VERSION and not the STACK_BUILD_ID |
|
The "Start ESS stack for FIPS integration tests" step in CI is failing with the error: I'm confused because the same image tag succeeded in the previous CI build: https://buildkite.com/elastic/elastic-agent/builds/25276#0198a930-20fb-4c9e-93c3-80392012a236/136-180 [EDIT] I've compared the Terraform execution plans from both CI builds (previous - successful vs. current - failed) and they are identical except for the [EDIT] I've also run I've run this three times so far, one after the other (with a |
|
💚 Build Succeeded
History
cc @ycombinator |
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.
lgtm for CI part
…onment (#9198) * Get Staging FRH/GovCloud API key from Vault * Point Elastic Cloud API endpoint for TF provider to Staging FRH/GovCloud environment * Updating Vault path for API key * [Test commit] No-op change to trigger FIPS tests * Set ESS region to Staging GovCloud region * Check if variable is set before using it * Use default value * Parameterize deployment template ID * Debugging terraform * Forgot to pass deployment template ID * Use TF_VAR_* instead of adding new env vars * Fix deployment template ID * Set ES and Kibana Docker image URLs * Removing unrelated changes * Set -fips suffix on default docker images * Remove commented out lines * Bring back ESS_REGION env var * Define default ESS_REGION so it's not unbound * Restoring file from main * Try to set STACK_BUILD_ID to "" * [Testing] Hardcoding stack build ID * Only use STACK_VERSION when FIPS=true * Revert "[Testing] Hardcoding stack build ID" This reverts commit fb275fb. * Remove unnecessary line (cherry picked from commit a555980)
…onment (#9198) * Get Staging FRH/GovCloud API key from Vault * Point Elastic Cloud API endpoint for TF provider to Staging FRH/GovCloud environment * Updating Vault path for API key * [Test commit] No-op change to trigger FIPS tests * Set ESS region to Staging GovCloud region * Check if variable is set before using it * Use default value * Parameterize deployment template ID * Debugging terraform * Forgot to pass deployment template ID * Use TF_VAR_* instead of adding new env vars * Fix deployment template ID * Set ES and Kibana Docker image URLs * Removing unrelated changes * Set -fips suffix on default docker images * Remove commented out lines * Bring back ESS_REGION env var * Define default ESS_REGION so it's not unbound * Restoring file from main * Try to set STACK_BUILD_ID to "" * [Testing] Hardcoding stack build ID * Only use STACK_VERSION when FIPS=true * Revert "[Testing] Hardcoding stack build ID" This reverts commit fb275fb. * Remove unnecessary line (cherry picked from commit a555980)
…onment (#9198) (#9385) * Get Staging FRH/GovCloud API key from Vault * Point Elastic Cloud API endpoint for TF provider to Staging FRH/GovCloud environment * Updating Vault path for API key * [Test commit] No-op change to trigger FIPS tests * Set ESS region to Staging GovCloud region * Check if variable is set before using it * Use default value * Parameterize deployment template ID * Debugging terraform * Forgot to pass deployment template ID * Use TF_VAR_* instead of adding new env vars * Fix deployment template ID * Set ES and Kibana Docker image URLs * Removing unrelated changes * Set -fips suffix on default docker images * Remove commented out lines * Bring back ESS_REGION env var * Define default ESS_REGION so it's not unbound * Restoring file from main * Try to set STACK_BUILD_ID to "" * [Testing] Hardcoding stack build ID * Only use STACK_VERSION when FIPS=true * Revert "[Testing] Hardcoding stack build ID" This reverts commit fb275fb. * Remove unnecessary line (cherry picked from commit a555980) Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
…onment (#9198) (#9384) * Get Staging FRH/GovCloud API key from Vault * Point Elastic Cloud API endpoint for TF provider to Staging FRH/GovCloud environment * Updating Vault path for API key * [Test commit] No-op change to trigger FIPS tests * Set ESS region to Staging GovCloud region * Check if variable is set before using it * Use default value * Parameterize deployment template ID * Debugging terraform * Forgot to pass deployment template ID * Use TF_VAR_* instead of adding new env vars * Fix deployment template ID * Set ES and Kibana Docker image URLs * Removing unrelated changes * Set -fips suffix on default docker images * Remove commented out lines * Bring back ESS_REGION env var * Define default ESS_REGION so it's not unbound * Restoring file from main * Try to set STACK_BUILD_ID to "" * [Testing] Hardcoding stack build ID * Only use STACK_VERSION when FIPS=true * Revert "[Testing] Hardcoding stack build ID" This reverts commit fb275fb. * Remove unnecessary line (cherry picked from commit a555980) Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
…onment (elastic#9198) * Get Staging FRH/GovCloud API key from Vault * Point Elastic Cloud API endpoint for TF provider to Staging FRH/GovCloud environment * Updating Vault path for API key * [Test commit] No-op change to trigger FIPS tests * Set ESS region to Staging GovCloud region * Check if variable is set before using it * Use default value * Parameterize deployment template ID * Debugging terraform * Forgot to pass deployment template ID * Use TF_VAR_* instead of adding new env vars * Fix deployment template ID * Set ES and Kibana Docker image URLs * Removing unrelated changes * Set -fips suffix on default docker images * Remove commented out lines * Bring back ESS_REGION env var * Define default ESS_REGION so it's not unbound * Restoring file from main * Try to set STACK_BUILD_ID to "" * [Testing] Hardcoding stack build ID * Only use STACK_VERSION when FIPS=true * Revert "[Testing] Hardcoding stack build ID" This reverts commit fb275fb. * Remove unnecessary line





What does this PR do?
This PR reconfigures the FIPS Buildkite pipeline to a) point it to the Staging GovCloud/FRH ESS environment and b) use an ESS API key from that environment for spinning up deployments.
Why is it important?
To run FIPS-related tests against the officially-configured FedRamp High (FRH) ESS environment.