mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-13 17:09:07 +02:00
[proxy] Enforce per-target HTTP access actions (#8115)
Apply target access before service authentication: inherit, bypass, or block. Keep route selection and auth decisions on the same snapshot; reject stale or unavailable required middleware. Validation: full auth/proxy race tests and scoped lint passed. Runtime regression tests remain with this layer.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -105,6 +105,12 @@ enum PathRewriteMode {
|
||||
PATH_REWRITE_PRESERVE = 1;
|
||||
}
|
||||
|
||||
enum TargetAccessAction {
|
||||
TARGET_ACCESS_ACTION_INHERIT = 0;
|
||||
TARGET_ACCESS_ACTION_BYPASS = 1;
|
||||
TARGET_ACCESS_ACTION_BLOCK = 2;
|
||||
}
|
||||
|
||||
message PathTargetOptions {
|
||||
bool skip_tls_verify = 1;
|
||||
google.protobuf.Duration request_timeout = 2;
|
||||
@@ -178,6 +184,7 @@ message PathMapping {
|
||||
string path = 1;
|
||||
string target = 2;
|
||||
PathTargetOptions options = 3;
|
||||
TargetAccessAction access_action = 4;
|
||||
}
|
||||
|
||||
message HeaderAuth {
|
||||
|
||||
Reference in New Issue
Block a user