Using environment variables and bcrypt

I’m trying to use feature that can generate bcrypt of env variable to store password as described here:

Here’s my sg_internal_users.yml:

  type: internalusers
  config_version: 2

  hash: ${envbc.PASSWORD:-kibana}

And here’s the command I’m running:

PASSWORD=test -key "/etc/elasticsearch/Admin.key" -cert "/etc/elasticsearch/Admin.crt" -c
acert /etc/elasticsearch/ca.crt -cd sgconfig -cn foo -ff

This doesn’t seem to work, as the stored password seems to be “kibana” instead of “test”