No description
- Go 89.1%
- Makefile 8.3%
- Dockerfile 2.6%
* chore(deps): bump actions/setup-go to v7 Self-hosted CI workflows. * ci: setup-go v7 + cache false |
||
|---|---|---|
| .github | ||
| cmd/module | ||
| deploy | ||
| internal | ||
| test | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .golangci.yml | ||
| CHANGELOG.md | ||
| COMPATIBILITY.md | ||
| CONTRIBUTING.md | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| muxcore.json | ||
| README.md | ||
| SECURITY.md | ||
Feature Flags File
YAML file-backed feature flag provider with SIGHUP reload.
A MuxCore sidecar module that serves feature flags from a local YAML file (IsEnabled / GetVariant). Send SIGHUP to reload without restart. Provides the feature.flags capability (FeatureFlagProvider).
How It Works
Module request ──→ feature-flags-file (gRPC) ──→ flags.yaml
↑
SIGHUP reload
Missing flags fall back to the caller-supplied default value.
flags.yaml format
my-feature:
default: true
variant: "on"
experiment-a:
default: false
variant: "control"
Configuration
| Setting | Default | Description |
|---|---|---|
FEATURE_FLAGS_FILE (env) |
flags.yaml |
Path to YAML feature-flag file |
| gRPC listen | :9402 |
Feature-flags gRPC address |
| HTTP listen | :9404 |
Health endpoint (GET /health) |
Quick Start
make build
export MUXCORE_INSECURE_DISABLE_TLS=true
./feature-flags-file --muxcore-mesh-addr localhost:9090
Capability
feature.flags — File-backed feature flags (FeatureFlagProvider)
License
GPL-3.0