Skip to content

feat: dex as app - #3914

Open
dennisvankekem wants to merge 4 commits into
mainfrom
APL-2244-2
Open

dennisvankekem wants to merge 4 commits into
mainfrom
APL-2244-2

Conversation

@dennisvankekem

@dennisvankekem dennisvankekem commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

console: linode/apl-console#892
api: linode/apl-api#1145
core: #3914

📌 Summary

🔍 Reviewer Notes

🧹 Checklist

  • Code is readable, maintainable, and robust.
  • Unit tests added/updated

@svcAPLBot

Copy link
Copy Markdown
Contributor

Comparison of Helm chart templating output:

# otomi-api/templates/configmap.yaml

@@ data.VERSIONS @@
! ± value change in multiline text (one insert, one deletion)
  {
    "api": "main",
    "aplCharts": "main",
    "console": "main",
    "consoleLogin": "main",
    "core": "main",
    "gitServer": "v0.3.2",
-   "specVersion": 77,
+   "specVersion": 78,
    "tasks": "main",
    "tools": "main",
    "tty": "v2.0.0"
  }

# otomi-api/templates/core-config.yaml

@@ data.core.yaml @@
! ± value change in multiline text (two inserts, no deletions)
  adminApps:
  - deps:
    - prometheus
    name: alertmanager
  
  [15 lines unchanged)]
  
    - tls
  - name: cnpg
    tags:
    - database
+ - name: dex
+   tags:
+   - auth
+   - sso
  - isShared: true
    name: tty
    ownHost: true
    tags:
  
  [190 lines unchanged)]
  
      - https://cloudnative-pg.io/plugin-barman-cloud/docs/intro/
      - https://www.postgresql.org/
      repo: https://github.com/cloudnative-pg/cloudnative-pg
      title: CloudNativePG
+   dex:
+     about: Dex is an OpenID Connect identity provider that supports authentication
+       through external identity providers.
+     appVersion: 2.46.0
+     dependencies: None
+     integration: App Platform can use Dex as its authentication provider, configured
+       through the platform OIDC settings.
+     license: Apache 2.0
+     maintainers: Dex contributors
+     relatedLinks:
+     - https://dexidp.io/docs/
+     repo: https://github.com/dexidp/dex
+     title: Dex
    external-dns:
      about: ExternalDNS synchronizes exposed Kubernetes Services and Ingresses with
        DNS providers.
      appVersion: 0.21.0
  
  [407 lines unchanged)]
  
    path: /explore?orgId=1&left=%7B"datasource":"loki","queries":%5B%7B"refId":"A","expr":"","queryType":"range","datasource":%7B"type":"loki","uid":"loki"%7D%7D%5D,"range":%7B"from":"now-1h","to":"now"%7D%7D
    useHost: grafana
  - name: tekton
    ownHost: true

# otomi-api/templates/deployment.yaml

# rabbitmq-cluster-operator/templates/messaging-topology-operator/validating-webhook-configuration.yaml

# values-repo.yaml

@@ versions.specVersion @@
! ± value change
- 77
+ 78

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the Dex app registration and configuration migration.

No open issues 🎉

What changed in this PR

This PR registers Dex as an admin app in APL Core and adds a migration to initialize its configuration without overwriting existing settings.

Changes:

  • Adds Dex to the admin app catalog with authentication metadata.
  • Introduces migration version 78, creating a disabled Dex configuration only when absent.
  • Adds migration tests and advances the fixture specification version to 78.
File Description
values-changes.yaml Registers the version 78 Dex migration.
tests/​fixtures/​env/​settings/​versions.yaml Updates the fixture specification version to 78.
src/​cmd/​migrate.ts Adds and registers the Dex configuration migration.
src/​cmd/​migrate.test.ts Tests initialization, preservation, and migration persistence.
core.yaml Lists Dex as an admin app with authentication tags.
apps.yaml Adds Dex metadata and integration details.

Review effort: Balanced

Comment thread src/cmd/migrate.ts
}
}

export const addDexApp = async (values: Record<string, any>): Promise<void> => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This migration is not necessary. Dex is already set by default to disabled.

@CasLubbers CasLubbers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the migration and the tests created for it. This will fix the build too.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants