Skip to content

Protect workflow UI with Authelia#79

Merged
sidey79 merged 16 commits into
mainfrom
feature/authelia-workflow-protection
Mar 22, 2026
Merged

Protect workflow UI with Authelia#79
sidey79 merged 16 commits into
mainfrom
feature/authelia-workflow-protection

Conversation

@sidey79

@sidey79 sidey79 commented Mar 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Keep the GitHub webhook /webhook/github-pr-dashboard reachable directly
  • Protect the browser-facing n8n UI on workflow.* with Authelia forward auth
  • Document the split behavior in the README

Notes

  • mTLS is still enforced for the non-webhook workflow paths
  • I could not run caddy validate locally because caddy is not installed in this environment

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2f259ac3fa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Caddyfile Outdated
@sidey79

sidey79 commented Mar 20, 2026

Copy link
Copy Markdown
Owner Author

@codex Review this pr again

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c2532f7590

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Caddyfile Outdated
@sidey79

sidey79 commented Mar 21, 2026

Copy link
Copy Markdown
Owner Author

@codex

Es gibt einen Fehler im Caddyfile:

file","file":"/work/Caddyfile"}
Error: adapting config using caddyfile: matcher is defined more than once: @githubPrDashboardUi

Bitte korrigiere diesen Fehler.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create an environment for this repo.

@sidey79

sidey79 commented Mar 21, 2026

Copy link
Copy Markdown
Owner Author

@codex die Umgebung ist angelegt

@sidey79

sidey79 commented Mar 21, 2026

Copy link
Copy Markdown
Owner Author

@codex

Es gibt einen Fehler im Caddyfile:

file","file":"/work/Caddyfile"}
Error: adapting config using caddyfile: matcher is defined more than once: @githubPrDashboardUi

Bitte korrigiere diesen Fehler.

@chatgpt-codex-connector

Copy link
Copy Markdown

Summary

  • Fixed the Caddy adaptation error by removing the duplicate route-scoped @githubPrDashboardUi matcher from the workflow.* site block, so that block now keeps only the imported matcher definition. CaddyfileL215-L232
  • Kept githubPrDashboardUi_base as the single source of truth for the GitHub PR dashboard UI path/method matcher, which is what the route-level matcher now imports. CaddyfileL90-L97 CaddyfileL227-L232
  • Committed the change on the current branch as 4b04b87 with message Fix duplicate GitHub dashboard matcher, and created a follow-up PR entry summarizing the fix.

Testing

  • python - <<'PY'\nfrom pathlib import Path\nlines = Path('Caddyfile').read_text().splitlines()\ninside = False\ncount = 0\nfor line in lines:\n if line.startswith('workflow.{$CADDY_SUBDOMAIN} {'):\n inside = True\n continue\n if inside and line == '}':\n break\n if inside and line.strip() == '@githubPrDashboardUi {':\n count += 1\nprint(f'workflow_matcher_definitions={count}')\nPY — confirmed workflow_matcher_definitions=1.
  • ⚠️ which caddy || truecaddy is not installed in this environment, so I could not run caddy validate.

View task →

@sidey79
sidey79 force-pushed the feature/authelia-workflow-protection branch from c95d6fc to b5c4f1b Compare March 21, 2026 18:11
@sidey79
sidey79 force-pushed the feature/authelia-workflow-protection branch from 9a23a8e to 3db9b9d Compare March 21, 2026 22:49
@sidey79
sidey79 merged commit ff80f96 into main Mar 22, 2026
2 checks passed
@sidey79
sidey79 deleted the feature/authelia-workflow-protection branch March 22, 2026 12:06
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.

1 participant