0.7.0
alquimia-runtime 0.7.0 hardens the worker trust boundary, adds topic-level content shields, improves worklog observability, and closes several registry consistency gaps.
Features
Section titled “Features”Topic shields, worklog sessions/activity, secret requirements, and streaming error handling
Section titled “Topic shields, worklog sessions/activity, secret requirements, and streaming error handling”- Topic content shields —
PUT /knowledge/topics/{topic_id}/shieldslets editors attachshield-configentries to a topic. Shields are validated against the registry at write time and stored onTopicRegistration.shields, so retrieved knowledge chunks are screened before they reach the model context. - Worklog sessions —
GET /worklog/sessionsreturns conversation-level aggregates, andGET /worklog/activityreturns run counts per hour or day.GET /worklog/now supportsinclude_contentfor truncated query/result/error previews andlimit/offsetpagination.final_status=runningselects in-progress runs by matchingfinal_status IS NULL. - Secret requirements —
POST /registry/secret/requirements/{assistant_id}reports every secret an agent needs, including secrets reached throughmodel_ref,audio_ref,tool_ref, andshield_ref, with per-key resolution status.PUT /registry/secret/definitionregisters a secret definition without a value, which is required for agent- and user-scoped secrets. - Streaming error handling — browser WebSocket sessions now emit an
{"event":"error"}frame when a turn fails while keeping the call open. Clean sessions close with1000instead of an abnormal1006, close reasons are capped to RFC 6455 limits, andHTTPExceptiondetails from agent resolution are forwarded correctly. - Telemetry metrics proxy —
GET /telemetry/metrics,GET /telemetry/query,GET /telemetry/query_range,GET /telemetry/labels/{label}/values, andGET /telemetry/seriesproxy PromQL to a Prometheus-compatible store. These endpoints are restricted toplatform-admin.
See:
- Shields & empathy
- Configure content shields
- Inspect the audit worklog
- Runtime API overview
- Runtime configuration reference
Security
Section titled “Security”Harden worker trust boundary
Section titled “Harden worker trust boundary”- Envelope signing — every Kafka CloudEvent is signed with a
kidfrom a key ring. Verification usesKAFKA_SIGNING_KEYorKAFKA_SIGNING_KEYS(kid:hex,...). Keys must be 32 bytes. Pre-#339 signatures are rejected unlessKAFKA_SIGNING_ACCEPT_LEGACY=true. - Replay protection — events whose signed
timeis outsideKAFKA_EVENT_MAX_AGE_SECONDS(default 1 hour, ±5 minutes skew) go to the DLQ.(source,id)is de-duplicated with RedisSET NX, tool calls are idempotent per(task_id, control_id, step_id), and failed or timed-out dispatches release their claim so DLQ redrive works. - Worker output shields — MCP tool results and A2A sub-agent results go through
ToolRegistration.shields. If a shield errors, the call fails closed. - Timeouts and ceilings —
KAFKA_HANDLER_TIMEOUT_SECONDS(default 540 s),MCP_TOOL_TIMEOUT_SECONDS(default 120 s),EVALUATION_MAX_STEPS_CEILING(50), andEVALUATION_MAX_CONCURRENT_TOOLS_CEILING(16) clamp unlimited or oversized agent specs. - Production profile — with
TLS_ENFORCE=true,sslmodebelowverify-fullcounts as plaintext, Keycloak and OTLP URLs must be HTTPS, and an encryption key plus a Kafka signing key are both required.KNOWLEDGE_AUTHZ_DEFAULT_DENYnow defaults totrue. - Channel hardening —
TRUSTED_PROXY_CIDRSrestricts which proxies may supplyX-Forwarded-For. Browser WebSocket sessions must use single-use encrypted tickets fromPOST /streaming/auth-ticket(?ticket=);?token=is refused unlessSTREAMING_ALLOW_QUERY_TOKEN=true. - Crypto — v2 envelopes bind AES-GCM AAD to the Redis key or Postgres
table.column. Plaintext is refused once a key is configured unlessENCRYPTION_ALLOW_PLAINTEXT_READS=true. v1 envelopes remain readable viaENCRYPTION_ALLOW_UNBOUND_READS(default on). Channel routes, route tokens, pending approvals, Twilio stream tickets, and the new WS tickets are sealed, and ticket Redis keys are SHA-256 hashes.
See Workload hardening and Kubernetes & OpenShift.
Harden CI workflows, image supply chain and K8s identity
Section titled “Harden CI workflows, image supply chain and K8s identity”- Workflow permissions are minimized, actions are SHA-pinned, and agent jobs receive repo-scoped tokens.
docker-buildscans the exact pushed image digest with Grype and fails on fixable critical vulnerabilities.- A new
security-scanworkflow runs gitleaks and osv-scanner. - Master and worker use separate ServiceAccounts; the worker’s ServiceAccount has
automountServiceAccountToken: false. - Vault roles are bound one per ServiceAccount, and SPIRE
ClusterStaticEntryRBAC is moved into an OpenShift-only component with aValidatingAdmissionPolicy. - rclone, SPIRE, CSI and busybox images are pinned by digest; worker egress is restricted.
See Workload hardening and Kubernetes & OpenShift.
- Registry: external publish overwrites agentspace version pointer and hydrates from wrong registry; add promote and authz for external targets —
PUT /registry/publishno longer overwrites the local version pointer or hydrates from the wrong registry when the target is an external repository. A newalquimia registry promotecommand copies an already-published artifact to another target without re-pushing from the local workspace. External publish targets are authorized through the registry ACL. - Registry: publish and validate treat secrets used through
model_ref/shield_ref/audio_ref/tool_refas unused — secret usage now includes a recursive walk of all artifact registrations, so secrets referenced only by a model, shield, audio provider, or tool registration are no longer flagged as unused or deleted during validation. - Registry: validate returns 500 when one agent spec is invalid — migrated specs are passed to the secret-usage check, and raw specs that still fail validation fall back to a recursive
$secretRefwalk instead of raising. - Replace deprecated
openapi_prefixwithroot_path—OPENAPI_PREFIXis mapped to FastAPI’s supportedroot_pathparameter, fixing the studio-update workflow after the 0.6.0 release. - Update alquimia-core to 0.6.2, 0.7.0, and finally 0.7.1.
- Patch previous release config in studio-update workflow.
See:
Chores
Section titled “Chores”- Bump the actions-deps group with 9 updates.