Skip to content

Fix/9567 authentik auth url - #3

Open
deepshekhardas wants to merge 3 commits into
mainfrom
fix/9567-authentik-auth-url
Open

deepshekhardas wants to merge 3 commits into
mainfrom
fix/9567-authentik-auth-url

Conversation

@deepshekhardas

@deepshekhardas deepshekhardas commented Apr 6, 2026 •

Copy link
Copy Markdown
Owner

What does this PR do?

(Provide a description of what this PR does and why it's needed.)

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)

Related PRs and Issues

  • (Related PR or issue)

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

Summary by cubic

Adds custom HTTP headers to webhooks and fixes the Authentik login by adding a trailing slash to the authorize URL. This enables extra delivery headers and resolves the Authentik redirect issue (fixes appwrite#9567).

  • New Features

    • Adds headers to webhook create/update APIs (up to 10 Key: Value strings); stored encrypted and exposed in the webhook model.
    • Sends custom headers with deliveries while preventing overrides of default Appwrite headers.
  • Bug Fixes

Written for commit 9cbe2c8. Summary will update on new commits.

@cubic-dev-ai cubic-dev-ai 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.

1 issue found across 5 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="app/config/collections/platform.php">

<violation number="1" location="app/config/collections/platform.php:978">
P1: Webhook custom headers are stored without encryption, which can expose secrets (e.g., Authorization/API keys) at rest.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread app/config/collections/platform.php Resolved
@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown

✨ Benchmark results

  • Requests per second: 1,155
  • Requests with 200 status code: 207,970
  • P99 latency: 0.172451651

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 1,155 1,371
200 207,970 246,819
P99 0.172451651 0.151112374

Webhook custom headers can contain sensitive data like API keys and
Authorization tokens. Add 'encrypt' filter to protect this data at rest.
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.

🐛 Bug Report: Wrong authentik auth URL

1 participant