Skip to content

feat(proxy): add Basic Auth access policy credentials - #42

Merged
RentnerKev merged 1 commit into
feat/proxy-access-policiesfrom
feat/proxy-basic-auth
Sep 12, 2026
Merged

RentnerKev merged 1 commit into
feat/proxy-access-policiesfrom
feat/proxy-basic-auth

Conversation

@RentnerKev

@RentnerKev RentnerKev commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Summary

Add Basic Authentication accounts to reusable access policies. Operators can create, rename, rotate and remove up to 32 credentials per policy; configured authenticated policies enforce credentials before forwarding requests. Public hosts remain unchanged, while missing providers and combined/all policies remain closed until IP rules are implemented.

Passwords are stored as fixed-parameter Argon2id hashes. Credential APIs return metadata only, configuration previews redact hashes, and consumed Basic Auth headers are removed before forwarding. Rotation/removal use the existing reconciliation and last-known-good runtime behavior. Includes the account management UI, generated migration and concise documentation.

Related issue

Closes #30. Depends on #41; this PR is stacked on its feature branch until #28 is merged, then its base will move to main.

Type of change

  • New feature

Testing

  • bun run check: format, lint, TypeScript, Drizzle, 565 Web tests, 100 Rust tests and production builds.
  • 97 database/Redis integration tests require their services and are exercised by CI.
  • Extended real-Caddy proxy/certificate smokes cover 401/200/403, multiple users, rotation/removal, restart and rejected apply, HTTPS/redirects, WebSockets and credential exclusion. CI, CodeQL and all production smokes passed for commit 9c58d23, including PostgreSQL integration, proxy enforcement, certificates, upstream TLS and appliance backup/restore.

Checklist

  • I tested the relevant functionality.
  • Existing tests pass.
  • I added or updated tests where appropriate.
  • This PR does not include secrets, credentials, production data, or private certificates/keys. Credential fixtures are synthetic test data.
  • I updated documentation where necessary.
  • I linked the relevant issue for a feature or fix, or explained why no issue is needed.

Breaking changes

None. Existing version-7 snapshots retain their revision when Basic Auth is absent.

Screenshots

Account form interactions and permission-dependent actions are covered by automated UI tests.

@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 640ac8be-440a-418a-a56b-0b504c53e9ab

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@github-actions

Copy link
Copy Markdown

🔍 Similar pull requests

This pull request may overlap with existing work. Please take a look at these related items.

Match Pull request Status File overlap Shared linked issue
Medium #41 – feat(proxy): add reusable access policy foundation OPEN 39% —

This is an automated suggestion. No pull request has been closed or merged automatically.

@github-actions github-actions Bot added the related Related work that is not a confirmed duplicate. label Sep 11, 2026
@RentnerKev
RentnerKev merged commit 81cdda7 into feat/proxy-access-policies Sep 12, 2026
15 checks passed
@RentnerKev
RentnerKev deleted the feat/proxy-basic-auth branch September 12, 2026 06:31
RentnerKev added a commit that referenced this pull request Sep 12, 2026
* feat(proxy): add reusable access policy foundation

* fix(proxy): reject C1 controls in access policy metadata

* feat(proxy): add Basic Auth access policy credentials (#42)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

related Related work that is not a confirmed duplicate.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant