FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: refactor authentication flows inside of the webhook by ondbeh · Pull Request #225 · stackitcloud/stackit-cert-manager-webhook · GitHub

feat: refactor authentication flows inside of the webhook - #225

Merged
ondbeh merged 5 commits into
release/1.xfrom
feature/new-auth
Aug 26, 2026
Merged

feat: refactor authentication flows inside of the webhook#225
ondbeh merged 5 commits into
release/1.xfrom
feature/new-auth

Conversation

ondbeh commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

This pull request significantly improves the documentation and configuration for STACKIT Cert Manager Webhook authentication methods, making it much clearer how to set up and use dynamic, static, and Workload Identity Federation (WIF) authentication.

ondbeh added 3 commits August 25, 2026 13:38
Remove the obsolete long-live token authentication option.
Add the possibility to setup multitenant environment using SA keys per namespace.
Add the possibility to use WIF auth flow.
ondbeh requested review from fsandel and a lite review from Copilot August 25, 2026 15:41

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Pull request overview

This PR refactors how the webhook authenticates against the STACKIT DNS API by moving authentication selection into a clearer, SDK-driven flow (dynamic SA secret, static SA key path, or Workload Identity Federation), and updates documentation plus E2E/conformance test assets to reflect the new configuration surface.

Changes:

  • Introduces explicit auth-mode selection (dynamic secret, static mounted key, WIF) and constructs a preconfigured STACKIT DNS SDK client accordingly.
  • Refactors repository layer to consume a pre-initialized SDK API client via repository.Config instead of constructing clients internally.
  • Expands E2E coverage (multi-tenant dynamic SA flow) and updates docs/testdata manifests for the new auth configuration fields.

Reviewed changes

Copilot reviewed 23 out of 24 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
internal/resolver/resolver.go Builds STACKIT SDK client based on auth mode and passes it via repository config.
internal/resolver/config.go Updates solver config schema (new SA/WIF fields) and auth-mode determination logic.
internal/resolver/resolver_test.go Restructures resolver test suites and adds auth-mode selection coverage.
internal/resolver/config_test.go Updates config-provider tests for new fields and namespace-file handling.
internal/repository/config.go Simplifies repository config to ProjectId + prebuilt ApiClient.
internal/repository/zone_repository.go Uses Config.ApiClient directly and errors if missing.
internal/repository/zone_repository_test.go Updates tests to build a test API client via SDK config options.
internal/repository/rrset_repository.go Uses Config.ApiClient and adjusts DeleteRRSet error handling/return.
internal/repository/rrset_repositry_test.go Updates RRSet tests to use a prebuilt SDK client.
internal/repository/dns_client.go Removes internal DNS client-construction helpers (now done in resolver).
README.md Rewrites authentication documentation into Dynamic / Static / WIF options and updates test procedure docs.
deploy/stackit/values.yaml Clarifies Helm values for static SA mount and WIF annotations.
deploy/stackit/README.md Regenerates chart README/values table and bumps chart/app version badge.
testdata/stackit/config.json Updates example solver config to dynamic secret fields.
testdata/stackit/secret.yaml.example Updates example secret structure to SA JSON key field.
testdata/stackit/README.md Updates instructions for generating/applying the example secret.
e2e_test/README.md Updates conformance test docs to use secret-based SA key setup.
Makefile Adjusts conformance target env usage and adds namespace/secret creation for multi-tenant E2E.
cmd/webhook/main.go Minor formatting-only change in transport settings.
tests/e2e/test-suite/wildcard-certificate/00-issuer-cert.yaml Switches wildcard test Issuer to ClusterIssuer and updates references.
tests/e2e/test-suite/dynamic-sa-auth/00-issuer-cert.yaml Adds multi-tenant dynamic-SA Issuer+Certificate resources for E2E.
tests/e2e/test-suite/dynamic-sa-auth/00-assert.yaml Adds assertions that dynamic-SA certificates become Ready.
tests/e2e/test-suite/dynamic-sa-auth/01-delete.yaml Adds delete step for dynamic-SA certificates.
tests/e2e/test-suite/dynamic-sa-auth/01-assert.yaml Adds DNS TXT record deletion assertions after cleanup.
Suppressed comments (1)

README.md:90

  • This YAML example uses a Markdown link for server: which is not valid YAML and can't be copy/pasted into a ClusterIssuer. Use the raw URL string instead.
     acme:
       server: [https://acme-v02.api.letsencrypt.org/directory](https://acme-v02.api.letsencrypt.org/directory)
       email: example@example.com

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

Comment thread internal/resolver/config.go Outdated
Comment thread README.md
Comment thread internal/resolver/resolver_test.go Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
ondbeh requested a lite review from Copilot August 25, 2026 16:37

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

ondbeh merged commit 53f84f1 into release/1.x Aug 26, 2026
4 checks passed
ondbeh deleted the feature/new-auth branch August 26, 2026 08:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL