mirror of
https://github.com/chr0nzz/traefik-manager.git
synced 2026-05-09 05:35:22 +02:00
[GH-ISSUE #37] Clicking "Save Middleware" from a Basic Auth template does nothing #32
Labels
No labels
bug
bug
bug
feature request
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/traefik-manager#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Axavis on GitHub (May 4, 2026).
Original GitHub issue: https://github.com/chr0nzz/traefik-manager/issues/37
Originally assigned to: @chr0nzz on GitHub.
Traefik Manager version
V1.0.0
How are you running Traefik Manager?
Docker
Traefik version
v3.6.12
What happened?
Adding a new middleware based on the Basic Auth template produces no response when clicking the "Save Middleware" button.
Steps to reproduce
What did you expect to happen?
To have the middleware saved and available in the webgui
Relevant logs or screenshots
Relevant configuration
@chr0nzz commented on GitHub (May 4, 2026):
To confirm: are you accessing TM directly at http://truenas-ip:5000 or through a different URL? And do you have COOKIE_SECURE=true set?
A fix in the next patch will also make this failure show a clear "Session expired - please refresh" message instead of silently doing nothing.
@Axavis commented on GitHub (May 4, 2026):
Yes, I'm accessing the webgui at http://truenas-ip:5000 and COOKIE_SECURE=true is set.
@chr0nzz commented on GitHub (May 4, 2026):
u need to set it to false when accessing via http
@akanealw commented on GitHub (May 5, 2026):
I realized I should have posted that other log here as it's more relevant but I did another clean setup to test and saw the error below in the traefik logs.
@chr0nzz commented on GitHub (May 5, 2026):
Your Traefik logs show the real problem - ignore the CSRF angle for now:
ERR Error while building configuration error="middlewares cannot be a standalone element"
Your dynamic config file has middlewares: at the root level. Traefik v3 requires it nested under http::
Open your dynamic.yml and fix the structure. Once Traefik accepts the config file, everything should work normally.
@akanealw commented on GitHub (May 5, 2026):
I didn't create the dynamic.yml file, the set up script did.
@chr0nzz commented on GitHub (May 5, 2026):
Sounds like something modified your dynamic.yml after the setup script created it. Can you open the file and check if middlewares: is sitting at the top level instead of inside http:? Once you can see what's in there it'll be easy to fix.
@akanealw commented on GitHub (May 5, 2026):
dynamic.yml after script install and before bringing up the first time.
brought up with this error in the logs as before
dynamic.yml is the same as before untill I went through the setup process and the results were
which looks right but restarting traefk and traefik manager give the same error as before in traefik and i'm not able to save a middleware in the gui.
file permissions
@anoniuuiti commented on GitHub (May 5, 2026):
happen to stop by and had a try on creating new middleware via gui, https (behind traefik) and had COOKIE_SECURE set to "true. Unable to save a middleware and no logs could be observed in traefik-manager logs. No clue...
@chr0nzz commented on GitHub (May 5, 2026):
please update to the latest and report back if your issue is fixed
@akanealw commented on GitHub (May 5, 2026):
latest 1.0.3 is working now for me. thanks!
@Axavis commented on GitHub (May 5, 2026):
Updating to build 1.0.3 and setting COOKIE_SECURE=true fixed the issue for me! Thank you for your continued work on this. The webgui is very intuitive and easy to use. :)