docs: remove stale doc links from README
This commit is contained in:
parent
dd93551eb1
commit
aca25bab33
3 changed files with 9 additions and 16 deletions
|
|
@ -266,13 +266,6 @@ Remove-Item "C:\ProgramData\RedFlag\config.json"
|
|||
|
||||
---
|
||||
|
||||
## Documentation
|
||||
|
||||
- **[API Reference](docs/API.md)** - Complete API documentation
|
||||
- **[Configuration](docs/CONFIGURATION.md)** - CLI flags, env vars, config files
|
||||
- **[Architecture](docs/ARCHITECTURE.md)** - System design and database schema
|
||||
- **[Development](docs/DEVELOPMENT.md)** - Build from source, testing, contributing
|
||||
|
||||
---
|
||||
|
||||
## Current Status
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ func (h *SecurityHandler) MachineBindingStatus(c *gin.Context) {
|
|||
"timestamp": time.Now(),
|
||||
"checks": map[string]interface{}{
|
||||
"binding_enforced": true,
|
||||
"min_agent_version": "v0.1.26",
|
||||
"min_agent_version": "v0.2.0",
|
||||
"fingerprint_required": true,
|
||||
"recent_violations": 0,
|
||||
"bound_agents": 0,
|
||||
|
|
@ -183,7 +183,7 @@ func (h *SecurityHandler) MachineBindingStatus(c *gin.Context) {
|
|||
response["checks"].(map[string]interface{})["total_agents"] = totalAgents
|
||||
|
||||
// Calculate version compliance (agents meeting minimum version requirement)
|
||||
if compliantAgents, err := h.agentQueries.GetAgentCountByVersion("0.1.22"); err == nil {
|
||||
if compliantAgents, err := h.agentQueries.GetAgentCountByVersion("0.1.26"); err == nil {
|
||||
response["checks"].(map[string]interface{})["version_compliance"] = compliantAgents
|
||||
}
|
||||
|
||||
|
|
@ -200,7 +200,7 @@ func (h *SecurityHandler) MachineBindingStatus(c *gin.Context) {
|
|||
|
||||
response["status"] = "enforced"
|
||||
response["checks"].(map[string]interface{})["binding_enforced"] = true
|
||||
response["checks"].(map[string]interface{})["min_agent_version"] = "v0.1.22"
|
||||
response["checks"].(map[string]interface{})["min_agent_version"] = "v0.1.26"
|
||||
|
||||
c.JSON(http.StatusOK, response)
|
||||
}
|
||||
|
|
@ -266,7 +266,7 @@ func (h *SecurityHandler) SecurityOverview(c *gin.Context) {
|
|||
// Get real machine binding metrics
|
||||
if h.agentQueries != nil {
|
||||
boundAgents, _ := h.agentQueries.GetAgentsWithMachineBinding()
|
||||
compliantAgents, _ := h.agentQueries.GetAgentCountByVersion("0.1.22")
|
||||
compliantAgents, _ := h.agentQueries.GetAgentCountByVersion("0.1.26")
|
||||
violations := boundAgents - compliantAgents
|
||||
if violations < 0 {
|
||||
violations = 0
|
||||
|
|
@ -275,7 +275,7 @@ func (h *SecurityHandler) SecurityOverview(c *gin.Context) {
|
|||
overview["subsystems"].(map[string]interface{})["machine_binding"].(map[string]interface{})["status"] = "enforced"
|
||||
overview["subsystems"].(map[string]interface{})["machine_binding"].(map[string]interface{})["checks"] = map[string]interface{}{
|
||||
"binding_enforced": true,
|
||||
"min_agent_version": "v0.1.22",
|
||||
"min_agent_version": "v0.1.26",
|
||||
"recent_violations": violations,
|
||||
"bound_agents": boundAgents,
|
||||
"version_compliance": compliantAgents,
|
||||
|
|
@ -357,7 +357,7 @@ func (h *SecurityHandler) SecurityMetrics(c *gin.Context) {
|
|||
"format": "UUID:UnixTimestamp",
|
||||
},
|
||||
"machine_binding": map[string]interface{}{
|
||||
"min_version": "v0.1.22",
|
||||
"min_version": "v0.1.26",
|
||||
"enforcement": "hardware_fingerprint",
|
||||
},
|
||||
"command_processing": map[string]interface{}{
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ type Config struct {
|
|||
OfflineThreshold int
|
||||
Timezone string
|
||||
LatestAgentVersion string
|
||||
MinAgentVersion string `env:"MIN_AGENT_VERSION" default:"0.1.22"`
|
||||
MinAgentVersion string `env:"MIN_AGENT_VERSION" default:"0.1.26"`
|
||||
SigningPrivateKey string `env:"REDFLAG_SIGNING_PRIVATE_KEY"`
|
||||
BinaryStoragePath string `env:"REDFLAG_BINARY_STORAGE_PATH" default:"./binaries"`
|
||||
DebugEnabled bool `env:"REDFLAG_DEBUG" default:"false"` // Enable debug logging
|
||||
|
|
@ -161,8 +161,8 @@ func loadFromEnv(cfg *Config, skipSensitive bool) error {
|
|||
cfg.CheckInInterval = checkInInterval
|
||||
cfg.OfflineThreshold = offlineThreshold
|
||||
cfg.Timezone = getEnv("TIMEZONE", "UTC")
|
||||
cfg.LatestAgentVersion = getEnv("LATEST_AGENT_VERSION", "0.1.26")
|
||||
cfg.MinAgentVersion = getEnv("MIN_AGENT_VERSION", "0.1.22")
|
||||
cfg.LatestAgentVersion = getEnv("LATEST_AGENT_VERSION", "0.2.0")
|
||||
cfg.MinAgentVersion = getEnv("MIN_AGENT_VERSION", "0.1.26")
|
||||
|
||||
cfg.BinaryStoragePath = getEnv("REDFLAG_BINARY_STORAGE_PATH", "./binaries")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue