Skip to content

fix(web-admin): agentsFromConfig() references removed agents block #2526

Description

@ggallen

Context

PR #2517 (ADR-0045 Phase 4, PR 4) removed OrgConfig.Agents from the Go backend. The web admin TypeScript code still references the agents config block.

Problem

web/admin/src/lib/layers/orgConfigParse.ts:197agentsFromConfig() reads cfg.agents which will always be [] after this change. The comment on line 196 (mirrors config.OrgConfig.Agents) is now factually incorrect. This causes analyzeSecretsLayer to vacuously report "installed" without checking any secrets/variables.

Fix

Update agentsFromConfig() to derive agent roles from defaults.roles instead of reading the removed agents block.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedBlocked by another issue or external dependencypriority/mediumNormal priority, plan for next cycletype/choreMaintenance and housekeeping tasks

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions