Skip to content

[management] chores: update dex version#6124

Merged
jnfrati merged 2 commits into
mainfrom
chores/update-dex-version
May 12, 2026
Merged

[management] chores: update dex version#6124
jnfrati merged 2 commits into
mainfrom
chores/update-dex-version

Conversation

@jnfrati

@jnfrati jnfrati commented May 12, 2026

Copy link
Copy Markdown
Contributor

Describe your changes

With the MFA PR #5804 there was an update on the Dex package which was causing the server to fail while trying to load the idp password table

netbird-server     | 2026-05-12T09:21:56.077Z FATL management/internals/server/boot.go:115: failed to create API handler: failed to create instance manager: failed to list users: select password: sql: Scan error on column index 5, name "groups": expected []byte got string

The merged PR netbirdio/dex#5 on our Dex fork fixes this issue by introducing an extra migration and some validation guardrails to make sure there aren't issues trying to parse this field


This pull request updates the Dex package to a version where this issue is no longer present

Issue ticket number and link

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

Summary by CodeRabbit

  • Chores
    • Updated Go module replace directives for Dex packages to newer pseudo-version identifiers, refreshing dependency references.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Go module replace directives for github.com/dexidp/dex and github.com/dexidp/dex/api/v2 were updated to newer github.com/netbirdio/dex pseudo-versions with a 20260512 timestamp.

Changes

Dex Dependency Update

Layer / File(s) Summary
Dex module replace directives
go.mod
Replace directives for github.com/dexidp/dex and github.com/dexidp/dex/api/v2 updated to github.com/netbirdio/dex v0.244.1-0.20260512110716-8d70ad8647c1 and github.com/netbirdio/dex/api/v2 v2.0.0-20260512110716-8d70ad8647c1 respectively.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

Suggested reviewers

  • mlsmaycon
  • bcmmbaga

Poem

🐰 A hop to go.mod, a tweak in the breeze,
Dex finds new feathers with timestamps to please,
Tiny lines changed, the build hums along,
A rabbit's small cheer in a short, happy song! 🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description includes all required sections: changes explained with context, checklist completed appropriately, and documentation status documented.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title mentions updating the dex version but lacks specificity about the bug fix context; however, it accurately reflects the main change in go.mod.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chores/update-dex-version

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@go.mod`:
- Around line 344-346: Update the PR description to explicitly state that the
dex replacement (github.com/dexidp/dex => github.com/netbirdio/dex at commit
a1d4a044de6e / v0.244.1-0.20260512090214-a1d4a044de6e and
github.com/dexidp/dex/api/v2 => github.com/netbirdio/dex/api/v2
v2.0.0-20260512090214-a1d4a044de6e) includes a fix for SQLite text password
groups handling; then run and confirm tests in the netbird codebase that
exercise authentication with SQLite-backed dex (unit tests, integration tests,
and a manual auth flow using SQLite DB) and add a short confirmation note in the
PR describing which tests were run and their results.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6df14670-f445-4a78-8c3e-9383fdfd6cab

📥 Commits

Reviewing files that changed from the base of the PR and between 946ce4c and ab3c0e4.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (1)
  • go.mod

Comment thread go.mod Outdated
Comment on lines +344 to +346
replace github.com/dexidp/dex => github.com/netbirdio/dex v0.244.1-0.20260512090214-a1d4a044de6e

replace github.com/dexidp/dex/api/v2 => github.com/netbirdio/dex/api/v2 v2.0.0-20260415145816-a0c6b40ff9f2
replace github.com/dexidp/dex/api/v2 => github.com/netbirdio/dex/api/v2 v2.0.0-20260512090214-a1d4a044de6e

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.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Description: Verify the dex commit exists and check what changes are included

# Check if the commit exists in netbirdio/dex
echo "=== Checking if commit a1d4a044de6e exists in netbirdio/dex ==="
gh api repos/netbirdio/dex/commits/a1d4a044de6e --jq '.sha, .commit.message, .commit.author.date' 2>&1 || echo "Commit not found or API error"

echo ""
echo "=== Comparing with previous commit a0c6b40ff9f2 ==="
gh api repos/netbirdio/dex/compare/a0c6b40ff9f2...a1d4a044de6e --jq '.commits[] | {sha: .sha, message: .commit.message, date: .commit.author.date}' 2>&1 || echo "Comparison failed or API error"

Repository: netbirdio/netbird

Length of output: 423


Update PR description and confirm testing for SQLite password groups fix.

The updated dex commit fixes SQLite text password groups handling. Please update the PR description to document this fix and confirm it has been tested with the netbird codebase.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@go.mod` around lines 344 - 346, Update the PR description to explicitly state
that the dex replacement (github.com/dexidp/dex => github.com/netbirdio/dex at
commit a1d4a044de6e / v0.244.1-0.20260512090214-a1d4a044de6e and
github.com/dexidp/dex/api/v2 => github.com/netbirdio/dex/api/v2
v2.0.0-20260512090214-a1d4a044de6e) includes a fix for SQLite text password
groups handling; then run and confirm tests in the netbird codebase that
exercise authentication with SQLite-backed dex (unit tests, integration tests,
and a manual auth flow using SQLite DB) and add a short confirmation note in the
PR describing which tests were run and their results.

@github-actions

github-actions Bot commented May 12, 2026

Copy link
Copy Markdown

Release artifacts

Built for PR head c522992 in workflow run #15037.

Artifact Link
All release artifacts Download
Linux packages Download
Windows packages Download
macOS packages Download
UI artifacts Download
UI macOS artifacts Download

GHCR images (amd64)

This comment is updated by the Release workflow. Artifact links expire according to the workflow retention policy.

mlsmaycon
mlsmaycon previously approved these changes May 12, 2026
@sonarqubecloud

Copy link
Copy Markdown

@mlsmaycon mlsmaycon changed the title chores: update dex version [management] chores: update dex version May 12, 2026
@jnfrati jnfrati merged commit 96672dd into main May 12, 2026
47 of 50 checks passed
@jnfrati jnfrati deleted the chores/update-dex-version branch May 12, 2026 11:50
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.

2 participants