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

[CI / Build / FIPS] Use xpack.security.experimental.fipsMode.enabled in CI and Docker #187533

Merged
merged 20 commits into from
Jul 15, 2024

Conversation

Ikuni17
Copy link
Contributor

@Ikuni17 Ikuni17 commented Jul 4, 2024

Summary

Closes #188272

A check was added to in #181187 which detects if the environment has FIPS enabled NodeJS, but Kibana is not setup properly. This adds the Kibana setting for FIPS in CI and the Docker image. Note there are still license issues on some tests due to #181187 as well, but this will be handled in another PR.

@Ikuni17 Ikuni17 added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting ci:build-docker-fips Build Docker FIPS image v8.15.0 ci:enable-fips-agent Use FIPS Agent Images for CI labels Jul 4, 2024
@Ikuni17 Ikuni17 self-assigned this Jul 4, 2024
@Ikuni17
Copy link
Contributor Author

Ikuni17 commented Jul 4, 2024

/ci

@Ikuni17
Copy link
Contributor Author

Ikuni17 commented Jul 4, 2024

/ci

@Ikuni17
Copy link
Contributor Author

Ikuni17 commented Jul 4, 2024

/ci

@Ikuni17
Copy link
Contributor Author

Ikuni17 commented Jul 4, 2024

/ci

@Ikuni17
Copy link
Contributor Author

Ikuni17 commented Jul 4, 2024

/ci

@@ -156,6 +156,7 @@ RUN /usr/bin/echo -e '\n--enable-fips' >> config/node.options
RUN /usr/bin/echo '--openssl-config=/usr/share/kibana/config/nodejs.cnf' >> config/node.options
COPY --chown=1000:0 openssl/nodejs.cnf "/usr/share/kibana/config/nodejs.cnf"
ENV OPENSSL_MODULES=/usr/share/kibana/openssl/lib/ossl-modules
ENV XPACK_SECURITY_FIPSMODE_ENABLED=true
Copy link
Contributor Author

@Ikuni17 Ikuni17 Jul 4, 2024

Choose a reason for hiding this comment

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

For some reason, this env variable works fine in the Docker image, but isn't picked up in CI, so had to write to to kibana.yml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kc13greiner Do you have any idea why this wouldn't work in CI?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it needs EXPERIMENTAL from the xpack.security.experimental.fipsMode.enabled in src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker

@Ikuni17
Copy link
Contributor Author

Ikuni17 commented Jul 9, 2024

/ci

@Ikuni17
Copy link
Contributor Author

Ikuni17 commented Jul 10, 2024

/ci

@Ikuni17
Copy link
Contributor Author

Ikuni17 commented Jul 10, 2024

/ci

@elastic elastic deleted a comment from elasticmachine Jul 10, 2024
@Ikuni17
Copy link
Contributor Author

Ikuni17 commented Jul 11, 2024

/ci

@Ikuni17 Ikuni17 removed the ci:enable-fips-agent Use FIPS Agent Images for CI label Jul 13, 2024
@Ikuni17 Ikuni17 marked this pull request as ready for review July 13, 2024 00:42
@Ikuni17 Ikuni17 requested a review from a team as a code owner July 13, 2024 00:42
@elastic elastic deleted a comment from elasticmachine Jul 13, 2024
@Ikuni17
Copy link
Contributor Author

Ikuni17 commented Jul 13, 2024

/ci

@elasticmachine
Copy link
Contributor

⏳ Build in-progress

  • Buildkite Build
  • Commit: 52adb8d
  • Kibana UBI FIPS Image: docker.elastic.co/kibana-ci/kibana-ubi-fips:8.16.0-SNAPSHOT-52adb8df24e15b7349eaa8ff4e908bd99cb0c5c2

History

cc @Ikuni17

@Ikuni17 Ikuni17 enabled auto-merge (squash) July 15, 2024 16:30
@Ikuni17 Ikuni17 merged commit 333cd20 into elastic:main Jul 15, 2024
21 checks passed
@Ikuni17 Ikuni17 deleted the fix/add-kbn-fips-flag branch July 15, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:build-docker-fips Build Docker FIPS image release_note:skip Skip the PR/issue when compiling release notes v8.15.0 v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FIPS] Agents fail to start due to new experimental setting
5 participants