File tree Expand file tree Collapse file tree 6 files changed +35
-2
lines changed
Expand file tree Collapse file tree 6 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,9 @@ module "wazuh" {
143143 helm_chart_version = var. wazuh_helm_chart_version
144144 subject = var. subject
145145
146+ openid_client_id = var. openid_client_id
147+ openid_client_secret = var. openid_client_secret
148+
146149 ip_addresses = {
147150 for k , v in local . wazuh_domains :
148151 k = > {
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ resources:
3939 healthCheck :
4040 type : HTTPS
4141 port : 5601
42- requestPath : /app/login
42+ requestPath : /api/status
4343 timeoutSec : 5
4444 checkIntervalSec : 30
4545 healthyThreshold : 2
Original file line number Diff line number Diff line change 88 persistence :
99 size : 100Gi
1010 keycloak :
11- enabled : false
11+ enabled : true
1212 openid_connect_url : " ${openid_connect_url}/.well-known/openid-configuration"
13+ base_redirect_url : " https://{{ .Values.global.domain }}"
1314
1415master :
1516 replicaCount : 1
Original file line number Diff line number Diff line change @@ -7,6 +7,16 @@ variable "openid_connect_url" {
77 default = " https://login.dev.wazuh.adorsys.team/realms/test-adorsys"
88}
99
10+ variable "openid_client_id" {
11+ sensitive = true
12+ type = string
13+ }
14+
15+ variable "openid_client_secret" {
16+ sensitive = true
17+ type = string
18+ }
19+
1020variable "subject" {
1121 type = object ({
1222 country = string
Original file line number Diff line number Diff line change @@ -35,6 +35,16 @@ resource "helm_release" "wazuh" {
3535 name = " cluster.auth.key"
3636 value = random_id. hex_16 . hex
3737 }
38+
39+ set_sensitive {
40+ name = " indexer.keycloak.client_id"
41+ value = var. openid_client_id
42+ }
43+
44+ set_sensitive {
45+ name = " indexer.keycloak.client_secret"
46+ value = var. openid_client_secret
47+ }
3848
3949 set {
4050 name = " cluster.rootCaSecretName"
Original file line number Diff line number Diff line change @@ -93,6 +93,15 @@ variable "wazuh_helm_chart_version" {
9393 type = string
9494}
9595
96+ variable "openid_client_id" {
97+ sensitive = true
98+ type = string
99+ }
100+
101+ variable "openid_client_secret" {
102+ sensitive = true
103+ type = string
104+ }
96105
97106variable "subject" {
98107 type = object ({
You can’t perform that action at this time.
0 commit comments