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

Add documentation for elastic-agent-cert-key-passphrase option #1413

Merged
merged 7 commits into from
Nov 4, 2024

Conversation

leehinman
Copy link
Contributor

elastic/elastic-agent#5494 added support for the --elastic-agent-cert-key-passphrase option. This PR adds the missing user facing documentation.

This option is only used if the --elastic-agent-cert-key is encrypted and requires a passphrase to use.

@leehinman leehinman requested a review from a team as a code owner October 30, 2024 20:24
Copy link

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

Copy link
Contributor

mergify bot commented Oct 30, 2024

This pull request does not have a backport label. Could you fix it @leehinman? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-/d./d is the label to automatically backport to the /d./d branch. /d is the digit
    NOTE: backport-skip has been added to this pull request.

@leehinman leehinman requested a review from kilfoyle October 30, 2024 20:57
@kilfoyle
Copy link
Contributor

kilfoyle commented Oct 30, 2024

@leehinman Thanks a lot for adding this!

I think we need to update the docs in a few spots. If you agree, and if you don't mind my adding a commit or two to your PR, I'll be happy to add these in:

Sorry to complicate things! :-)

@kilfoyle kilfoyle self-assigned this Oct 30, 2024
@leehinman
Copy link
Contributor Author

@kilfoyle please, add away.

@@ -231,6 +231,7 @@ sudo ./elastic-agent install \
--fleet-server-port=8220 \
--elastic-agent-cert=/tmp/fleet-server.crt \
--elastic-agent-cert-key=/tmp/fleet-server.key \
--elastic-agent-cert-key-passphrase=/tmp/fleet-server ???? \
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably a dumb question, but what would the path actually look like? I wasn't sure what file format the passphrase would have.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The passphrase file will just be a plain test file, so what you have is fine.

@kilfoyle
Copy link
Contributor

kilfoyle commented Oct 31, 2024

@leehinman I've added the setting description in the places I mentioned above. I included This option is only used if the --elastic-agent-cert-key is encrypted and requires a passphrase to use. since that seems important for folks to know.

Example:

Screenshot 2024-10-31 at 12 28 52 PM

Also, I had a question about the path example in my comment above.

@leehinman
Copy link
Contributor Author

LGTM

@@ -231,6 +231,7 @@ sudo ./elastic-agent install \
--fleet-server-port=8220 \
--elastic-agent-cert=/tmp/fleet-server.crt \
--elastic-agent-cert-key=/tmp/fleet-server.key \
--elastic-agent-cert-key-passphrase=/tmp/fleet-server/passphrase-file \
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment thread seems to be gone, so just for reference I changed the ????? to passphrase-file for clarity.

kilfoyle
kilfoyle previously approved these changes Nov 4, 2024
Copy link
Contributor

@kilfoyle kilfoyle left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀
Thanks a lot Lee!

karenzone
karenzone previously approved these changes Nov 4, 2024
Copy link
Contributor

@karenzone karenzone left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@karenzone karenzone left a comment

Choose a reason for hiding this comment

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

LGTM

@kilfoyle kilfoyle merged commit f9b079d into elastic:main Nov 4, 2024
3 checks passed
mergify bot pushed a commit that referenced this pull request Nov 4, 2024
* Add documentation for elastic-agent-cert-key-passphrase option

* Add the setting throughout the docs

* Update docs/en/ingest-management/security/certificates.asciidoc

* Update docs/en/ingest-management/commands.asciidoc

* Update docs/en/ingest-management/commands.asciidoc

* Update docs/en/ingest-management/elastic-agent/configuration/env/shared-env.asciidoc

* Update docs/en/ingest-management/security/certificates.asciidoc

---------

Co-authored-by: David Kilfoyle <[email protected]>
Co-authored-by: David Kilfoyle <[email protected]>
(cherry picked from commit f9b079d)
mergify bot pushed a commit that referenced this pull request Nov 4, 2024
* Add documentation for elastic-agent-cert-key-passphrase option

* Add the setting throughout the docs

* Update docs/en/ingest-management/security/certificates.asciidoc

* Update docs/en/ingest-management/commands.asciidoc

* Update docs/en/ingest-management/commands.asciidoc

* Update docs/en/ingest-management/elastic-agent/configuration/env/shared-env.asciidoc

* Update docs/en/ingest-management/security/certificates.asciidoc

---------

Co-authored-by: David Kilfoyle <[email protected]>
Co-authored-by: David Kilfoyle <[email protected]>
(cherry picked from commit f9b079d)
kilfoyle pushed a commit that referenced this pull request Nov 4, 2024
#1424)

* Add documentation for elastic-agent-cert-key-passphrase option

* Add the setting throughout the docs

* Update docs/en/ingest-management/security/certificates.asciidoc

* Update docs/en/ingest-management/commands.asciidoc

* Update docs/en/ingest-management/commands.asciidoc

* Update docs/en/ingest-management/elastic-agent/configuration/env/shared-env.asciidoc

* Update docs/en/ingest-management/security/certificates.asciidoc

---------

Co-authored-by: David Kilfoyle <[email protected]>
Co-authored-by: David Kilfoyle <[email protected]>
(cherry picked from commit f9b079d)

Co-authored-by: Lee E Hinman <[email protected]>
kilfoyle pushed a commit that referenced this pull request Nov 4, 2024
#1425)

* Add documentation for elastic-agent-cert-key-passphrase option

* Add the setting throughout the docs

* Update docs/en/ingest-management/security/certificates.asciidoc

* Update docs/en/ingest-management/commands.asciidoc

* Update docs/en/ingest-management/commands.asciidoc

* Update docs/en/ingest-management/elastic-agent/configuration/env/shared-env.asciidoc

* Update docs/en/ingest-management/security/certificates.asciidoc

---------

Co-authored-by: David Kilfoyle <[email protected]>
Co-authored-by: David Kilfoyle <[email protected]>
(cherry picked from commit f9b079d)

Co-authored-by: Lee E Hinman <[email protected]>
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.

3 participants