Sorry for the late reply. Upgraded to 1.20.1
and I am sill getting a 403 when trying to add custom search attributes.
I am investigating if my ES schema commands are incorrect.
# Taken from https://temporal.io/blog/auto-setup
ES_SERVER="${ES_SCHEME}://${ES_SEEDS%%,*}:${ES_PORT}"
SETTINGS_URL="${ES_SERVER}/_cluster/settings"
SETTINGS_FILE="/etc/temporal/schema/elasticsearch/visibility/cluster_settings_${ES_VERSION}.json"
TEMPLATE_URL="${ES_SERVER}/_template/temporal_visibility_v1_template"
SCHEMA_FILE="/etc/temporal/schema/elasticsearch/visibility/index_template_${ES_VERSION}.json"
INDEX_URL="${ES_SERVER}/temporal_visibility_v1_dev"
curl --fail --user "${ES_USER}":"${ES_PWD}" -X PUT "${SETTINGS_URL}" -H "Content-Type: application/json" --data-binary "@${SETTINGS_FILE}" --write-out "\n"
curl --fail --user "${ES_USER}":"${ES_PWD}" -X PUT "${TEMPLATE_URL}" -H 'Content-Type: application/json' --data-binary "@${SCHEMA_FILE}" --write-out "\n"
curl --user "${ES_USER}":"${ES_PWD}" -X PUT "${INDEX_URL}" --write-out "\n"