Skip to content

Commit dbfb595

Browse files
committed
PCD269: define EP_HELPER_USER and EP_HELPER_PASS from env (stage 2)
Mirrors the existing ELASTICSEARCH_DOCS_HOST → EP_HELPER_HOST pattern so that when ELASTICSEARCH_DOCS_USER and ELASTICSEARCH_DOCS_PASS are set in the pod env, the wp-proud-search-elastic plugin will send Authorization: Basic on docsapi calls. Env vars are intentionally not provisioned yet — the constants stay undefined and the plugin behaves exactly as before. Stage 3 will add the k8s Secret and wire the env vars per pod, then stage 4 flips routeAuth on the docsapi side. Refs PCD269.
1 parent 2f44322 commit dbfb595

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

www/wp-config.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@
103103
if (getenv('ELASTICSEARCH_DOCS_HOST')) {
104104
define('EP_HELPER_HOST', 'http://' . getenv('ELASTICSEARCH_DOCS_HOST') . '/send-attachments');
105105
}
106+
if (getenv('ELASTICSEARCH_DOCS_USER')) {
107+
define('EP_HELPER_USER', getenv('ELASTICSEARCH_DOCS_USER'));
108+
}
109+
if (getenv('ELASTICSEARCH_DOCS_PASS')) {
110+
define('EP_HELPER_PASS', getenv('ELASTICSEARCH_DOCS_PASS'));
111+
}
106112

107113
define('DISALLOW_FILE_EDIT', true);
108114
define('DISALLOW_FILE_MODS', true);

0 commit comments

Comments
 (0)