From 750279f7eeade29728bafb84099f9ac6692f2432 Mon Sep 17 00:00:00 2001 From: Artyom Keydunov Date: Thu, 14 May 2026 12:24:18 -0700 Subject: [PATCH 1/5] docs: add Access Policies viewer page and clean up modeling docs (#10887) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add a new page under Data Modeling → Developing Model that documents the Access Policies viewer in Cube Cloud, including the list view (with screenshot) and the per-policy detail view. - Remove the broken hero image from the Visual Modeler page. - Drop the redundant "Available on all plans" callout from nine pages; the convention is to use a plan-availability only when the feature is actually plan-gated. Co-authored-by: Cursor --- .../admin/deployment/environments.mdx | 6 -- .../admin/deployment/infrastructure.mdx | 6 -- .../admin/monitoring/pre-aggregations.mdx | 6 -- .../admin/monitoring/query-history.mdx | 4 +- docs-mintlify/docs.json | 3 +- .../data-modeling/access-control/context.mdx | 6 -- .../data-modeling/access-policies-viewer.mdx | 85 +++++++++++++++++++ .../docs/data-modeling/data-model-ide.mdx | 6 -- docs-mintlify/docs/data-modeling/dev-mode.mdx | 6 -- .../docs/data-modeling/sql-runner.mdx | 6 -- .../docs/data-modeling/visual-modeler.mdx | 4 - .../authentication/security-context.mdx | 6 -- 12 files changed, 89 insertions(+), 55 deletions(-) create mode 100644 docs-mintlify/docs/data-modeling/access-policies-viewer.mdx diff --git a/docs-mintlify/admin/deployment/environments.mdx b/docs-mintlify/admin/deployment/environments.mdx index a95d411660a96..cb51403eb296c 100644 --- a/docs-mintlify/admin/deployment/environments.mdx +++ b/docs-mintlify/admin/deployment/environments.mdx @@ -9,12 +9,6 @@ Every Cube Cloud deployment provides a number of environments: - Multiple [staging environments](#staging-environments). - Per-user [development environments](#development-environments). - - -Available on [all plans](https://cube.dev/pricing). - - - ## Production environment This is the main environment. It runs the data model from the _main branch_. diff --git a/docs-mintlify/admin/deployment/infrastructure.mdx b/docs-mintlify/admin/deployment/infrastructure.mdx index ebc9a2ab29e65..4bee7d6f2f195 100644 --- a/docs-mintlify/admin/deployment/infrastructure.mdx +++ b/docs-mintlify/admin/deployment/infrastructure.mdx @@ -26,12 +26,6 @@ scaling, and monitoring your Cube Deployments, as well as managing Cube Store and persisting pre-aggregated data. This option requires the least effort to set up. - - -Available on [all plans](https://cube.dev/pricing). - - - Please note that some Enterprise features, such as VPC peering or PrivateLink are not available on the multi-tenant infrastructure. There's also a possibility of resource contention ("noisy neighbor") problem. diff --git a/docs-mintlify/admin/monitoring/pre-aggregations.mdx b/docs-mintlify/admin/monitoring/pre-aggregations.mdx index 49958e0f80c76..87692c309018b 100644 --- a/docs-mintlify/admin/monitoring/pre-aggregations.mdx +++ b/docs-mintlify/admin/monitoring/pre-aggregations.mdx @@ -9,12 +9,6 @@ can see which pre-aggregations are accelerating queries, if they are [being refreshed][ref-caching-using-preaggs-refresh], along with the last 24 hours of build history. - - -Available on [all plans](https://cube.dev/pricing). - - - diff --git a/docs-mintlify/admin/monitoring/query-history.mdx b/docs-mintlify/admin/monitoring/query-history.mdx index 438e2da63e98d..511a93f2ba6f9 100644 --- a/docs-mintlify/admin/monitoring/query-history.mdx +++ b/docs-mintlify/admin/monitoring/query-history.mdx @@ -10,8 +10,8 @@ failed. -Available on [all plans](https://cube.dev/pricing). -You can also choose a [Query History tier](/admin/account-billing/pricing#query-history-tiers). +You can choose a [Query History tier](/admin/account-billing/pricing#query-history-tiers) +to fit your retention and throughput needs. diff --git a/docs-mintlify/docs.json b/docs-mintlify/docs.json index 2fac5fa690c74..724945f33bb93 100644 --- a/docs-mintlify/docs.json +++ b/docs-mintlify/docs.json @@ -175,7 +175,8 @@ "pages": [ "docs/data-modeling/visual-modeler", "docs/data-modeling/data-model-ide", - "docs/data-modeling/dev-mode" + "docs/data-modeling/dev-mode", + "docs/data-modeling/access-policies-viewer" ] } ] diff --git a/docs-mintlify/docs/data-modeling/access-control/context.mdx b/docs-mintlify/docs/data-modeling/access-control/context.mdx index d9f6626f4ff68..b0cca7e0fe97d 100644 --- a/docs-mintlify/docs/data-modeling/access-control/context.mdx +++ b/docs-mintlify/docs/data-modeling/access-control/context.mdx @@ -300,12 +300,6 @@ enrich the security context with additional attributes. When using Cube Cloud, you can enrich the security context with information about an authenticated user, obtained during their authentication. - - -Available on [all plans](https://cube.dev/pricing). - - - You can enable the authentication integration by navigating to the **Settings → Configuration** of your Cube Cloud deployment and using the **Enable Cloud Auth Integration** toggle. diff --git a/docs-mintlify/docs/data-modeling/access-policies-viewer.mdx b/docs-mintlify/docs/data-modeling/access-policies-viewer.mdx new file mode 100644 index 0000000000000..b4875fe8ee07d --- /dev/null +++ b/docs-mintlify/docs/data-modeling/access-policies-viewer.mdx @@ -0,0 +1,85 @@ +--- +title: Access Policies viewer +description: Audit row-level, member-level, and member-masking access policies that govern your data model from the Cube Cloud UI, grouped by user group. +--- + +The Access Policies viewer surfaces, in one place, every [access policy][ref-access-policies] +defined in your [data model][ref-data-modeling] — row-level filters, member-level +restrictions, and member masking — broken down by the user [groups][ref-user-groups] +they apply to. + +Use it to audit who can see which cubes and views, and how each policy is composed, +without grepping through `cube` files or running test queries. + + + +The viewer is read-only. Access policies themselves are authored in the +[data model][ref-access-policies] using `access_policy` blocks; this page +visualizes the resolved rules so you can review and debug them. + + + +## Opening the viewer + +In Cube Cloud, navigate to the **Model** module and click **Access Policies** in +the sub-sidebar. The viewer reflects whichever branch and build you are currently +viewing, so policies you are editing in [development mode][ref-dev-mode] appear +alongside what is live in production. + +You need the `PlaygroundRead` permission to open the viewer. + +## List view + +The list view shows one row per group declared anywhere in the data model: + + + Access Policies list view, with one row per user group + + + +| Column | What it shows | +| --- | --- | +| **Group** | Name of the group. The wildcard entry `*` is rendered as **All Groups** — this is the catch-all default policy applied when no other policy matches. | +| **Policies** | Number of cubes and views with an explicit policy for this group. Hover the cell to see the full list of cube and view names. | +| **Default Policy** | Number of cubes and views this group can access without an explicit policy — the union of cubes covered by the wildcard `*` policy and any cubes that have no policy at all. | + +Cubes and views with no `access_policy` block defined are considered fully open; +they appear under **Default Policy** for every group. + +Click a row to drill into the per-cube breakdown for that group. + +## Per-policy detail view + +The detail view shows one row per cube or view that the selected group can +access, with the resolved policy expanded across four columns: + +| Column | What it shows | +| --- | --- | +| **Cube / View** | Name of the cube or view, with an icon distinguishing the two. | +| **Condition** | The number of [`condition`][ref-policy-condition] expressions on the policy, or `—` if the policy applies unconditionally. Conditions are arbitrary expressions defined in the model. | +| **Member-level Access** | One of three states: **Allow All** (no member-level restrictions), **Deny All** (member access is fully denied), or **Allow:** followed by the resolved set of allowed dimensions, segments, and measures. | +| **Member Masking** | `—` if no [member masking][ref-mls-masking] applies, otherwise the list of masked dimensions. | +| **Row-level Access** | Either **Allow All**, or **Filters on:** followed by the dimensions referenced by the row-level filter. | + +Member names are shortened to the last path segment for readability — for +example, `orders.user.email` is shown as `email`. + +## What the viewer does not do + +The viewer is intentionally scoped to inspecting policies that are already +defined in the model. It does not: + +- Create, edit, or delete access policies. Edit `access_policy` blocks in your + data model and commit through your normal Git workflow. +- Show which individual users belong to a given group. See + [User groups][ref-user-groups] for membership management. +- Run preview queries against a policy. To verify behavior end-to-end, switch + the security context and issue queries against your development API. + + +[ref-data-modeling]: /docs/data-modeling/overview +[ref-access-policies]: /docs/data-modeling/data-access-policies +[ref-policy-condition]: /reference/data-modeling/data-access-policies#conditions +[ref-mls-masking]: /docs/data-modeling/data-access-policies#data-masking +[ref-dev-mode]: /docs/data-modeling/dev-mode +[ref-user-groups]: /admin/users-and-permissions/user-groups \ No newline at end of file diff --git a/docs-mintlify/docs/data-modeling/data-model-ide.mdx b/docs-mintlify/docs/data-modeling/data-model-ide.mdx index 8d5daa3076c15..f22e5800d9654 100644 --- a/docs-mintlify/docs/data-modeling/data-model-ide.mdx +++ b/docs-mintlify/docs/data-modeling/data-model-ide.mdx @@ -9,12 +9,6 @@ Data model editor provides the code-first experience for building and enhancing Unlike the [Visual Modeler][ref-visual-model] editor, it provides the freedom to use all available data modeling features at the expense of a code-centric experience. - - -Available on [all plans](https://cube.dev/pricing). - - - Cube Cloud can create branch-based development API instances to quickly test changes in the data model in your frontend applications before pushing them into production. diff --git a/docs-mintlify/docs/data-modeling/dev-mode.mdx b/docs-mintlify/docs/data-modeling/dev-mode.mdx index 62f12054dfb9a..5d5349a657046 100644 --- a/docs-mintlify/docs/data-modeling/dev-mode.mdx +++ b/docs-mintlify/docs/data-modeling/dev-mode.mdx @@ -6,12 +6,6 @@ description: Outlines development mode in Cube Cloud—branch-scoped APIs, save Development mode allows to test and debug the data model in an isolated [development environment][ref-environments-dev] before releasing any changes to production. - - -Available on [all plans](https://cube.dev/pricing). - - - When you enter the development mode, you'll have access to your personal API endpoints that will track the branch you're on and will be updated automatically when you make changes to the data model. diff --git a/docs-mintlify/docs/data-modeling/sql-runner.mdx b/docs-mintlify/docs/data-modeling/sql-runner.mdx index f6239f2a56360..4e7e0bbe97a2d 100644 --- a/docs-mintlify/docs/data-modeling/sql-runner.mdx +++ b/docs-mintlify/docs/data-modeling/sql-runner.mdx @@ -8,12 +8,6 @@ on your data source or Cube Store. It can be used to inform the development of the data model, for ad-hoc querying as well as debugging SQL queries generated by Cube to execute against the data source. - - -Available on [all plans](https://cube.dev/pricing). - - -