Learn about our security measures and best practices for keeping your feature flags secure.
We take security seriously. Our platform implements multiple layers of security to protect your feature flags and ensure safe access control.
Secure API keys for server-side authentication
Granular permissions for team members
Support for enterprise SSO providers
Two-factor authentication for admin accounts
Advanced protection against distributed attacks
Firewalls and network segmentation
24/7 security monitoring and alerting
Regular security patches and updates
Here's how to securely use our API:
// Initialize client with secure configuration import { MyFlagsSDK } from "@myflags/core"; const sdk = new MyFlagsSDK({ apiKey: process.env.MYFLAGS_API_KEY, projectId: process.env.MYFLAGS_PROJECT_ID, environment: process.env.NODE_ENV, refreshInterval: 60000, // Check for updates every minute secure: true // Ensure HTTPS is used }); // Use secure methods for sensitive operations const isEnabled = await sdk.getFlag("sensitive-feature"); console.log("Feature enabled:", isEnabled); // Subscribe to flag updates with proper error handling const unsubscribe = await sdk.subscribe((flags) => { console.log("Flags updated:", flags); }, (error) => { console.error("Error:", error); });