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

ENV var XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY is not picked up for docker #57773

Closed
simitt opened this issue Feb 17, 2020 · 2 comments · Fixed by #58291
Closed

ENV var XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY is not picked up for docker #57773

simitt opened this issue Feb 17, 2020 · 2 comments · Fixed by #58291
Labels
bug Fixes for quality problems that affect the customer experience Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!

Comments

@simitt
Copy link
Contributor

simitt commented Feb 17, 2020

Kibana version: 7.6.0

Original install method (e.g. download page, yum, from source, etc.): docker

Description of the problem including expected versus actual behavior:

Steps to reproduce:

  1. Start Elasticsearch with security enabled
  2. Start Kibana via docker and try to set the xpack.encryptedSavedObjects.encryptionKey via environment variable.
    E.g. docker run -e ELASTICSEARCH_USERNAME=foo -e ELASTICSEARCH_PASSWORD=bar -e XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY=fhjskloppd678ehkdfdlliverpoolfcr -p 5601:5601 docker.elastic.co/kibana/kibana:8.0.0-SNAPSHOT

The ENV var should be picked up and set the encryption key, but the log files show a message like "message":"APIs are disabled due to the Encrypted Saved Objects plugin using an ephemeral encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml."

cc @kobelb

@simitt simitt added the bug Fixes for quality problems that affect the customer experience label Feb 17, 2020
@kobelb kobelb added the Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more! label Feb 21, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@shmelkin
Copy link

shmelkin commented Mar 15, 2022

I have the same issue

EDIT: It can be resolved by setting

  • XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY=
  • XPACK_SECURITY_ENCRYPTIONKEY=
  • XPACK_REPORTING_ENCRYPTIONKEY=

not

  • xpack.security.encryptionKey=
  • xpack.reporting.encryptionKey=
  • xpack.encryptedSavedObjects.encryptionKey=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Security Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants