shardpaths

package
v0.32.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package shardpaths declares the set of HTTP paths that are served by a shard (or the cache server) as shard-wide resources and must not be reachable via a workspace-scoped URL such as /clusters/<ws>/<path> or /services/cache/shards/<sh>/clusters/<ws>/<path>.

Index

Constants

This section is empty.

Variables

View Source
var Paths = sets.New(
	"/metrics",
)

Paths enumerates the URL paths that are shard-level only. The filters in pkg/server/filters and pkg/cache/server reject any workspace-scoped request targeting one of these paths, and scope a top-level request to the root workspace for RBAC evaluation.

Note: /livez, /readyz, /healthz are intentionally NOT in this set. They must remain accessible via /clusters/<ws>/{healthz,...} so that authorized in-workspace clients can probe shard liveness without bypassing workspace scoping for everything else they do. Their workspace-scoped form returns the same process-level result as the bare URL; nothing leaks.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL