Conversation
Adds a Security page for QuestDB Enterprise audited views (CREATE VIEW ... WITH AUDIT, the AUDITED modifier, sys.view_audit and its params JSON, what counts as a read, audited views read through other audited views, delivery, permissions, replication, limitations) and a configuration page for view.audit.queue.capacity and view.audit.storage.policy. Documents declared value lists for IN in DECLARE, replacing the old "bracket lists are not allowed" limitation, and links the feature from the views, CREATE VIEW, ALTER VIEW, DROP VIEW and RBAC pages. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
🚀 Build success! Latest successful preview: https://preview-561--questdb-documentation.netlify.app/docs/ Commit SHA: 1f23615
|
Audited views have one delivery mode, lossy: a read never waits for its row to be recorded, and a row can be lost. The Delivery section now says so up front and lists every case in which a read goes unrecorded: a full queue, a failed batch write, a rejected table schema, and rows still queued when the server stops. The Limitations entry and the queue capacity setting point to it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents two features that ship together: audited views (QuestDB Enterprise) and declared value lists for
IN(open source). The code is in questdb/questdb#7602 and questdb/questdb-enterprise#1203, neither merged yet, so this stays a draft until they are.What goes where
security/audited-views.md(new, after RBAC in the sidebar): creating an audited view, theAUDITEDmodifier, thesys.view_auditschema and theparamsJSON per type, querying and retaining the trail, what counts as a read, audited views read through other audited views, the bounded queue and when it drops rows, permissions, replicas andreadonly=true, and limitationsconfiguration/audited-views.md(new):view.audit.queue.capacityandview.audit.storage.policyquery/sql/declare.md:AUDITEDin the syntax, and a "Value lists" section with the misuse errors. It removes the old "bracket lists are not allowed" limitation, which the OSS PR liftsquery/sql/create-view.md: theWITH AUDITclause, andOWNED BYin the syntax blockquery/sql/alter-view.md,query/sql/drop-view.md,security/rbac.md: an audited view stays audited throughALTER VIEW; dropping one needsAUDIT VIEW; the new permission's rowconcepts/views.md: short "List parameters" and "Audited views" subsections that link to the pages aboveconfiguration/overview.md,sidebars.js,changelog.mdx: index entries. The changelog entries sit under September 2026 and may need to move to the month this mergesLimitations the page states
Three limitations came out of review and are spelled out under "Limitations":
UPDATEof a WAL table that reads an audited view records nothing, because the read happens during WAL apply. The same statement on a non-WAL table is recorded.The page also states that statements which open a query only to check it (
CREATE VIEW,CREATE MATERIALIZED VIEW,ALTER VIEW,CREATE OR REPLACE VIEW) record nothing, and that a shadowed inner view's fixedAUDITEDparameters are not on the outer view's row.Not verified
yarn build. The sidebar config was loaded with node, and a link and anchor check over the changed files found no broken targets among the new links.SHOW PARAMETERSon a running server.🤖 Generated with Claude Code