rad-sync
Overview
The rad-sync plugin synchronizes Kubernetes resources and configurations with RAD Security, ensuring that your security platform has up-to-date information about your cluster’s state, policies, and configurations.How It Works
The rad-sync plugin operates as a Kubernetes controller that:- Resource Discovery: Automatically discovers Kubernetes resources across namespaces
- Configuration Sync: Synchronizes RBAC policies, network policies, and security configurations
- State Monitoring: Tracks changes to cluster state and security posture
- Data Transmission: Securely transmits data to RAD Security for analysis
Synchronized Resources
The plugin synchronizes the following Kubernetes resources:- RBAC Resources: Roles, RoleBindings, ClusterRoles, ClusterRoleBindings
- Network Policies: NetworkPolicy resources and their configurations
- Security Contexts: Pod security contexts and security policies
- Service Accounts: Service account configurations and bindings
- ConfigMaps: Security-related configuration data
- Secrets: Security-related secrets (metadata only)
Configuration
The RAD Sync component has configurable parameters:| Environment Variable | Default Value | Description |
|---|---|---|
| SYNC_INTERVAL | 5m | Interval between synchronization cycles |
| BATCH_SIZE | 100 | Number of resources to process per batch |
| ENABLE_RBAC_SYNC | true | Enable RBAC resource synchronization |
| ENABLE_NETWORK_SYNC | true | Enable network policy synchronization |
| ENABLE_SECRET_SYNC | false | Enable secret metadata synchronization |
Security Considerations
- Read-Only Access: The plugin only reads Kubernetes resources, never modifies them
- Data Privacy: Sensitive data is filtered and only metadata is transmitted
- Encryption: All data transmission is encrypted in transit
- RBAC: Uses minimal required permissions for resource access
Troubleshooting
Common Issues
- Permission Denied: Ensure the plugin has necessary RBAC permissions
- Sync Failures: Check network connectivity to RAD Security API
- Resource Limits: Monitor memory usage for large clusters
Monitoring
The plugin exposes metrics for monitoring:rad_sync_resources_total- Total resources synchronizedrad_sync_duration_seconds- Synchronization durationrad_sync_errors_total- Number of synchronization errors