Platform scripts, MCP servers, deployment and docs for the KAB runs
- Scripts to run workflows from a YAML context or run inputs (kab_run_workflow.py, with --input name=@file), store per-project discovery connections, bootstrap agent MCP keys, refresh the KAB token, publish reports and build estate snapshots. - Hyperscaler discovery servers extended in place; cloud-knowledge folded into them. - deploy/crucible-kab-dev.yaml: the Discovery package agent and the Assessment agents. - Platform issue write-ups and current-wiring notes under docs/platform-issues/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
Read-only discovery of a customer's AWS estate - servers, workloads, Kubernetes clusters, networks, data stores, policies and Trusted Advisor findings.
|
||||
|
||||
Generated by Agent Builder Platform - MCP Server Builder
|
||||
Version: 0.1.1
|
||||
Version: 0.1.2
|
||||
Template: mcp-server-template 1.1.0
|
||||
|
||||
Features:
|
||||
@@ -129,7 +129,7 @@ class Config:
|
||||
# Server Identity
|
||||
SERVER_ID = os.getenv("MCP_SERVER_ID", 'aws-discovery')
|
||||
SERVER_NAME = os.getenv("MCP_SERVER_NAME", 'AWS Discovery')
|
||||
SERVER_VERSION = os.getenv("MCP_SERVER_VERSION", '0.1.1')
|
||||
SERVER_VERSION = os.getenv("MCP_SERVER_VERSION", '0.1.2')
|
||||
# MCP_SERVER_PORT, or SERVER_PORT as the ConfigMaps in the tools repo name it
|
||||
SERVER_PORT = int(os.getenv("MCP_SERVER_PORT") or os.getenv("SERVER_PORT") or "8112")
|
||||
|
||||
@@ -700,6 +700,8 @@ SECRET_KEYS = (
|
||||
"secretvalue", "sastoken", "accesskey", "primarykey", "secondarykey", "privatekey", "kubeconfig", "credentials",
|
||||
)
|
||||
|
||||
SCALAR_SAFE_KEYS = ("env",)
|
||||
|
||||
PERSON_KEYS = (
|
||||
"createdby", "lastmodifiedby", "updatedby", "creator", "owner", "owneremail", "contact", "contactemail", "email",
|
||||
"objectid", "principalid", "principalname", "userprincipalname",
|
||||
@@ -731,10 +733,13 @@ def _anonymise_member(value: str) -> str:
|
||||
return PRINCIPAL_KINDS[kind]
|
||||
return _clean_text(value)
|
||||
|
||||
def _scalar(value) -> bool:
|
||||
return value is None or isinstance(value, (str, bool, int, float))
|
||||
|
||||
def _scrub(value, key: str = ""):
|
||||
"""Drop secrets and anonymise people, however deep. Every tool's reply passes through here."""
|
||||
lowered = key.lower().replace("_", "").replace("-", "")
|
||||
if lowered in SECRET_KEYS:
|
||||
if lowered in SECRET_KEYS and not (lowered in SCALAR_SAFE_KEYS and _scalar(value)):
|
||||
return "[redacted]"
|
||||
if lowered in PERSON_KEYS:
|
||||
return "[user]"
|
||||
@@ -744,7 +749,7 @@ def _scrub(value, key: str = ""):
|
||||
for name in ("Value", "value"):
|
||||
if name in cleaned and tag in PERSON_KEYS:
|
||||
cleaned[name] = "[user]"
|
||||
elif name in cleaned and tag in SECRET_KEYS:
|
||||
elif name in cleaned and tag in SECRET_KEYS and not (tag in SCALAR_SAFE_KEYS and _scalar(cleaned[name])):
|
||||
cleaned[name] = "[redacted]"
|
||||
return cleaned
|
||||
if isinstance(value, (list, tuple)):
|
||||
|
||||
Reference in New Issue
Block a user