Pushpinder Singh 53bd413046 feat: configurable component-level logging (#575)
* Refactor logging to use centralized logger utility

- Removed direct usage of zerolog in multiple files and replaced it with a centralized logging utility in the `utils` package.
- Introduced `Loggers` struct to manage different loggers (Audit, HTTP, App) with configurable levels and outputs.
- Updated all relevant files to utilize the new logging structure, ensuring consistent logging practices across the application.
- Enhanced error handling and logging messages for better traceability and debugging.

* refactor: update logging implementation to use new logger structure

* Refactor logging to use tlog package

- Replaced instances of utils logging with tlog in various controllers, services, and middleware.
- Introduced audit logging for login success, login failure, and logout events.
- Created tlog package with structured logging capabilities using zerolog.
- Added tests for the new tlog logger functionality.

* refactor: update logging configuration in environment files

* fix: adding coderabbit suggestions

* fix: ensure correct audit caller

* fix: include reason in audit login failure logs
2026-01-15 15:57:19 +02:00
2025-12-30 18:26:57 +02:00
2025-06-06 15:27:42 +03:00
2025-12-30 18:26:57 +02:00
2025-12-30 18:26:57 +02:00
2025-12-30 18:26:57 +02:00
2025-12-22 22:13:40 +02:00
2025-02-08 12:49:45 +02:00
2025-07-17 15:15:47 +03:00
2025-12-30 18:26:57 +02:00
2025-03-23 13:07:53 +02:00
2025-12-30 18:26:57 +02:00
2025-03-09 16:52:17 +02:00
2025-01-19 15:07:23 +02:00
2025-06-15 19:48:11 +03:00

Tinyauth

Tinyauth

The simplest way to protect your apps with a login screen.

License Release Issues Tinyauth CI

Tinyauth is a simple authentication middleware that adds a simple login screen or OAuth with Google, Github or any other provider to all of your apps. It supports all the popular proxies like Traefik, Nginx and Caddy.

Screenshot

Warning

Tinyauth is in active development and configuration may change often. Please make sure to carefully read the release notes before updating.

Getting Started

You can easily get started with Tinyauth by following the guide in the documentation. There is also an available docker compose file that has Traefik, Whoami and Tinyauth to demonstrate its capabilities.

Demo

If you are still not sure if Tinyauth suits your needs you can try out the demo. The default username is user and the default password is password.

Documentation

You can find documentation and guides on all of the available configuration of Tinyauth in the website.

If you wish to contribute to the documentation head over to the repository.

Discord

Tinyauth has a discord server. Feel free to hop in to chat about self-hosting, homelabs and of course Tinyauth. See you there!

Contributing

All contributions to the codebase are welcome! If you have any free time feel free to pick up an issue or add your own missing features. Make sure to check out the contributing guide for instructions on how to get the development server up and running.

Localization

If you would like to help translate Tinyauth into more languages, visit the Crowdin page.

License

Tinyauth is licensed under the GNU General Public License v3.0. TL;DR — You may copy, distribute and modify the software as long as you track changes/dates in source files. Any modifications to or software including (via compiler) GPL-licensed code must also be made available under the GPL along with build & install instructions. For more information about the license check the license file.

Sponsors

A big thank you to the following people for providing me with more coffee:

User avatar: erwinkramer  User avatar: nicotsx  User avatar: SimpleHomelab  User avatar: jmadden91  User avatar: tribor  User avatar: eliasbenb  User avatar: afunworm  User avatar: chip-well  User avatar: Lancelot-Enguerrand  User avatar: allgoewer  User avatar: NEANC  User avatar: algorist-ahmad  

Acknowledgements

  • Freepik for providing the police hat and badge.
  • Renee French for the original gopher logo.
  • Coderabbit AI for providing free AI code reviews.
  • Syrhu for providing the background image of the app.

Star History

Star History Chart

Description
tinyauth is a simple authentication and authorization middleware plugin for Traefik
Readme GPL-3.0 19 MiB
Languages
Go 65.6%
TypeScript 30.5%
CSS 2%
Makefile 0.7%
Dockerfile 0.6%
Other 0.6%