v0.43.1
This commit is contained in:
1 parent
5b6d4a7903
commit
4d1087e357
160 files changed
+2407
-1933
No files matched your search
@@ -1,4 +1,3 @@
|
||||
-- Additive migration from 0.0.1. The configuration table is never cleared.
|
||||
CREATE TABLE IF NOT EXISTS configuration (
|
||||
id INTEGER PRIMARY KEY CHECK (id = 1),
|
||||
revision INTEGER NOT NULL CHECK (revision >= 0),
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
-- Persist non-secret ACME renewal observations so the dashboard is populated
|
||||
-- immediately after a restart. Provider credentials remain outside SQLite.
|
||||
CREATE TABLE IF NOT EXISTS certificate_renewals (
|
||||
certificate_id TEXT PRIMARY KEY,
|
||||
last_checked INTEGER NOT NULL DEFAULT 0,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
-- Account-scoped administration UI preferences. These are control-plane view state,
|
||||
-- separate from the revisioned proxy configuration document.
|
||||
CREATE TABLE IF NOT EXISTS admin_preferences (
|
||||
administrator_id INTEGER PRIMARY KEY CHECK (administrator_id = 1),
|
||||
document TEXT NOT NULL CHECK (length(document) BETWEEN 2 AND 4096),
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
-- Scoped credential for externally managed certificate deployment. The cleartext
|
||||
-- token is never persisted; only a SHA-256 digest and non-secret key id are stored.
|
||||
CREATE TABLE IF NOT EXISTS certificate_api_credential (
|
||||
id INTEGER PRIMARY KEY CHECK (id = 1),
|
||||
key_id TEXT NOT NULL UNIQUE CHECK (length(key_id) BETWEEN 3 AND 64),
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
-- Multiple scoped credentials for external certificate automation. Existing
|
||||
-- 0.23/0.24 singleton credentials are copied once and the legacy row is cleared
|
||||
-- so this idempotent migration can run safely on every startup.
|
||||
CREATE TABLE IF NOT EXISTS certificate_api_credentials (
|
||||
key_id TEXT PRIMARY KEY CHECK (length(key_id) BETWEEN 3 AND 64),
|
||||
token_hash TEXT NOT NULL CHECK (length(token_hash) = 64),
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
-- Encrypted application secrets. Ciphertext is protected by the local master
|
||||
-- key stored outside SQLite. Plaintext credentials must never be persisted here.
|
||||
CREATE TABLE IF NOT EXISTS secret_store (
|
||||
secret_id TEXT PRIMARY KEY CHECK (length(secret_id) BETWEEN 1 AND 256),
|
||||
provider TEXT NOT NULL CHECK (length(provider) BETWEEN 1 AND 64),
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
-- Least-privilege grants for certificate automation credentials. Existing
|
||||
-- credentials are migrated to reload-only access for all manual certificate ids;
|
||||
-- rotating them in 0.28.2 lets operators narrow them to explicit ids.
|
||||
CREATE TABLE IF NOT EXISTS certificate_api_grants (
|
||||
key_id TEXT PRIMARY KEY REFERENCES certificate_api_credentials(key_id) ON DELETE CASCADE,
|
||||
allow_deploy INTEGER NOT NULL DEFAULT 0 CHECK (allow_deploy IN (0, 1)),
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
-- Named, administrator-scoped Overview presets. Keep this separate from the
|
||||
-- appearance preferences document and proxy configuration.
|
||||
CREATE TABLE IF NOT EXISTS dashboard_presets (
|
||||
administrator_id INTEGER NOT NULL CHECK (administrator_id = 1),
|
||||
name TEXT NOT NULL CHECK (length(name) BETWEEN 1 AND 64),
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
-- Expand administrator UI preference storage. Current dashboard layouts can exceed
|
||||
-- the original 4096-byte limit once per-widget widths are persisted.
|
||||
CREATE TABLE admin_preferences_v2 (
|
||||
administrator_id INTEGER PRIMARY KEY CHECK (administrator_id = 1),
|
||||
document TEXT NOT NULL CHECK (length(document) BETWEEN 2 AND 65536),
|
||||
|
||||
Reference in new issue
Block a user