Skip to content

Convert ENCRYPTION_STRICT_MODE (option.Config.EnableEncryptionStrictMode) to load-time config #42655

@rgo3

Description

@rgo3

Convert this macro to use DECLARE_CONFIG or NODE_CONFIG for runtime configuration.

Current definition location: pkg/datapath/linux/config/config.go:240-262

if option.Config.EnableEncryptionStrictMode {
    cDefinesMap["ENCRYPTION_STRICT_MODE"] = "1"
}

BPF usage: Used to enforce strict encryption mode where all traffic must be encrypted

Configuration source: option.Config.EnableEncryptionStrictMode

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/datapathImpacts bpf/ or low-level forwarding details, including map management and monitor messages.area/encryptionImpacts encryption support such as IPSec, WireGuard, or kTLS.area/loaderImpacts the loading of BPF programs into the kernel.kind/enhancementThis would improve or streamline existing functionality.staleThe stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions