Add configurable log level and debug logging for access checks #41
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
qwc-open/asiakirjat!41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "add-debug-logging"
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?
Summary
Builds on the visibility feature branch (#40) and adds debug logging to help troubleshoot access issues.
server.log_levelconfig option (debug,info,warn,error) andASIAKIRJAT_LOG_LEVELenv varslog.Debuglogging throughout LDAP/OAuth2 auth sync and access-check pathsDebug logging covers:
canViewProject: logs the full decision path (why access was granted or denied)canUpload: same decision loggingUsage
Set
log_level: "debug"in config orASIAKIRJAT_LOG_LEVEL=debugand inspect stdout during LDAP/OAuth2 login.Test plan
go test ./...passeslog_level: debugand verify debug output appears on loginlog_level: info(default) and verify no debug output appearsNote: depends on #40 (includes those commits as base)
🤖 Generated with Claude Code