I know it is possible to submit an array in an environment variable, as described in Install Kibana with Docker | Kibana Guide [8.4] | Elastic. I can't, however, figure out how to submit the configuration needed to set up anonymous authentication (Authentication in Kibana | Kibana Guide [8.4] | Elastic), which would look like this in kibana.yml
:
xpack.security.authc.providers:
anonymous.anonymous1:
order: 0
credentials:
username: "anonymous_service_account"
password: "anonymous_service_account_password"
When I try to supply a JSON like this in docker-compose.yml
:
XPACK_SECURITY_AUTHC_PROVIDERS: >
[{"anonymous.anonymous1": { "order": 0, "credentials": { "username": "kibana_system", "password": "${KIBANA_SYSTEM_PASSWORD}" }}}]
I get this error:
FATAL Error: [config validation of [xpack.security].authc.providers]: types that failed validation:
- [config validation of [xpack.security].authc.providers.0]: could not parse array value from json input
- [config validation of [xpack.security].authc.providers.1]: could not parse object value from json input