Skip to content

Commit 5c29d5c

Browse files
author
Steve Salas
committed
Add support for SAML configuration
1 parent 4ce93f4 commit 5c29d5c

22 files changed

+2062
-1478
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ Follow the [Code Dx Kubernetes Backup & Restore](./setup/core/docs/config/backup
5454

5555
## Upgrading
5656

57-
The codedx-kubernetes repository gets updated with each new Code Dx release, so you can download the latest repository files and re-run either the guided setup or the setup commands you previously saved (run-setup.ps1 and run-prereqs.ps1, if you saved a run-prereqs.ps1 file). If your setup.ps1 command references specific Docker image names (e.g., `-imageCodeDxTomcat codedx/codedx-tomcat:v5.0.8`), update those parameters to install the Docker image versions associated with a specific Code Dx release.
57+
The codedx-kubernetes repository gets updated with each new Code Dx release, so you can download the latest repository files and re-run the setup commands you previously saved. If your setup.ps1 command references specific Docker image names (e.g., `-imageCodeDxTomcat codedx/codedx-tomcat:v5.0.8`), update those parameters to install the Docker image versions associated with a specific Code Dx release.
5858

5959
>Note: Refer to the changelog for a specific codedx-kubernetes release for any important notes regarding backward compatibility.
6060
61+
You can run the setup script commands multiple times. On subsequent runs with modified setup parameters, depending on what you changed, you may need to restart a system component like the Code Dx web application pod. For example, restarting the Code Dx web application pod is necessary when changing a codedx.props setting with a custom values.yaml file so that Code Dx can observe the new file contents.
62+
6163
## Guided Setup Steps
6264

6365
Below is a graph that shows every step of the guided setup script - you only have to visit the steps that apply to your Code Dx deployment.

guided-setup-check-prereqs.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $VerbosePreference = 'Continue'
99

1010
Set-PSDebug -Strict
1111

12-
'./setup/core/common/codedx.ps1' | ForEach-Object {
12+
'./setup/core/common/prereqs.ps1' | ForEach-Object {
1313
Write-Debug "'$PSCommandPath' is including file '$_'"
1414
$path = join-path $PSScriptRoot $_
1515
if (-not (Test-Path $path)) {

guided-setup.ps1

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ Write-Host 'Loading...' -NoNewline
1313

1414
'./setup/powershell-algorithms/data-structures.ps1',
1515
'./setup/core/common/question.ps1',
16+
'./setup/core/common/prereqs.ps1',
1617
'./setup/steps/step.ps1',
1718
'./setup/steps/welcome.ps1',
1819
'./setup/steps/k8s.ps1',
1920
'./setup/steps/ingress.ps1',
2021
'./setup/steps/image.ps1',
2122
'./setup/steps/orchestration.ps1',
23+
'./setup/steps/authentication.ps1',
2224
'./setup/steps/cpu.ps1',
2325
'./setup/steps/memory.ps1',
2426
'./setup/steps/volume.ps1',
@@ -88,6 +90,7 @@ $s = @{}
8890
[IngressKind],[NginxIngressNamespace],[NginxIngressAddress],
8991
[LetsEncryptNamespace],[LetsEncryptClusterIssuer],[LetsEncryptEmail],[IngressCertificateArn],
9092
[DnsName],
93+
[AuthenticationType],[LdapInstructions],[SamlAuthenticationDnsName],[SamlIdpMetadata],[SamlAppName],[SamlKeystorePwd],[SamlPrivateKeyPwd],
9194
[DefaultCPU],[NginxCPU],[CodeDxCPU],[MasterDatabaseCPU],[SubordinateDatabaseCPU],[ToolServiceCPU],[MinIOCPU],[WorkflowCPU],
9295
[DefaultMemory],[NginxMemory],[CodeDxMemory],[MasterDatabaseMemory],[SubordinateDatabaseMemory],[ToolServiceMemory],[MinIOMemory],[WorkflowMemory],
9396
[DefaultEphemeralStorage],[NginxEphemeralStorage],[CodeDxEphemeralStorage],[MasterDatabaseEphemeralStorage],[SubordinateDatabaseEphemeralStorage],[ToolServiceEphemeralStorage],[MinIOEphemeralStorage],[WorkflowEphemeralStorage],
@@ -144,11 +147,16 @@ Add-StepTransitions $graph $s[[UseDefaultDockerImages]] $s[[IngressKind]]
144147
Add-StepTransitions $graph $s[[IngressKind]] $s[[NginxIngressNamespace]],$s[[NginxIngressAddress]],$s[[LetsEncryptNamespace]]
145148
Add-StepTransitions $graph $s[[IngressKind]] $s[[NginxIngressNamespace]],$s[[LetsEncryptNamespace]],$s[[LetsEncryptClusterIssuer]],$s[[LetsEncryptEmail]]
146149
Add-StepTransitions $graph $s[[IngressKind]] $s[[IngressCertificateArn]]
147-
Add-StepTransitions $graph $s[[IngressKind]] $s[[DnsName]],$s[[DefaultCPU]]
148-
Add-StepTransitions $graph $s[[IngressKind]] $s[[DefaultCPU]]
150+
Add-StepTransitions $graph $s[[IngressKind]] $s[[DnsName]],$s[[AuthenticationType]]
151+
Add-StepTransitions $graph $s[[IngressKind]] $s[[AuthenticationType]]
149152

150-
Add-StepTransitions $graph $s[[LetsEncryptEmail]] $s[[DnsName]],$s[[DefaultCPU]]
151-
Add-StepTransitions $graph $s[[IngressCertificateArn]] $s[[DefaultCPU]]
153+
Add-StepTransitions $graph $s[[LetsEncryptEmail]] $s[[DnsName]],$s[[AuthenticationType]]
154+
Add-StepTransitions $graph $s[[IngressCertificateArn]] $s[[AuthenticationType]]
155+
156+
Add-StepTransitions $graph $s[[AuthenticationType]] $s[[LdapInstructions]],$s[[DefaultCPU]]
157+
Add-StepTransitions $graph $s[[AuthenticationType]] $s[[SamlAuthenticationDnsName]],$s[[SamlIdpMetadata]],$s[[SamlAppName]],$s[[SamlKeystorePwd]],$s[[SamlPrivateKeyPwd]],$s[[DefaultCPU]]
158+
Add-StepTransitions $graph $s[[AuthenticationType]] $s[[SamlIdpMetadata]]
159+
Add-StepTransitions $graph $s[[AuthenticationType]] $s[[DefaultCPU]]
152160

153161
Add-StepTransitions $graph $s[[DefaultCPU]] $s[[NginxCPU]],$s[[CodeDxCPU]]
154162
Add-StepTransitions $graph $s[[DefaultCPU]] $s[[CodeDxCPU]]

0 commit comments

Comments
 (0)