Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .changeset/rfc48-step5-hosts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
"@cloudhal/core-contracts": minor
"@cloudhal/release-verify": patch
"@cloudhal/cli": minor
"@cloudhal/cloudflare": patch
---

RFC-0048 rollout step 5 finishes agents' signed upload links on every host.

- **Compatibility (`@cloudhal/release-verify`, `@cloudhal/core-contracts`):** verifiers before 0.12 refuse 0.12+ manifests; update the verifier with the CLI. The release manifest's `SecretName` gains `CLOUDHAL_UPLOAD_SECRET`, which 0.12+ manifests list for the admin Worker, and an older verifier rejects the unknown value. The new schema still verifies older bundles. Portable copies of the schema need the new `release-manifest` fingerprint (RFC-0046, amended).
- **`CLOUDHAL_UPLOAD_SECRET`:**
- `cloudhal deploy` generates it once into `.cloudhal/deploy/secrets.json` (0600) and gives it to the admin Worker. It signs upload tickets and agents' upload links ahead of the preview secret, so it can rotate on its own.
- The release manifest's `SecretName` gains it, an additive contract change.
- On self-host it is optional, with `_FILE` supported. `cloudhal selfhost secrets` generates it for new installations; when unset, the preview secret signs; a value shorter than 32 characters stops the image at start. The compose file passes it through.
- **`cloudhal.json` `media.agentUploads: false`** turns the links off, and **`media.agentUploadBytes`** caps a file (25 MB by default, at most 100 MB).
- They become the admin Worker's vars `CLOUDHAL_AGENT_UPLOADS` and `CLOUDHAL_AGENT_UPLOAD_BYTES`. Self-host takes the same vars from its environment, and `cloudhal studio` reads them from the project.
- The release key table classes both as `deploy` keys, so `deploy --release` accepts any value.
- **Studio's Activity** labels `create_upload`, `complete_upload` and `asset.upload-received` in every language. Languages other than English are drafts awaiting review.
- **A guide**, `docs/guides/agent-uploads.md`, covers the flow, the settings, the secret and its rotation, keeping `?sig=` out of proxy access logs and `wrangler tail`, and body size limits. The self-host guide and the threat model now list the new settings and the mitigations.
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/ar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): ar core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: 932d5c2ff7cb089d
// hash: a70edc6c7418610d
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1721,13 +1721,16 @@ export const messages: Messages = {
retire_asset: "استبعد وسائط",
restore_asset: "استعد وسائط",
delete_asset: "احذف وسائط",
create_upload: "أنشئ رابط رفع",
complete_upload: "أكمل الرفع",
assetUpload: "رفع ملف",
assetUpdate: "تحديث تفاصيل ملف",
assetRetire: "استبعاد ملف",
assetRestore: "استعادة ملف",
assetDelete: "حذف ملف",
assetPurge: "إزالة ملف نهائيًا",
assetLiftPurge: "السماح بملف مجددًا",
assetUploadReceived: "استلام ملف رفعه وكيل",
siteBuild: "بناء الموقع العام",
list_sites: "اسرد المواقع",
get_site: "احصل على موقع",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/de.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): de core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: 9ffa8eada36b8bde
// hash: 47220dd1907aa318
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1812,13 +1812,16 @@ export const messages: Messages = {
retire_asset: "Medien ausmustern",
restore_asset: "Medien wiederherstellen",
delete_asset: "Medien löschen",
create_upload: "Upload-Link erstellen",
complete_upload: "Upload abschließen",
assetUpload: "Datei hochladen",
assetUpdate: "Dateidetails aktualisieren",
assetRetire: "Datei ausmustern",
assetRestore: "Datei wiederherstellen",
assetDelete: "Datei löschen",
assetPurge: "Datei entfernen",
assetLiftPurge: "Datei wieder zulassen",
assetUploadReceived: "Upload eines Agenten empfangen",
siteBuild: "Öffentliche Website bauen",
list_sites: "Websites auflisten",
get_site: "Website abrufen",
Expand Down
3 changes: 3 additions & 0 deletions apps/studio/src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1690,13 +1690,16 @@ export const en = {
retire_asset: "Retire media",
restore_asset: "Restore media",
delete_asset: "Delete media",
create_upload: "Create an upload link",
complete_upload: "Complete an upload",
assetUpload: "Upload file",
assetUpdate: "Update file details",
assetRetire: "Retire file",
assetRestore: "Restore file",
assetDelete: "Delete file",
assetPurge: "Take down file",
assetLiftPurge: "Allow file again",
assetUploadReceived: "Receive an agent's upload",
siteBuild: "Build public site",
list_sites: "List sites",
get_site: "Get site",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/es.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): es core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: e3a82a20ba9c7394
// hash: 5eed0b906145d7f8
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1793,13 +1793,16 @@ export const messages: Messages = {
retire_asset: "Retirar multimedia",
restore_asset: "Restaurar multimedia",
delete_asset: "Eliminar multimedia",
create_upload: "Crear un enlace de subida",
complete_upload: "Completar una subida",
assetUpload: "Subir archivo",
assetUpdate: "Actualizar detalles del archivo",
assetRetire: "Retirar archivo",
assetRestore: "Restaurar archivo",
assetDelete: "Eliminar archivo",
assetPurge: "Dar de baja archivo",
assetLiftPurge: "Volver a permitir archivo",
assetUploadReceived: "Recibir la subida de un agente",
siteBuild: "Compilar el sitio público",
list_sites: "Listar sitios",
get_site: "Obtener sitio",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/fa.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): fa core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: c529016053ea2797
// hash: feb43475f2a70805
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1762,13 +1762,16 @@ export const messages: Messages = {
retire_asset: "بازنشسته کردن رسانه",
restore_asset: "بازیابی رسانه",
delete_asset: "حذف رسانه",
create_upload: "ایجاد پیوند بارگذاری",
complete_upload: "تکمیل بارگذاری",
assetUpload: "بارگذاری فایل",
assetUpdate: "به‌روزرسانی جزئیات فایل",
assetRetire: "بازنشسته کردن فایل",
assetRestore: "بازیابی فایل",
assetDelete: "حذف فایل",
assetPurge: "برداشتن فایل",
assetLiftPurge: "مجاز کردن دوبارهٔ فایل",
assetUploadReceived: "دریافت بارگذاری یک عامل",
siteBuild: "ساخت سایت عمومی",
list_sites: "فهرست سایت‌ها",
get_site: "دریافت سایت",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/fr.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): fr core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: 20861edd90c3caa6
// hash: ef3500e6232b8d7c
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1823,13 +1823,16 @@ export const messages: Messages = {
retire_asset: "Retirer un média",
restore_asset: "Restaurer un média",
delete_asset: "Supprimer un média",
create_upload: "Créer un lien d’importation",
complete_upload: "Terminer une importation",
assetUpload: "Importer un fichier",
assetUpdate: "Mettre à jour les détails d’un fichier",
assetRetire: "Retirer un fichier",
assetRestore: "Restaurer un fichier",
assetDelete: "Supprimer un fichier",
assetPurge: "Supprimer définitivement un fichier",
assetLiftPurge: "Autoriser de nouveau un fichier",
assetUploadReceived: "Recevoir l’importation d’un agent",
siteBuild: "Construire le site public",
list_sites: "Lister les sites",
get_site: "Obtenir un site",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/he.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): he core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: 4805bbf5f13324ab
// hash: 0aa923b6f7da8177
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1719,13 +1719,16 @@ export const messages: Messages = {
retire_asset: "הוצאת מדיה משימוש",
restore_asset: "שחזור מדיה",
delete_asset: "מחיקת מדיה",
create_upload: "יצירת קישור העלאה",
complete_upload: "השלמת העלאה",
assetUpload: "העלאת קובץ",
assetUpdate: "עדכון פרטי קובץ",
assetRetire: "הוצאת קובץ משימוש",
assetRestore: "שחזור קובץ",
assetDelete: "מחיקת קובץ",
assetPurge: "הסרת קובץ לצמיתות",
assetLiftPurge: "אישור קובץ מחדש",
assetUploadReceived: "קבלת העלאה של סוכן",
siteBuild: "בניית האתר הציבורי",
list_sites: "הצגת אתרים",
get_site: "קבלת אתר",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/hi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): hi core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: fa69e9d41983b56b
// hash: b9b0e4614e8a072b
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1715,13 +1715,16 @@ export const messages: Messages = {
retire_asset: "मीडिया सेवानिवृत्त करें",
restore_asset: "मीडिया बहाल करें",
delete_asset: "मीडिया हटाएँ",
create_upload: "अपलोड लिंक बनाएँ",
complete_upload: "अपलोड पूरा करें",
assetUpload: "फ़ाइल अपलोड करें",
assetUpdate: "फ़ाइल विवरण अपडेट करें",
assetRetire: "फ़ाइल सेवानिवृत्त करें",
assetRestore: "फ़ाइल बहाल करें",
assetDelete: "फ़ाइल हटाएँ",
assetPurge: "फ़ाइल स्थायी रूप से हटाएँ",
assetLiftPurge: "फ़ाइल की फिर से अनुमति दें",
assetUploadReceived: "एजेंट का अपलोड प्राप्त करें",
siteBuild: "सार्वजनिक साइट बनाएँ",
list_sites: "साइटों की सूची",
get_site: "साइट प्राप्त करें",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/id.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): id core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: 0434724f4464e35a
// hash: e08fab736b4c26e6
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1788,13 +1788,16 @@ export const messages: Messages = {
retire_asset: "Pensiunkan media",
restore_asset: "Pulihkan media",
delete_asset: "Hapus media",
create_upload: "Buat tautan unggah",
complete_upload: "Selesaikan unggahan",
assetUpload: "Unggah file",
assetUpdate: "Perbarui detail file",
assetRetire: "Pensiunkan file",
assetRestore: "Pulihkan file",
assetDelete: "Hapus file",
assetPurge: "Turunkan file",
assetLiftPurge: "Izinkan file lagi",
assetUploadReceived: "Terima unggahan agen",
siteBuild: "Bangun situs publik",
list_sites: "Daftar situs",
get_site: "Ambil situs",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/it.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): it core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: 2123cb52982613e5
// hash: df6710ca32776fa7
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1787,13 +1787,16 @@ export const messages: Messages = {
retire_asset: "Ritira media",
restore_asset: "Ripristina media",
delete_asset: "Elimina media",
create_upload: "Crea un link di caricamento",
complete_upload: "Completa un caricamento",
assetUpload: "Carica file",
assetUpdate: "Aggiorna dettagli file",
assetRetire: "Ritira file",
assetRestore: "Ripristina file",
assetDelete: "Elimina file",
assetPurge: "Rimuovi file",
assetLiftPurge: "Consenti di nuovo il file",
assetUploadReceived: "Ricevi il caricamento di un agente",
siteBuild: "Costruisci il sito pubblico",
list_sites: "Elenca siti",
get_site: "Ottieni sito",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/ja.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): ja core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: 999c4c4d57b285bd
// hash: e32a878816898b20
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1771,13 +1771,16 @@ export const messages: Messages = {
retire_asset: "メディアを廃止",
restore_asset: "メディアを復元",
delete_asset: "メディアを削除",
create_upload: "アップロードリンクを作成",
complete_upload: "アップロードを完了",
assetUpload: "ファイルをアップロード",
assetUpdate: "ファイルの詳細を更新",
assetRetire: "ファイルを廃止",
assetRestore: "ファイルを復元",
assetDelete: "ファイルを削除",
assetPurge: "ファイルを取り下げ",
assetLiftPurge: "ファイルを再び許可",
assetUploadReceived: "エージェントのアップロードを受信",
siteBuild: "公開サイトをビルド",
list_sites: "サイトを一覧",
get_site: "サイトを取得",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/ko.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): ko core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: 7ae061ef97fdc239
// hash: 51c0d77b439df7e0
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1729,13 +1729,16 @@ export const messages: Messages = {
retire_asset: "미디어 폐기",
restore_asset: "미디어 복원",
delete_asset: "미디어 삭제",
create_upload: "업로드 링크 만들기",
complete_upload: "업로드 완료",
assetUpload: "파일 업로드",
assetUpdate: "파일 정보 업데이트",
assetRetire: "파일 폐기",
assetRestore: "파일 복원",
assetDelete: "파일 삭제",
assetPurge: "파일 게시 중단",
assetLiftPurge: "파일 다시 허용",
assetUploadReceived: "에이전트 업로드 받기",
siteBuild: "공개 사이트 빌드",
list_sites: "사이트 목록",
get_site: "사이트 가져오기",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/nl.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): nl core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: 1419c0749629e095
// hash: 33bfaf19811dea4f
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1791,13 +1791,16 @@ export const messages: Messages = {
retire_asset: "Media uit gebruik nemen",
restore_asset: "Media herstellen",
delete_asset: "Media verwijderen",
create_upload: "Uploadlink maken",
complete_upload: "Upload voltooien",
assetUpload: "Bestand uploaden",
assetUpdate: "Bestandsgegevens bijwerken",
assetRetire: "Bestand uit gebruik nemen",
assetRestore: "Bestand herstellen",
assetDelete: "Bestand verwijderen",
assetPurge: "Bestand definitief verwijderen",
assetLiftPurge: "Bestand weer toestaan",
assetUploadReceived: "Upload van een agent ontvangen",
siteBuild: "Openbare site bouwen",
list_sites: "Sites weergeven",
get_site: "Site ophalen",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/pl.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): pl core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: f564b5672582ca70
// hash: 2c8d317f73079741
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1769,13 +1769,16 @@ export const messages: Messages = {
retire_asset: "Wycofanie multimediów",
restore_asset: "Przywrócenie multimediów",
delete_asset: "Usunięcie multimediów",
create_upload: "Utworzenie linku do przesłania",
complete_upload: "Dokończenie przesłania",
assetUpload: "Przesłanie pliku",
assetUpdate: "Aktualizacja szczegółów pliku",
assetRetire: "Wycofanie pliku",
assetRestore: "Przywrócenie pliku",
assetDelete: "Usunięcie pliku",
assetPurge: "Usunięcie pliku na żądanie",
assetLiftPurge: "Ponowne zezwolenie na plik",
assetUploadReceived: "Odbiór pliku przesłanego przez agenta",
siteBuild: "Zbuduj stronę publiczną",
list_sites: "Lista witryn",
get_site: "Odczyt witryny",
Expand Down
5 changes: 4 additions & 1 deletion apps/studio/src/i18n/pt-BR.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated by `pnpm i18n:import` (ADR-0034): pt-BR core messages.
// Do not edit: change the translation file and import it; only English is edited here.
// hash: 16177ae399e761fe
// hash: 642880354c5726bf
import type { Messages } from "./en.ts";

export const messages: Messages = {
Expand Down Expand Up @@ -1773,13 +1773,16 @@ export const messages: Messages = {
retire_asset: "Aposentar mídia",
restore_asset: "Restaurar mídia",
delete_asset: "Excluir mídia",
create_upload: "Criar link de envio",
complete_upload: "Concluir envio",
assetUpload: "Enviar arquivo",
assetUpdate: "Atualizar detalhes do arquivo",
assetRetire: "Aposentar arquivo",
assetRestore: "Restaurar arquivo",
assetDelete: "Excluir arquivo",
assetPurge: "Retirar arquivo do ar",
assetLiftPurge: "Permitir arquivo de novo",
assetUploadReceived: "Receber envio de um agente",
siteBuild: "Gerar o site público",
list_sites: "Listar sites",
get_site: "Obter site",
Expand Down
Loading