Back to Home
featbit icon

featbit-front-agent

by featbit

Overview

This server acts as a Node.js proxy agent for the FeatBit feature flag system, allowing client-side SDKs to evaluate feature flags and send insights without direct communication with the FeatBit backend.

Installation

Run Command
npm start

Environment Variables

  • FEATBIT_EVENTS_URL
  • FEATBIT_STREAMING_URL
  • FEATBIT_TLS_REJECT_UNAUTHORIZED
  • AGENT_PORT
  • AGENT_SECRET
  • HEARTBEAT_INTERVAL
  • CUSTOM_CLIENT_SDK_HEADERS
  • CUSTOM_CLIENT_SDK_PARAMS
  • FEATBIT_ALL_FEATURE_FLAGS_URL

Security Notes

The server utilizes `eval()` extensively in its feature flag evaluation logic (`src/utils/index.js`, `src/core/flags_engine.js`) to execute rules and variations received from the FeatBit backend. This poses a critical security risk as it allows arbitrary JavaScript code execution on the server if the FeatBit backend is compromised or if the data stream containing flag rules is tampered with. No obvious sandboxing mechanisms (like Node.js `vm` module) are in place to mitigate this vulnerability, potentially leading to remote code execution.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassLow
Avg Tokens50
Stars0
Forks0
Last Update2026-01-19

Tags

Feature FlagsNode.jsProxySDK AgentWebSockets