Help › Stay safe

Share your screen safely

Hide host names, users and databases with one switch, mask the columns you mark sensitive, and show one value when you need it.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

Before you share your screen in a call or a demo, turn on screen-share mode. Querlyn then hides where your databases are, what they are called and who you are on them, and masks the columns you have marked sensitive, everywhere their values could be seen or leave Querlyn.

Turn screen-share mode on

Click Screen Share at the right of the status bar, press ⇧⌘M on macOS or Ctrl+Shift+M on Windows and Linux, or choose View › Toggle Screen-Share Mode. While it is on, a band across the top of the window says so, and the status bar's button reads Screen Share On. Choose Turn Off in the band, or the same command again, to turn it off.

Querlyn remembers the mode on this computer: if Querlyn starts again while you are still sharing, it starts with the mode on. The setting is not synced to your other computers.

What is hidden

While the mode is on, host names, IP addresses, ports and user names are replaced by address hidden or [host name hidden] and the like:

  • in the status bar, the connection button above the editor and its list, and the tooltips of the connection tree;
  • in the connection dialog: the host, port, database, user, file and bastion fields show dots, and the button at the end of a field shows it while you need it; Test Connection says only which server version it reached;
  • in messages and their details, the results' messages, the steps of a connection that fails, the questions Querlyn asks (such as whether to trust an SSH host's key), and the statement console's descriptions of what Querlyn sent;
  • in Server Activity and in the list of sessions waiting for your transaction: other sessions' users and client addresses (the list of waiting sessions leaves out their databases too);
  • in the Users and Roles tab: each user's name is a placeholder, User 1, User 2 and so on, in the list, the grids, the changes and the questions (roles keep their names); see Manage users, roles and privileges;
  • in the paths of files in tab tooltips;
  • in the list of connections to import.

Connection names stay: they are your own labels.

Database names

Database names are hidden too. So that you can still find your way, each database is shown as a placeholder, Database 1, Database 2 and so on, numbered in the order the connection tree lists them. A database keeps its placeholder everywhere until you quit Querlyn, and a name that two connections share has one placeholder. The placeholder is shown:

  • in the connection tree's database rows (on MySQL, MariaDB and ClickHouse, whose databases the tree lists as schemas, in those rows; the row above them reads Databases), and typing a row's first letters finds it by its placeholder;
  • in tab names: a table's tab reads Database 2.orders, and a query tab shows its database's placeholder after its title;
  • on the database button above the editor, in its list, and in Query › Choose Database for This Tab…;
  • in Run on Several Connections: the list of targets, the status of each and the merged result's Database column;
  • in where a scratch table came from, in Server Activity's sessions, in query history, in schema comparisons and ER diagrams, and in the backup and restore dialog, which then asks you to type the placeholder to confirm a restore.

In messages and their details, in the questions Querlyn asks and in the statements Querlyn sends of its own in the statement console, a database's name reads [database name hidden].

Table and column names stay, and so do schema names where they are not databases. So does SQL you typed, in the editor, in history and in the console: Querlyn never rewrites it.

Mark a column sensitive

A column you mark is masked in screen-share mode: its values show as ••••••••, always the same width, so not even their length is shown. NULL stays NULL, so you can still see which rows have no value.

To mark a column:

  • in the results, right-click its header or a cell and choose Command Palette › Results: Mask Column;
  • in a table's tab, the same, from the column's header;
  • in the connection tree, open a table, right-click the column and choose Mask Column.

Command Palette › Results: Stop Masking Column removes the mark. The tree shows masked after a marked column's type, and a masked column's header in the results says masked under its name.

Marks belong to a connection and are kept on this computer. They are not synced yet.

Which result columns a mark covers

Querlyn masks more rather than less. A mark on customers.email masks:

  • every result column named email, from any table or view of that connection;
  • a column that shows it under another name (email AS contact);
  • a column computed from it (lower(email));
  • every column Querlyn cannot trace to a table, in a statement that mentions email (a UNION, the * of a subquery).

A view that renames the column is not followed into its table: mark the view's column too.

Accept suggested columns

While masking applies, Querlyn looks at the names of the columns a result shows. When some look sensitive (email, ssn, phone, address, date_of_birth, card_number, salary, password, token, ip_address, first_name and the like), a band above the results offers to mask them:

ButtonWhat it does
MaskMarks them. Command Palette › Results: Mask Suggested Columns does the same.
Not NowLeaves them shown and does not offer them again until Querlyn quits.
Don't Suggest AgainLeaves them shown and never offers them again. Command Palette › Results: Don't Suggest These Columns Again does the same.

Nothing is masked until you answer: a suggestion is only a suggestion.

Show a masked value

To read one value, click Show at the right of the masked cell under the cursor, press ⌥⌘V on macOS or Ctrl+Alt+V on Windows and Linux, or right-click the cell and choose Command Palette › Results: Reveal Value. It shows for five seconds, or until you move to another cell, and is masked again.

To read a whole column of one result, choose Command Palette › Results: Show Masked Column… from the column header's menu and confirm. The column shows until you turn screen-share mode off; its header says shown.

Showing a value never lets it leave the screen: copies and exports stay masked.

Where masked values never go

Masking is how Querlyn shows and writes values; the database is never asked to mask anything, and your queries run as you wrote them. Masked values are the placeholder in:

  • the grid, the record view, the value viewer and the row a foreign key leads to;
  • every copy format, and Copy in the value viewer;
  • every export format, whether the export reads the loaded rows or runs the query again;
  • charts: their labels, tooltips, copied data and exported pictures;
  • column profiles: a masked column is profiled into counts only, never its values, on the loaded rows and on the server;
  • the statements shown before row changes are applied, and the rows of a dry run;
  • execution plans and plan comparisons: a condition that names a masked column shows every value in it as the placeholder;
  • a problem report: the masked values of the results you have open are removed wherever a message or the log quotes them;
  • a notebook's file: a masked column's values are left out of it and the column is marked masked, so it stays masked wherever the notebook is opened.

A few things are refused instead, with a message saying why: Filter by This Value in a table's tab (it would write the value into the WHERE field), following a foreign key whose column is masked, Copy Plan and the plan's Raw output when the plan quotes a masked column's value, and, while the mode is on, Revert This Change for a change of a masked column (the statements would hold its values).

Mask on a connection all the time

In the connection dialog, Mask columns chooses when a connection's marks apply: In Screen-Share Mode, or Always. Production connections start with Always, every other environment with In Screen-Share Mode. The choice is kept on this computer.

With Always, marked columns are masked whenever that connection's rows are shown, and the rest of this page applies to them, except that addresses are hidden only in screen-share mode, and a revert script is written.

Help for Querlyn 0.1.0. All help topics