Skip to content

Commit

Permalink
feat: adds sso framework and removes default join and master keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Kruggel committed Mar 15, 2024
1 parent b29dfec commit 2aa7ada
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 29 deletions.
19 changes: 19 additions & 0 deletions chart/templates/uds-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ metadata:
name: artifactory
namespace: {{ .Release.Namespace }}
spec:
{{- if .Values.sso }}
sso:
- name: Artifactory SSO
clientId: uds-core-artifactory
redirectUris:
- "https://artifactory.{{ .Values.domain }}/artifactory/"
{{- end }}
network:
expose:
- service: artifactory
Expand All @@ -13,6 +20,18 @@ spec:
host: artifactory
port: 8082
allow:
- direction: Ingress
remoteGenerated: IntraNamespace
- direction: Egress
remoteGenerated: IntraNamespace
- direction: Egress
podLabels:
app.kubernetes.io/name: artifactory
port: 443
description: "SSO"
- direction: Egress
# todo: this is over permissive, need to scope it down
remoteGenerated: KubeAPI
- direction: Egress
podLabels:
app: artifactory
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
domain: "###ZARF_VAR_DOMAIN###"
sso: true
9 changes: 0 additions & 9 deletions src/dev-secrets/join-master-key-secret.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions src/dev-secrets/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,3 @@ components:
namespace: artifactory
files:
- postgres-secret.yaml
- name: artifactory-keys
required: true
manifests:
- name: artifactory-keys
namespace: artifactory
files:
- join-master-key-secret.yaml
2 changes: 0 additions & 2 deletions values/registry1-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ global:
imageRegistry: registry1.dso.mil
joinKey: null
masterKey: null
joinKeySecretName: artifactory-keys
masterKeySecretName: artifactory-keys
artifactoryHaEnabled: false
imagePullSecrets:
- private-registry
Expand Down
2 changes: 0 additions & 2 deletions values/upstream-values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
global:
joinKeySecretName: artifactory-keys
masterKeySecretName: artifactory-keys
initContainerImage: registry1.dso.mil/ironbank/redhat/ubi/ubi9-minimal:9.3
artifactory:
name: artifactory
Expand Down
18 changes: 9 additions & 9 deletions zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ components:
only:
flavor: registry1
charts:
- name: uds-artifactory-config
namespace: artifactory
version: 0.1.0
localPath: chart
# renovate: bb-chart
- name: artifactory
url: https://repo1.dso.mil/big-bang/apps/third-party/jfrog-platform.git
Expand All @@ -29,10 +33,6 @@ components:
namespace: artifactory
valuesFiles:
- values/registry1-values.yaml
- name: uds-artifactory-config
namespace: artifactory
version: 0.1.0
localPath: chart
images:
- registry1.dso.mil/ironbank/jfrog/artifactory/artifactory:7.63.9
- registry1.dso.mil/ironbank/jfrog/jfrog-xray/router:7.61.1
Expand All @@ -44,19 +44,19 @@ components:
only:
flavor: upstream
charts:
- name: uds-artifactory-config
namespace: artifactory
version: 0.1.0
localPath: chart
# renovate: datasource=helm
- name: artifactory
url: https://charts.jfrog.io
version: 107.71.9
version: 107.77.7
namespace: artifactory
repoName: artifactory
releaseName: artifactory
valuesFiles:
- values/upstream-values.yaml
- name: uds-artifactory-config
namespace: artifactory
version: 0.1.0
localPath: chart
images:
- registry1.dso.mil/ironbank/jfrog/artifactory/artifactory:7.71.5
- registry1.dso.mil/ironbank/jfrog/jfrog-xray/router:7.87.0
Expand Down

0 comments on commit 2aa7ada

Please sign in to comment.