Files
seaweedfs/weed
Chris Lu 00c37387db refactor(sts): add explicit zero-time expiration handling
Improved defensive programming in IsExpired() methods:

1. Credentials.IsExpired():
   - Added explicit check for zero-time expiration (time.Time{})
   - Treats uninitialized credentials as expired
   - Prevents accidentally treating uninitialized creds as valid

2. SessionInfo.IsExpired():
   - Added same explicit zero-time check
   - Treats uninitialized sessions as expired
   - Protects against bugs where sessions might not be properly initialized

This is important because time.Now().After(time.Time{}) returns true,
but explicitly checking for zero time makes the intent clear and helps
catch initialization bugs during code review and debugging.
2026-01-02 21:20:05 -08:00
..
2025-10-13 18:05:17 -07:00
2025-12-31 13:40:14 -08:00
2024-06-25 09:18:11 -07:00
2024-02-14 08:26:38 -08:00
2026-01-01 19:20:59 -08:00
2026-01-01 20:39:22 -08:00