feat(config): fail-closed manifest-driven injection + runtime write-back delivery (D6)

This commit is contained in:
2026-08-31 09:43:43 +01:00
parent a9e2182396
commit c540ad5d7f
6 changed files with 326 additions and 16 deletions
+7
View File
@@ -148,6 +148,13 @@ func (h *Handler) Value(w http.ResponseWriter, r *http.Request) {
}
writeJSON(w, http.StatusOK, view)
// Runtime write-back (D6): best-effort delivery to the running service's
// POST /config endpoint. The goroutine is fire-and-forget; values always
// also take effect at next start via injectConfigSecrets (M1).
go libcontainers.DeliverConfigValues(r.Context(), container.ServiceName, []libcontainers.ConfigDelivery{
{Field: field, Key: spec.Key, Type: spec.Type, Value: action.Value},
})
default:
writeError(w, http.StatusMethodNotAllowed, "ERR_METHOD_NOT_ALLOWED")
}