fix(security): close init config and parser-check redaction gaps

Strip model base URLs from viewer-accessible initialization config
responses and merge redacted parser secrets before engine check overrides
so admin test flows keep working after masked GET responses.
This commit is contained in:
wizardchen
2026-07-02 14:38:41 +08:00
committed by lyingbug
parent 1a264e09c1
commit fc64751f4e
6 changed files with 113 additions and 12 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func NewTenantResponseWithRole(tenant *types.Tenant, role types.TenantRole) *Ten
return nil
}
includeSecrets := role.HasPermission(types.TenantRoleAdmin)
includeAPIKey := role.HasPermission(types.TenantRoleOwner)
includeAPIKey := RoleCanViewTenantAPIKey(role)
resp := &TenantResponse{
ID: tenant.ID,