Improve logs for APE checking #1574
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1574
Loading…
Add table
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?
Is your feature request related to a problem? Please describe.
Sometime storage node returns
Access Denied
after APE checking and we not always can understand what goes wrong.We can know what policies presence in system with
frostfs-adm morph ape list-rule-chains
but we don't know what request be checked in APE.Describe the solution you'd like
Add debug logs here for example
and in any other similar places.
Something like in s3-gw
reqLogOrDefault(r.Context(), cfg.Log).Debug(logs.PolicyRequest, zap.String("action", op),
zap.String("resource", res), zap.Any("request properties", requestProps),
zap.Any("resource properties", resourceProps))
Describe alternatives you've considered
Hide such debug logs behind tags
Additional context
Having such additional logs could help understand the reason of #1572 faster
I suggest extending
ChainRouterError
with target and use it in stringified representation.