Skip to content

Commit

Permalink
Merge pull request #154 from mlbiam/master
Browse files Browse the repository at this point in the history
udpates for HA openunison, deployment via pulumi
  • Loading branch information
mlbiam authored May 30, 2024
2 parents 525f9cb + 5dc0504 commit 3a6f2d2
Show file tree
Hide file tree
Showing 25 changed files with 670 additions and 21 deletions.
2 changes: 1 addition & 1 deletion openunison-k8s-add-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,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.
version: 1.0.7
version: 1.0.8

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
accessTokenSkewMillis: "120000"
secretParams:
- name: clientSecret
secretName: orchestra-secrets-source
secretName: {{ .Values.cluster.sso.client_secret | default "orchestra-secrets-source" }}
secretKey: cluster-idp-{{ .Values.cluster.name }}
cookieConfig:
sessionCookieName: tremolosession
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ subjects:
name: k8s-cluster-administrators
apiGroup: rbac.authorization.k8s.io
- kind: ServiceAccount
name: openunison-{{ .Values.openunison.orchestra_release_name }}
name: openunison-{{ .Values.impersonation.orchestra_release_name }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
Expand Down
5 changes: 4 additions & 1 deletion openunison-k8s-cluster-management-by-group/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ primaryCluster:
name: Control Plane Cluster
description: Central control plane cluster used to manage other clusters

openunison:
impersonation:
orchestra_release_name: orchestra

openunison:

orchestra_login_portal_name: orchestra-login-portal
azGroups:
- k8s-cluster-k8s-administrators
Expand Down
2 changes: 1 addition & 1 deletion openunison-k8s-cluster-management/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,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.
version: 3.0.22
version: 3.0.23

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ metadata:
argocd.argoproj.io/sync-wave: "40"
subjects:
- kind: Group
{{ if .Values.openunison.naas.groups.privilegedAccessGroup }}
name: {{ .Values.openunison.naas.groups.privilegedAccessGroup }}{{ .Values.openunison.naas.groups.external.suffix }}
{{ else }}
name: k8s-cluster-administrators{{ .Values.openunison.naas.groups.external.suffix }}
{{ end }}
apiGroup: rbac.authorization.k8s.io
- kind: Group
name: k8s-cluster-k8s-administrators{{ .Values.openunison.naas.groups.external.suffix }}
apiGroup: rbac.authorization.k8s.io
- kind: ServiceAccount
name: openunison-{{ .Values.openunison.orchestra_release_name }}
name: openunison-{{ .Values.impersonation.orchestra_release_name }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ metadata:
argocd.argoproj.io/sync-wave: "40"
subjects:
- kind: Group
{{ if .Values.openunison.naas.groups.privilegedAccessGroup }}
name: {{ .Values.openunison.naas.groups.privilegedAccessGroup }}{{ .Values.openunison.naas.groups.internal.suffix }}
{{ else }}
name: k8s-cluster-k8s-administrators{{ .Values.openunison.naas.groups.internal.suffix }}
{{ end }}
apiGroup: rbac.authorization.k8s.io
- kind: ServiceAccount
name: openunison-{{ .Values.openunison.orchestra_release_name }}
name: openunison-{{ .Values.impersonation.orchestra_release_name }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
Expand Down
5 changes: 4 additions & 1 deletion openunison-k8s-cluster-management/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ primaryCluster:
dashboard:
enabled: true

openunison:
impersonation:
orchestra_release_name: orchestra

openunison:

orchestra_login_portal_name: orchestra-login-portal
naas:
jobs:
Expand Down
2 changes: 1 addition & 1 deletion orchestra-login-portal-argocd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.3.54
version: 2.3.56

# 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
Expand Down
2 changes: 1 addition & 1 deletion orchestra-login-portal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.3.49
version: 2.3.51

# 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ spec:
- hosts:
- "#[OU_HOST]"
filterChain:
- className: com.tremolosecurity.activemq.ChooseAmq
params:
namespace: {{ .Release.Namespace }}
- className: com.tremolosecurity.proxy.filters.HideCookie
params: {}
uri: "/admin"
proxyTo: https://amq.{{ .Release.Namespace }}.svc:8162${fullURI}
proxyTo: https://${amq.server}:8162${fullURI}
authChain: login-service
overrideHost: true
overrideReferer: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ spec:
- hosts:
- "#[OU_HOST]"
filterChain:
{{ if .Values.dashboard.require_session }}
- className: com.tremolosecurity.proxy.filters.AzFilter
params:
rules:
- "custom;require-session"
azFail: "force-logout"
{{ end }}
- className: com.tremolosecurity.scalejs.token.ws.ScaleToken
params:
displayNameAttribute: "sub"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ spec:
- hosts:
- "#[OU_HOST]"
filterChain:
{{ if .Values.dashboard.require_session }}
- className: com.tremolosecurity.proxy.filters.AzFilter
params:
rules:
- "custom;require-session"
azFail: "force-logout"
{{ end }}
- className: com.tremolosecurity.proxy.filters.XForward
params:
createHeaders: "false"
Expand Down Expand Up @@ -66,6 +73,13 @@ spec:
- hosts:
- "#[OU_HOST]"
filterChain:
{{ if .Values.dashboard.require_session }}
- className: com.tremolosecurity.proxy.filters.AzFilter
params:
rules:
- "custom;require-session"
azFail: "force-logout"
{{ end }}
- className: com.tremolosecurity.scalejs.token.ws.ScaleToken
params:
displayNameAttribute: "sub"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ spec:
required: required
params:
nameAttr: uid
workflowName: {{ .Values.openunison.post_jit_workflow }}
workflowName: "{{ .Values.openunison.post_jit_workflow }}"
{{ end }}
- name: genoidctoken
required: required
Expand Down
2 changes: 1 addition & 1 deletion orchestra/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.10.48
version: 2.10.51

# 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
Expand Down
17 changes: 17 additions & 0 deletions orchestra/templates/infrastructure/activemq-config-mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,23 @@ data:
<shutdownHooks>
<bean xmlns="http://www.springframework.org/schema/beans" class="org.apache.activemq.hooks.SpringContextHook" />
</shutdownHooks>
<networkConnectors>
{{ if .Values.openunison.activemq_remote }}
{{ $remote_queue_num := 0 }}
{{ $remote_queues := splitList "," .Values.openunison.non_secret_data.K8S_DR_QUEUES }}
{{ range $host := .Values.openunison.activemq_remote}}
<networkConnector uri="static:(ssl://{{ $host }})" >
<dynamicallyIncludedDestinations>
<queue physicalName="{{ index $remote_queues $remote_queue_num }}" />
{{ $remote_queue_num := add1 $remote_queue_num }}
</dynamicallyIncludedDestinations>
<excludedDestinations>
<queue physicalName="ActiveMQ.DLQ" />
</excludedDestinations>
</networkConnector>
{{ end }}
{{ end }}
</networkConnectors>

</broker>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,23 @@ data:
<shutdownHooks>
<bean xmlns="http://www.springframework.org/schema/beans" class="org.apache.activemq.hooks.SpringContextHook" />
</shutdownHooks>
<networkConnectors>
{{ if .Values.openunison.activemq_remote }}
{{ $remote_queue_num := 0 }}
{{ $remote_queues := splitList "," .Values.openunison.non_secret_data.K8S_DR_QUEUES }}
{{ range $host := .Values.openunison.activemq_remote}}
<networkConnector uri="static:(ssl://{{ $host }})" >
<dynamicallyIncludedDestinations>
<queue physicalName="{{ index $remote_queues $remote_queue_num }}" />
{{ $remote_queue_num := add1 $remote_queue_num }}
</dynamicallyIncludedDestinations>
<excludedDestinations>
<queue physicalName="ActiveMQ.DLQ" />
</excludedDestinations>
</networkConnector>
{{ end }}
{{ end }}
</networkConnectors>
</broker>

<!--
Expand Down
20 changes: 19 additions & 1 deletion orchestra/templates/infrastructure/activemq-config-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,24 @@ data:
<bean xmlns="http://www.springframework.org/schema/beans" class="org.apache.activemq.hooks.SpringContextHook" />
</shutdownHooks>
<networkConnectors>
{{ if .Values.openunison.activemq_remote }}
{{ $remote_queue_num := 0 }}
{{ $remote_queues := splitList "," .Values.openunison.non_secret_data.K8S_DR_QUEUES }}
{{ range $host := .Values.openunison.activemq_remote}}
<networkConnector uri="static:(ssl://{{ $host }})" >
<dynamicallyIncludedDestinations>
<queue physicalName="{{ index $remote_queues $remote_queue_num }}" />
{{ $remote_queue_num := add1 $remote_queue_num }}
</dynamicallyIncludedDestinations>
<excludedDestinations>
<queue physicalName="ActiveMQ.DLQ" />
</excludedDestinations>
</networkConnector>
{{ end }}
{{ end }}
</networkConnectors>

</broker>

<!--
Expand Down Expand Up @@ -327,7 +345,7 @@ spec:
storageClassName: {{ .Values.openunison.activemq_storageclass }}
{{ end }}
accessModes:
- ReadWriteOnce
- {{ .Values.openunison.activemq_accessmode | default "ReadWriteOnce" }}
resources:
requests:
storage: {{ .Values.openunison.activemq_pvc_size | default "1G" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,23 @@ data:
<shutdownHooks>
<bean xmlns="http://www.springframework.org/schema/beans" class="org.apache.activemq.hooks.SpringContextHook" />
</shutdownHooks>
<networkConnectors>
{{ if .Values.openunison.activemq_remote }}
{{ $remote_queue_num := 0 }}
{{ $remote_queues := splitList "," .Values.openunison.non_secret_data.K8S_DR_QUEUES }}
{{ range $host := .Values.openunison.activemq_remote}}
<networkConnector uri="static:(ssl://{{ $host }})" >
<dynamicallyIncludedDestinations>
<queue physicalName="{{ index $remote_queues $remote_queue_num }}" />
{{ $remote_queue_num := add1 $remote_queue_num }}
</dynamicallyIncludedDestinations>
<excludedDestinations>
<queue physicalName="ActiveMQ.DLQ" />
</excludedDestinations>
</networkConnector>
{{ end }}
{{ end }}
</networkConnectors>
</broker>

<!--
Expand Down
Loading

0 comments on commit 3a6f2d2

Please sign in to comment.