-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Version
v4.38.17
Deployment Method
Bare-metal
Reverse Proxy
NGINX
Reverse Proxy Version
1.26.2
Description
The logging statement here does not work properly since the tls.Config structure contains a function, which is not able to be converted to JSON.
Reproduction
Set log.level
to "trace", and add an SMTP notifier.
Expectations
The log message should print to the configured log location, containing the logged data.
Configuration (Authelia)
No response
Build Information
Last Tag: v4.38.17
State: tagged clean
Branch: v4.38.17
Commit: unknown
Build Number: 0
Build OS: linux
Build Arch: amd64
Build Compiler: gc
Build Date:
Extra: nixpkgs
Go:
Version: go1.23.3
Module Path: github.com/authelia/authelia/v4
Executable Path: github.com/authelia/authelia/v4/cmd/authelia
Logs (Authelia)
Jan 04 20:58:18 spectre systemd[1]: Started Authelia authentication and authorization server.
Jan 04 20:58:18 spectre authelia[1231876]: time="2025-01-04T20:58:18-06:00" level=debug msg="Loaded Configuration Sources" caller="github.com/authelia/authelia/v4/internal/commands/context.go:266 (*CmdCtx).LogConfigure" files="[/nix/store/j94fw4m2a3iy239ww988x18z5bgk1lyr-config.yml /nix/store/mnl9zyzcxfvm72a9bz2jvkaarsrw4x5d-oidc-jwks.yaml]" filters="[template]"
Jan 04 20:58:18 spectre authelia[1231876]: time="2025-01-04T20:58:18-06:00" level=debug msg="Logging Initialized" caller="github.com/authelia/authelia/v4/internal/commands/context.go:267 (*CmdCtx).LogConfigure" fields.level=trace file= format=json keep_stdout=false
Jan 04 20:58:18 spectre authelia[1231876]: time="2025-01-04T20:58:18-06:00" level=debug msg="Process user information" caller="github.com/authelia/authelia/v4/internal/commands/context.go:307 (*CmdCtx).LogProcessCurrentUserRunE" gid=981 uid=982 username=authelia-main
Jan 04 20:58:18 spectre authelia[1231876]: time="2025-01-04T20:58:18-06:00" level=info msg="Authelia v4.38.17-nixpkgs is starting" caller="github.com/authelia/authelia/v4/internal/commands/root.go:62 (*CmdCtx).RootRunE"
Jan 04 20:58:18 spectre authelia[1231876]: time="2025-01-04T20:58:18-06:00" level=info msg="Log severity set to trace" caller="github.com/authelia/authelia/v4/internal/logging/logger.go:93 setLevelStr"
Jan 04 20:58:18 spectre authelia[1231876]: {"caller":{"File":"github.com/authelia/authelia/v4/internal/utils/crypto.go","Line":350,"Name":"NewX509CertPool"},"level":"trace","msg":"Starting scan of directory for certificates","time":"2025-01-04T20:58:18-06:00"}
Jan 04 20:58:18 spectre authelia[1231876]: {"caller":{"File":"github.com/authelia/authelia/v4/internal/authentication/ldap_user_provider_startup.go","Line":94,"Name":"(*LDAPUserProvider).parseDynamicUsersConfiguration"},"level":"trace","msg":"Dynamically generated users filter is (\u0026(|(uid={input})(mail={input}))(objectClass=person))","time":"2025-01-04T20:58:18-06:00"}
Jan 04 20:58:18 spectre authelia[1231876]: {"caller":{"File":"github.com/authelia/authelia/v4/internal/authentication/ldap_user_provider_startup.go","Line":120,"Name":"(*LDAPUserProvider).parseDynamicUsersConfiguration"},"level":"trace","msg":"Dynamically generated users BaseDN is ou=people,dc=example,dc=com","time":"2025-01-04T20:58:18-06:00"}
Jan 04 20:58:18 spectre authelia[1231876]: {"caller":{"File":"github.com/authelia/authelia/v4/internal/authentication/ldap_user_provider_startup.go","Line":138,"Name":"(*LDAPUserProvider).parseDynamicUsersConfiguration"},"level":"trace","msg":"Detected user filter replacements that need to be resolved per lookup are: {input}=true","time":"2025-01-04T20:58:18-06:00"}
Jan 04 20:58:18 spectre authelia[1231876]: {"caller":{"File":"github.com/authelia/authelia/v4/internal/authentication/ldap_user_provider_startup.go","Line":159,"Name":"(*LDAPUserProvider).parseDynamicGroupsConfiguration"},"level":"trace","msg":"Dynamically generated groups BaseDN is ou=groups,dc=example,dc=com","time":"2025-01-04T20:58:18-06:00"}
Jan 04 20:58:18 spectre authelia[1231876]: {"caller":{"File":"github.com/authelia/authelia/v4/internal/authentication/ldap_user_provider_startup.go","Line":181,"Name":"(*LDAPUserProvider).parseDynamicGroupsConfiguration"},"level":"trace","msg":"Detected group filter replacements that need to be resolved per lookup are: input=false, username=false, dn=true","time":"2025-01-04T20:58:18-06:00"}
Jan 04 20:58:18 spectre authelia[1231876]: {"caller":{"File":"github.com/authelia/authelia/v4/internal/notification/smtp_notifier.go","Line":41,"Name":"NewSMTPNotifier"},"level":"trace","msg":"Configuring with Explicit TLS","provider":"notifier","time":"2025-01-04T20:58:18-06:00"}
Jan 04 20:58:18 spectre authelia[1231876]: Failed to obtain reader, failed to marshal fields to JSON, json: unsupported type: func() time.Time
J
Logs (Proxy / Application)
No response
Documentation
No response
Generative AI
No
Pre-Submission Checklist
-
I agree to follow the Code of Conduct
-
This is a bug report and not a support request
-
I have read the security policy and this bug report is not a security issue or security related issue
-
I have either included the complete configuration file or I am sure it's unrelated to the configuration
-
I have either included the complete debug / trace logs or the output of the build-info command if the logs are not relevant
-
I have provided all of the required information in full with the only alteration being reasonable sanitization in accordance with the Troubleshooting Sanitization reference guide
-
I have checked for related proxy or application logs and included them if available
-
I have checked for related issues and checked the documentation