Skip to content

API: Add authorization hook - #840

Merged
roosterfish merged 2 commits into
canonical:v4from
roosterfish:auth_hook
Oct 16, 2026
Merged

roosterfish merged 2 commits into
canonical:v4from
roosterfish:auth_hook

Conversation

@roosterfish

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
…r mTLS check

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>

Copilot AI 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.

🟢 Approval recommended

No unresolved blocking issues were identified.

0 open findings

What changed in this PR

Adds a configurable authentication hook that can replace default mTLS validation for API requests.

Changes:

  • Defines the public Hooks.OnAuthenticate API.
  • Integrates the hook into HTTP request authentication.
File Summary
microcluster/​types/​hooks.go Defines the public authentication hook API.
internal/​rest/​access/​authentication.go Integrates the hook into request authentication.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@roosterfish
roosterfish marked this pull request as ready for review October 16, 2026 09:49
@roosterfish
roosterfish requested a review from a team October 16, 2026 09:49

@markylaing markylaing 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.

Nice

@roosterfish
roosterfish merged commit d35cb4a into canonical:v4 Oct 16, 2026
7 checks passed
@roosterfish
roosterfish deleted the auth_hook branch October 16, 2026 12:08
markylaing added a commit that referenced this pull request Oct 16, 2026
markylaing added a commit that referenced this pull request Oct 16, 2026
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