shardpaths

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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