Sharing a Dashboard
A dashboard can be shared outside your workspace through a secure link, so stakeholders can view the report without a Kvery account or any SQL knowledge.
Turning sharing on
Every dashboard has a unique, hard-to-guess share link from its creation. Click
Share next to the dashboard in the list and tick Enable sharing? in the
Share dashboard window to open it: anyone with the link can then open the
dashboard. Only the group's owner and its editors can share a dashboard. Untick it
at any time to immediately revoke access; turning it back on restores the same
link with its password and expiry date. While sharing is on, the window shows the
link in its Normal block and, with a QR code, in its Mobile block for the
Kvery mobile app. The link can also be shown in a frame
(<iframe>) on a page of another site (see
Share URLs and embedding).
While sharing is off, or once the expiration date has passed, the link answers like an unknown address: an empty page (HTTP 404).
Protecting the link
Two controls let you lock the link down. They appear in the window while Enable sharing? is ticked:
- Password protection — enter a password and click Set password protection to require it before the shared dashboard will load, so the link alone isn't enough to view it; empty the field and click the button again to remove it. Visitors see an Access required page: they enter the password and click Send, and a wrong password shows "Invalid password!". Everyone who can change the sharing settings sees the current password in the window. Wrong passwords are counted per client address (an IPv6 address counts by its /64 network) and per link: after 20 wrong passwords, every attempt from that address for that link is refused ("Rate limit exceeded. Try again later."), even with the right password, until 5 minutes have passed since the last wrong attempt.
- Link expiration date — pick a date and time and click Set expiration date; the link stops working automatically at that moment. Without a date the share lasts indefinitely. Useful for time-boxed access.
The password and the expiry protect every tile as well, not only the page: a tile only loads while the link is valid and the viewer has entered the current password. An entered password is kept in the browser's session, or in the Kvery mobile app for the device. After you change the password, everyone has to enter the new one.
Combine both for sensitive dashboards: a password to gate access and an expiry so it doesn't stay open forever.
The page of a shared dashboard opens from any address, but the group's IP whitelist applies to its tiles: for a visitor from an address that the whitelist of a tile query's group does not allow, that tile stays empty (HTTP 403).
Tiles and the queries they open
A tile whose query belongs to another group than the dashboard loads on the shared link only while the user who created the dashboard may share that query: as the owner or an Editor of the query's group, or as its Manager with one of the query's tags when that user's member tags restrict them in that group. A member who may only run the queries of a group cannot place them on a dashboard of another group: saving such a tile answers with a permission error. This rule does not affect the tiles of the dashboard's own group, or a viewer who is signed in to Kvery and can run the query as a member of its group.
A query that a tile opens — through a link field or the add button — and a tile's import run according to who the viewer is:
- A viewer who is signed in to Kvery and can run that query as a member of its group runs it through that membership.
- A viewer who is signed in as the owner or a member of the dashboard's group can also open such a query through a link field or the add button under the dashboard's link, with the same protection; the rule for queries of other groups applies to it as well, and a viewer restricted by member tags opens only the queries their tags allow.
- For every other viewer — a visitor who is not signed in, or a Kvery user outside the group — the query runs only when it is shared itself. When its own link has a password, a link field or the add button asks for it, and an import is refused until it has been entered. A query that is not shared sends the viewer to its run page in Kvery, which asks a visitor to sign in; an import through it is refused.
What recipients see
Viewers get a clean render of the tiles and their results. They can't change the
dashboard, see your SQL, or reach the rest of your workspace. A tile can still
show its query's form, and submitting it runs the query — a query that changes
data included — so leave such queries off shared dashboards unless that is
intended. Link fields and add buttons work as the previous section describes.
While a tile's query has an unpublished draft, viewers of
the shared link see the published version; an editor of the query who is signed in
can view the draft by adding ?draft to the link.
Tips
- Only the data the tiles return is exposed — design tile queries to reveal
exactly what you intend, and leave internal columns out of the
SELECT:hidden::only hides a column when the table opens; viewers can show it again with Columns, find it in CSV and Excel exports, and its values reach their browser. - The share link stays the same while the dashboard exists. To lock out previous viewers, change the password or turn sharing off.
- For programmatic access to a single query's data, prefer the public API over a shared dashboard.