ownerScoped fails open on SiteStatus error #665
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
thwap/thwap-pagesd#665
Loading…
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?
sitesHandler.ownerScoped(internal/httpapi/sites.go) returnstrue(access granted) whenh.sites.Status()errors. PR #661 introduces docker-dependent error paths inService.Status(reporter errors other than container-not-found propagate), so in standalone mode a docker daemon outage causesStatus()to fail andownerScopedto grant access. The/deploymentsendpoint then returns deployment metadata (including commit SHAs) without the owner check.Recommend
ownerScopedfail closed when status cannot be determined, and/or degrade gracefully inService.Status(log reporter errors and leavecontainer_statusunset).Ref: #661