-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added missing secrets on statefulset template #272
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ type: application | |
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 2.0.1 | ||
version: 2.0.2 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
|
@@ -30,3 +30,5 @@ maintainers: | |
- name: peterzhuamazon | ||
- name: prudhvigodithi | ||
- name: TheAlgo | ||
- name: phijojo | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We wont be able to add you as a maintainer without going through the nomination process. Please refer to at maintainers.md guide to understand the process to become a maintainer. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good to know, thanks for sharing the document. I have removed my name from the maintainer's list. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,6 +190,16 @@ spec: | |
secret: | ||
secretName: {{ .Values.securityConfig.tenantsSecret }} | ||
{{- end }} | ||
{{- if .Values.securityConfig.nodesDnSecret }} | ||
- name: nodes-dn | ||
secret: | ||
secretName: {{ .Values.securityConfig.nodesDnSecret }} | ||
{{- end }} | ||
{{- if .Values.securityConfig.whitelistSecret }} | ||
- name: whitelist | ||
secret: | ||
secretName: {{ .Values.securityConfig.whitelistSecret }} | ||
{{- end }} | ||
Comment on lines
+198
to
+202
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be allowlist? https://opensearch.org/docs/latest/security-plugin/configuration/yaml/#allowlistyml There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it should be. |
||
{{- if .Values.keystore }} | ||
- name: keystore | ||
emptyDir: {} | ||
|
@@ -226,7 +236,7 @@ spec: | |
- 'chown -R 1000:1000 /usr/share/opensearch/data' | ||
securityContext: | ||
runAsUser: 0 | ||
resources: | ||
resources: | ||
{{ toYaml .Values.initResources | nindent 10 }} | ||
volumeMounts: | ||
- name: "{{ template "opensearch.uname" . }}" | ||
|
@@ -260,7 +270,7 @@ spec: | |
cp -a {{ .Values.opensearchHome }}/config/opensearch.keystore /tmp/keystore/ | ||
env: {{ toYaml .Values.extraEnvs | nindent 10 }} | ||
envFrom: {{ toYaml .Values.envFrom | nindent 10 }} | ||
resources: | ||
resources: | ||
{{ toYaml .Values.initResources | nindent 10 }} | ||
volumeMounts: | ||
- name: keystore | ||
|
@@ -375,6 +385,16 @@ spec: | |
name: tenants | ||
subPath: tenants.yml | ||
{{- end }} | ||
{{- if .Values.securityConfig.whitelistSecret }} | ||
- mountPath: {{ .Values.securityConfig.path }}/whitelist.yml | ||
name: whitelist | ||
subPath: whitelist.yml | ||
{{- end }} | ||
Comment on lines
+388
to
+392
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be allowlist? https://opensearch.org/docs/latest/security-plugin/configuration/yaml/#allowlistyml There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it should be. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @DandyDeveloper @prudhvigodithi @TheAlgo I think it's a bug in securityadmin.sh. I have added a ticket for that opensearch-project/security#1879 I'll change whitelist.yml to allowlist.yml on this PR and will create another PR for 1.x.x to handle the whitelist.yml |
||
{{- if .Values.securityConfig.nodesDnSecret }} | ||
- mountPath: {{ .Values.securityConfig.path }}/nodes_dn.yml | ||
name: nodes-dn | ||
subPath: nodes_dn.yml | ||
{{- end }} | ||
{{- if .Values.securityConfig.config.data }} | ||
{{- if .Values.securityConfig.config.dataComplete }} | ||
- mountPath: {{ .Values.securityConfig.path }} | ||
|
@@ -483,4 +503,4 @@ spec: | |
{{- else }} | ||
{{ toYaml .Values.extraContainers | indent 6 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind seeing the PR(s) before on updating the CHANGELOG?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, Do you want me to remove this from the current PR and submit a different one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @phijojo please consider this as an example
https://github.com/opensearch-project/helm-charts/pull/250/files#diff-96471865d01149e108175156796718f7584b7d5fae730d0cb5dbd98426bcd801