ape: Move common APE check logic to separate package #1362
No reviewers
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1362
Loading…
Reference in a new issue
No description provided.
Delete branch "aarifullin/frostfs-node:feat/ape/object_tree_refactor"
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?
e096626b1b
to6e8ea93af1
@ -149,2 +87,2 @@
// it to chain router.
func (c *checkerImpl) CheckAPE(ctx context.Context, prm Prm) error {
// PrepareAndCheck prepares an APE-request and checks if it is permitted by policies.
func (c *checkerImpl) PrepareAndCheck(ctx context.Context, prm Prm) error {
Did we have any problem with the old name?
The changes in security function should be minimal.
This is not a problem, but here is some name duplication that's not obvious. Anyway, I returned this name back and introduced
CheckCore
interface with the same method6e8ea93af1
todce78c92a6
WIP: [#XX] ape: Move common APE check logic to separate packageto ape: Move common APE check logic to separate package@ -7,1 +5,3 @@
type Checker interface {
// CheckAPE checks if a request or a response is permitted creating an ape request and passing
// it to chain router.
type ObjectServiceAPE interface {
Again, why introduce unnecessary changes?
Okay, the name has been returned back
dce78c92a6
to92b29d06bb
92b29d06bb
toe705e68310