Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(server): add auth middleware #2434

Merged
merged 10 commits into from
Sep 18, 2024
Merged

feat(server): add auth middleware #2434

merged 10 commits into from
Sep 18, 2024

Conversation

qdm12
Copy link
Owner

@qdm12 qdm12 commented Aug 23, 2024

  • Parse toml file to get authentication settings
  • Authentication http middleware
  • Log warning if an unprotected-by-default route is accessed unprotected
  • "None" authentication
  • API key authentication
  • Basic authentication
  • genkey command to generate API keys
  • Add wiki page and update warning log
  • Unit tests

@qdm12 qdm12 force-pushed the auth-middleware-2238 branch 2 times, most recently from c62c2e3 to 2302f4b Compare August 24, 2024 19:43
@qdm12 qdm12 mentioned this pull request Aug 24, 2024
2 tasks
@qdm12 qdm12 marked this pull request as ready for review August 24, 2024 19:50
@qdm12 qdm12 force-pushed the auth-middleware-2238 branch 5 times, most recently from 5e059e6 to e18147c Compare September 11, 2024 08:34
@qdm12 qdm12 added Status: 🟡 Nearly resolved This might be resolved or is about to be resolved Priority: 🚨 Urgent labels Sep 11, 2024
@qdm12 qdm12 merged commit a2e76e1 into master Sep 18, 2024
5 checks passed
@qdm12 qdm12 deleted the auth-middleware-2238 branch September 18, 2024 11:29
qdm12 added a commit that referenced this pull request Sep 29, 2024
- Parse toml configuration file, see https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/control-server.md#authentication
- Retro-compatible with existing AND documented routes, until after v3.41 release
- Log a warning if an unprotected-by-default route is accessed unprotected
- Authentication methods: none, apikey, basic
- `genkey` command to generate API keys
- move log middleware to internal/server/middlewares/log

Co-authored-by: Joe Jose <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 🚨 Urgent Status: 🟡 Nearly resolved This might be resolved or is about to be resolved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants