Skip to content

GDB-14591 Add encryption at rest properties#207

Open
vanxa wants to merge 5 commits into
mainfrom
GDB-14591-encryption-at-rest
Open

GDB-14591 Add encryption at rest properties#207
vanxa wants to merge 5 commits into
mainfrom
GDB-14591-encryption-at-rest

Conversation

@vanxa

@vanxa vanxa commented May 21, 2026

Copy link
Copy Markdown

No description provided.

@vanxa vanxa force-pushed the GDB-14591-encryption-at-rest branch from 0e4d473 to 49beff7 Compare May 22, 2026 12:06
Comment thread templates/graphdb/configmap-encryption-environment.yaml Outdated
Comment thread templates/graphdb/statefulset.yaml Outdated
Comment thread templates/graphdb/configmap-encryption-environment.yaml Outdated
Comment thread templates/graphdb/statefulset.yaml Outdated
Comment thread templates/graphdb/statefulset.yaml Outdated
@vanxa vanxa requested a review from mihailradkov June 4, 2026 08:59
GRAPHDB_DATA_ENCRYPTION_TYPE: {{ .Values.configuration.encryption.type }}
GRAPHDB_DATA_ENCRYPTION_FILE: {{ required "configuration.encryption.file is required" .Values.configuration.encryption.file }}
{{- if eq .Values.configuration.encryption.type "pkcs12" }}
GRAPHDB_DATA_ENCRYPTION_KEYSTORE_ALIAS: {{ required "configuration.encryption.alias is required ".Values.configuration.encryption.alias }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
GRAPHDB_DATA_ENCRYPTION_KEYSTORE_ALIAS: {{ required "configuration.encryption.alias is required ".Values.configuration.encryption.alias }}
GRAPHDB_DATA_ENCRYPTION_KEYSTORE_ALIAS: {{ required "configuration.encryption.alias is required " .Values.configuration.encryption.alias }}

- name: graphdb-secret-properties
secret:
secretName: {{ include "graphdb.fullname.secret.properties" . }}
{{- if or (eq .Values.configuration.encryption.type "file" ) (eq .Values.configuration.encryption.type "pkcs12") }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Casn this be based on simply if .Values.configuration.encryption.type ?

{{- with .Values.extraEnv }}
env: {{- tpl (toYaml .) $ | nindent 12 }}
{{- end }}
env:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For a bit more clean render, wrap env with a check to avoid rendering it empty if no encr is configured

Comment thread values.yaml
initContainerResources:
limits:
memory: 16Mi
memory: 100Mi

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is 16 not enough?

@@ -0,0 +1,9 @@
configuration:
externalUrl: http://127.0.0.1.nip.io/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

externalUrl can be omited from the example.

kubectl create secret generic graphdb-masterkeyfile --from-file=masterKey=master.key
helm install --values enc-file-values.yaml graphdb ontotext/graphdb
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An extra empty line that can be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants