Skip to content
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

[TT-13445] Add opa support #350

Merged
merged 4 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,14 @@ spec:
- name: TYK_DB_TIB_ENABLED
value: {{ .Values.tib.enabled | quote }}
{{- end }}
- name: TYK_DB_SECURITY_OPENPOLICY_ENABLED
value: {{ .Values.dashboard.opa.enabled | quote }}
- name: TYK_DB_SECURITY_OPENPOLICY_DEBUG
value: {{ .Values.dashboard.opa.debug | quote }}
- name: TYK_DB_SECURITY_OPENPOLICY_ENABLEAPI
value: {{ .Values.dashboard.opa.api | quote }}
- name: TYK_DB_SECURITY_ALLOWADMINRESETPASSWORD
value: {{ .Values.dashboard.opa.allowAdminPasswordReset | quote }}

{{- if .Values.dashboard.extraEnvs }}
{{- include "tyk-dashboard.tplvalues.render" (dict "value" .Values.dashboard.extraEnvs "context" $) | nindent 10 }}
Expand Down
14 changes: 14 additions & 0 deletions components/tyk-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,20 @@ dashboard:
# Enable support for users with the same email for multiple organisations
# It is used to set TYK_DB_ENABLEMULTIORGUSERS
enableMultiOrgUsers: true
opa:
# Enables OPA support.
# It is used to set TYK_DB_SECURITY_OPENPOLICY_ENABLED
enabled: false
# Enables OPA debug mode which will allow more detailed logs about the policy execution.
# It is used to set TYK_DB_SECURITY_OPENPOLICY_DEBUG
debug: false
# Enables OPA API mode which allows you to manage the OPA policies via the Dashboard API
# It is used to set TYK_DB_SECURITY_OPENPOLICY_ENABLEAPI
api: false
# If OPA is enabled with its default policies you will need to TYK_DB_SECURITY_ALLOWADMINRESETPASSWORD
zalbiraw marked this conversation as resolved.
Show resolved Hide resolved
# to avoid bootstrap job failure because of the OPA policy restrictions.
# It is used to set TYK_DB_SECURITY_ALLOWADMINRESETPASSWORD
allowAdminPasswordReset: true

# replicaCount specifies number of replicas to be created if kind is Deployment.
replicaCount: 1
Expand Down
14 changes: 14 additions & 0 deletions tyk-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,20 @@
# Enable support for users with the same email for multiple organisations
# It is used to set TYK_DB_ENABLEMULTIORGUSERS
enableMultiOrgUsers: true
opa:
# Enables OPA support.
# It is used to set TYK_DB_SECURITY_OPENPOLICY_ENABLED
enabled: false
# Enables OPA debug mode which will allow more detailed logs about the policy execution.
# It is used to set TYK_DB_SECURITY_OPENPOLICY_DEBUG
debug: false
# Enables OPA API mode which allows you to manage the OPA policies via the Dashboard API
# It is used to set TYK_DB_SECURITY_OPENPOLICY_ENABLEAPI
api: false
# If OPA is enabled with its default policies you will need to TYK_DB_SECURITY_ALLOWADMINRESETPASSWORD
zalbiraw marked this conversation as resolved.
Show resolved Hide resolved
# to avoid bootstrap job failure because of the OPA policy restrictions.
# It is used to set TYK_DB_SECURITY_ALLOWADMINRESETPASSWORD
allowAdminPasswordReset: true


# replicaCount specifies number of replicas to be created if kind is Deployment.
Expand Down Expand Up @@ -1637,8 +1651,8 @@
# extraContainers is a list of containers to be added to the pod
# - name: sidecar
# image: sidecar:latest
extraContainers: []

Check failure on line 1654 in tyk-control-plane/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

[trailing-spaces] trailing spaces

Check failure on line 1655 in tyk-control-plane/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

[trailing-spaces] trailing spaces
# extraEnvs is used to set extra environment variables to Tyk Developer Portal pod.
# - name: PORTAL_REFRESHINTERVAL
# value: "10"
Expand Down
15 changes: 15 additions & 0 deletions tyk-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,21 @@ tyk-dashboard:
# Enable support for users with the same email for multiple organisations
# It is used to set TYK_DB_ENABLEMULTIORGUSERS
enableMultiOrgUsers: true
# Manage dashboard API Open Policy Agent(OPA) support
opa:
# Enables OPA support.
# It is used to set TYK_DB_SECURITY_OPENPOLICY_ENABLED
enabled: false
# Enables OPA debug mode which will allow more detailed logs about the policy execution.
# It is used to set TYK_DB_SECURITY_OPENPOLICY_DEBUG
debug: false
# Enables OPA API mode which allows you to manage the OPA policies via the Dashboard API
# It is used to set TYK_DB_SECURITY_OPENPOLICY_ENABLEAPI
api: false
# If OPA is enabled with its default policies you will need to TYK_DB_SECURITY_ALLOWADMINRESETPASSWORD
zalbiraw marked this conversation as resolved.
Show resolved Hide resolved
# to avoid bootstrap job failure because of the OPA policy restrictions.
# It is used to set TYK_DB_SECURITY_ALLOWADMINRESETPASSWORD
allowAdminPasswordReset: true

# replicaCount specifies number of replicas to be created if kind is Deployment.
replicaCount: 1
Expand Down
Loading