-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feature/add-wl #632
feature/add-wl #632
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -155,9 +155,9 @@ releases: | |||||||||||||||||||||||||||||||||||||||
chart: cozy-dashboard | ||||||||||||||||||||||||||||||||||||||||
namespace: cozy-dashboard | ||||||||||||||||||||||||||||||||||||||||
values: | ||||||||||||||||||||||||||||||||||||||||
kubeapps: | ||||||||||||||||||||||||||||||||||||||||
{{- if .Capabilities.APIVersions.Has "source.toolkit.fluxcd.io/v1" }} | ||||||||||||||||||||||||||||||||||||||||
{{- with (lookup "source.toolkit.fluxcd.io/v1" "HelmRepository" "cozy-public" "").items }} | ||||||||||||||||||||||||||||||||||||||||
kubeapps: | ||||||||||||||||||||||||||||||||||||||||
redis: | ||||||||||||||||||||||||||||||||||||||||
master: | ||||||||||||||||||||||||||||||||||||||||
podAnnotations: | ||||||||||||||||||||||||||||||||||||||||
|
@@ -168,12 +168,54 @@ releases: | |||||||||||||||||||||||||||||||||||||||
{{- end }} | ||||||||||||||||||||||||||||||||||||||||
{{- end }} | ||||||||||||||||||||||||||||||||||||||||
{{- end }} | ||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
{{- $dashboardKCconfig := lookup "v1" "ConfigMap" "cozy-dashboard" "kubeapps-auth-config" }} | ||||||||||||||||||||||||||||||||||||||||
{{- $dashboardKCValues := dig "data" "values.yaml" "" $dashboardKCconfig }} | ||||||||||||||||||||||||||||||||||||||||
{{- if $dashboardKCValues }} | ||||||||||||||||||||||||||||||||||||||||
{{- $dashboardKCValues | nindent 4 }} | ||||||||||||||||||||||||||||||||||||||||
{{- end }} | ||||||||||||||||||||||||||||||||||||||||
dashboard: | ||||||||||||||||||||||||||||||||||||||||
image: | ||||||||||||||||||||||||||||||||||||||||
registry: ghcr.io/aenix-io/cozystack | ||||||||||||||||||||||||||||||||||||||||
repository: dashboard | ||||||||||||||||||||||||||||||||||||||||
tag: v0.25.0 | ||||||||||||||||||||||||||||||||||||||||
digest: "sha256:81e7b625c667bce5fc339eb97c8e115eafb82f66df4501550b3677ac53f6e234" | ||||||||||||||||||||||||||||||||||||||||
{{- $wlConfigmap := lookup "v1" "ConfigMap" "cozy-dashboard" "white-label" }} | ||||||||||||||||||||||||||||||||||||||||
{{- $locale := dig "data" "locale" "" $wlConfigmap }} | ||||||||||||||||||||||||||||||||||||||||
{{- if $locale }} | ||||||||||||||||||||||||||||||||||||||||
customLocale: | ||||||||||||||||||||||||||||||||||||||||
"Kubeapps": {{ $locale }} | ||||||||||||||||||||||||||||||||||||||||
{{- end }} | ||||||||||||||||||||||||||||||||||||||||
Comment on lines
+177
to
+182
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Add error handling for ConfigMap lookup. The white-label ConfigMap lookup lacks error handling. If the ConfigMap doesn't exist, the template will continue silently. Add error handling: {{- $wlConfigmap := lookup "v1" "ConfigMap" "cozy-dashboard" "white-label" }}
+{{- if not $wlConfigmap }}
+ {{- fail "ERROR: white-label ConfigMap not found in cozy-dashboard namespace" }}
+{{- end }}
{{- $locale := dig "data" "locale" "" $wlConfigmap }} 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
customStyle: | | ||||||||||||||||||||||||||||||||||||||||
{{- $logoImage := dig "data" "logo" "" $wlConfigmap }} | ||||||||||||||||||||||||||||||||||||||||
{{- if $logoImage }} | ||||||||||||||||||||||||||||||||||||||||
.kubeapps-logo { | ||||||||||||||||||||||||||||||||||||||||
background-image: {{ $logoImage }} | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
{{- end }} | ||||||||||||||||||||||||||||||||||||||||
#serviceaccount-selector { | ||||||||||||||||||||||||||||||||||||||||
display: none; | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
.login-moreinfo { | ||||||||||||||||||||||||||||||||||||||||
display: none; | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
a[href="#/docs"] { | ||||||||||||||||||||||||||||||||||||||||
display: none; | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
.login-group .clr-form-control .clr-control-label { | ||||||||||||||||||||||||||||||||||||||||
display: none; | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
.appview-separator div.appview-first-row div.center { | ||||||||||||||||||||||||||||||||||||||||
display: none; | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
.appview-separator div.appview-first-row section[aria-labelledby="app-secrets"] { | ||||||||||||||||||||||||||||||||||||||||
display: none; | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
.appview-first-row section[aria-labelledby="access-urls-title"] { | ||||||||||||||||||||||||||||||||||||||||
width: 100%; | ||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||
{{- $dashboardKCconfig := lookup "v1" "ConfigMap" "cozy-dashboard" "kubeapps-auth-config" }} | ||||||||||||||||||||||||||||||||||||||||
{{- $dashboardKCValues := dig "data" "values.yaml" "" $dashboardKCconfig }} | ||||||||||||||||||||||||||||||||||||||||
{{- if $dashboardKCValues }} | ||||||||||||||||||||||||||||||||||||||||
valuesFrom: | ||||||||||||||||||||||||||||||||||||||||
- kind: ConfigMap | ||||||||||||||||||||||||||||||||||||||||
name: kubeapps-auth-config | ||||||||||||||||||||||||||||||||||||||||
valuesKey: values.yaml | ||||||||||||||||||||||||||||||||||||||||
{{- end }} | ||||||||||||||||||||||||||||||||||||||||
Comment on lines
+211
to
+218
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Add error handling for auth config ConfigMap. Similar to the white-label ConfigMap, the auth config ConfigMap lookup lacks error handling. Add error handling: {{- $dashboardKCconfig := lookup "v1" "ConfigMap" "cozy-dashboard" "kubeapps-auth-config" }}
+{{- if not $dashboardKCconfig }}
+ {{- fail "ERROR: kubeapps-auth-config ConfigMap not found in cozy-dashboard namespace" }}
+{{- end }}
{{- $dashboardKCValues := dig "data" "values.yaml" "" $dashboardKCconfig }} 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
{{- if eq $oidcEnabled "true" }} | ||||||||||||||||||||||||||||||||||||||||
dependsOn: [keycloak-configure] | ||||||||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify the image digest for security.
The dashboard image is properly configured with a digest for immutability. However, let's verify the digest against the official repository.
🏁 Script executed:
Length of output: 450
Mismatch Found: Update the Dashboard Image Digest
The digest retrieved from the official repository for the dashboard image tag
v0.25.0
is:However, the file
packages/core/platform/bundles/paas-hosted.yaml
currently specifies:Please update the digest in the YAML file to match the verified official digest.
packages/core/platform/bundles/paas-hosted.yaml
(lines 171-177)sha256:6ff65b7407e0ee4524df1591c0dc185fcaf52582bcc3d246540e380822a46d69
.