reva-bump-2.42.3 (#2276)

This commit is contained in:
Viktor Scharf
2026-02-05 16:51:58 +01:00
committed by GitHub
parent 2bf70a6f70
commit 1e432b717e
4 changed files with 10 additions and 6 deletions
@@ -21,6 +21,7 @@ package auth
import (
"context"
"fmt"
"path/filepath"
"strings"
"time"
@@ -283,8 +284,11 @@ func checkIfNestedResource(ctx context.Context, ref *provider.Reference, parent
return false, statuspkg.NewErrorFromCode(pathResp.Status.Code, "auth interceptor")
}
childPath := pathResp.Path
return strings.HasPrefix(childPath, parentPath), nil
rel, err := filepath.Rel(parentPath, childPath)
if err != nil {
return false, err
}
return !strings.HasPrefix(rel, ".."), nil
}
func extractRefFromListProvidersReq(v *registry.ListStorageProvidersRequest) (*provider.Reference, bool) {