Skip to content

Commit a2969b9

Browse files
committed
renaming dashboards index
1 parent a8c95aa commit a2969b9

File tree

6 files changed

+38
-5
lines changed

6 files changed

+38
-5
lines changed

helmfile.d/charts/opensearch/curator/templates/configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ data:
2727
timestring: '%Y.%m.%d'
2828
- filtertype: pattern
2929
kind: regex
30-
value: '^\.opensearch_dashboards.*$'
30+
value: '^\opensearch_dashboards.*$'
3131
exclude: True
3232
{{- $c = add1 $c }}
3333
{{ $c }}:
@@ -49,7 +49,7 @@ data:
4949
unit_count: {{ $v.ageDays }}
5050
- filtertype: pattern
5151
kind: regex
52-
value: '^\.opensearch_dashboards.*$'
52+
value: '^\opensearch_dashboards.*$'
5353
exclude: True
5454
{{- $c = add1 $c }}
5555
{{- end }}

helmfile.d/values/opensearch/configurer.yaml.gotmpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ config:
9393
index_permissions:
9494
{{- if .Values.opensearch.indexPerNamespace }}
9595
- index_patterns:
96-
# Only allow indices not starting with ".", except ".orphaned-"
96+
# Only allow indices not starting with ".", except ".orphaned-" and that do not contain opensearch_dashboards
9797
- '/^[^.].*/'
98+
- '/^(?!.*opensearch_dashboards).*$/'
9899
- ".orphaned-*"
99100
allowed_actions:
100101
- "indices:admin/create"
@@ -120,11 +121,14 @@ config:
120121
- "indices_monitor"
121122
- index_patterns:
122123
- '/^[^.].*/'
124+
- '/^(?!.*opensearch_dashboards).*$/'
123125
- ".orphaned-*"
124126
allowed_actions:
125127
- "indices:admin/delete"
126128
- role_name: kubernetes_log_reader
127129
definition:
130+
cluster_permissions:
131+
- "cluster:admin/opensearch/ql/datasources/read"
128132
index_permissions:
129133
- index_patterns:
130134
{{- if .Values.opensearch.indexPerNamespace }}

helmfile.d/values/opensearch/dashboards.yaml.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ config:
1313
- securitytenant
1414

1515
opensearchDashboards:
16-
index: .opensearch_dashboards
16+
index: opensearch_dashboards
1717

1818
opensearch_security:
1919
{{ if .Values.opensearch.sso.enabled }}

helmfile.d/values/opensearch/securityadmin.yaml.gotmpl

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ securityConfig:
5959
reserved: true
6060
opendistro_security_roles:
6161
- "kibana_server"
62+
- "dashboards"
6263
description: "OpenSearch Dashboards user"
6364

6465
configurer:
@@ -127,6 +128,34 @@ securityConfig:
127128
- "indices:admin/opensearch/ism/managedindex"
128129
- "indices:admin/rollover"
129130
- "indices:monitor/stats"
131+
dashboards:
132+
static: false
133+
hidden: false
134+
reserved: false
135+
index_permissions:
136+
- index_patterns:
137+
- "*opensearch_dashboards*"
138+
allowed_actions:
139+
- "indices_all"
140+
dashboards_user:
141+
static: false
142+
hidden: false
143+
reserved: false
144+
index_permissions:
145+
- index_patterns:
146+
- "*opensearch_dashboards*"
147+
allowed_actions:
148+
- "read"
149+
- "delete"
150+
- "manage"
151+
- "index"
152+
- index_patterns:
153+
- ".tasks"
154+
- ".management-beats"
155+
- "*:.tasks"
156+
- "*:.management-beats"
157+
allowed_actions:
158+
- "indices_all"
130159
131160
# Needed
132161
roles_mapping.yml: |-

migration/v0.43/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ As with all scripts in this repository `CK8S_CONFIG_PATH` is expected to be set.
137137
1. Upgrade Opensearch:
138138

139139
```bash
140-
./migration/v0.43/apply/10-upgrade-opensearch.sh execute
140+
./migration/v0.43/apply/20-upgrade-opensearch.sh execute
141141
```
142142

143143
1. Upgrade applications:
File renamed without changes.

0 commit comments

Comments
 (0)