Data access
Roles say what someone may do in your organization (see Roles). Data access says which data they may see. You tag data and people, then write rules such as "export-controlled data only for US persons" or "each programme's data only for that programme's team". Rules hold everywhere your data can be read: in the app, for AI assistants and CI keys, in SQL readers for Grafana, and in what can leave your organization.
Only owners manage data access, in Settings > Data access. Until an owner writes a rule, every member sees all of the organization's data, as before.
How it works#
- Tags on data. Tag a System with facts about it, such as
programme = harrieroritar = true. Its live readings, saved runs, recordings and incidents take the System's tags. A saved run, recording or incident can have tags of its own, and a channel (a reading name such asbattery_temp) can be tagged wherever it appears. - Attributes on people. Give members attributes the same way, such as
programme = harrier, ospreyorus_person = true. Every member also hasrole, set from their role (owner,engineer,site_operator,auditororviewer). SQL readers have attributes of their own, and the rolesql_reader. - Rules. A rule says: data where one condition holds is visible only to people where another holds. Something is hidden from a person when any rule covers it and that person does not meet that rule.
Three things follow from this:
- Data no rule covers stays visible to every member. An untagged System is never caught by a rule.
- Adding a rule can only hide more. It never shows anyone more than before.
- Rules apply to owners too. An owner without
us_person = truedoes not see export-controlled data. Owners can always change tags and rules, so nobody is locked out for good.
When tags disagree, the most specific wins: a channel's tags over a run's, recording's or incident's, and those over the System's. So you can tag a System itar = true and a cleaned-up run from it itar = false.
Tag data and people#
- Open Settings > Data access and go to Tags.
- Under Show, choose Systems, Channels, Saved runs, Recordings, Incidents, Members or SQL readers.
- In the row you want, write the tags as
key = value, with a comma between values and a semicolon between tags, for exampleprogramme = harrier; itar = true. - Choose Save.
Tag names are lower-case letters, digits and _. Values are case-insensitive. Clear the box and save to remove an item's tags. role is set by Avrel and cannot be given as a tag.
Write a rule#
- Under New rule, give the rule a name, for example Export-controlled data. The name is what people see when the rule hides something from them.
- In Data where, write which data it covers.
- In Only people where, write who may see that data.
- Choose Add rule.
A condition is one or more comparisons joined by and:
| Write | Holds when |
|---|---|
itar = true | the tag has this value |
programme != osprey | the tag is set to something else |
programme in (harrier, osprey) | the tag has one of these values |
site not in (bristol) | the tag is set, to none of these values |
customer is set | the tag has any value |
programme = data.programme | (people only) the person shares a value with the data's own tag |
A comparison on a tag the item does not have is false, != and not in included. When the people condition compares with data.<tag>, the data condition must name that tag too, usually as <tag> is set.
Some rules teams use:
| Name | Data where | Only people where |
|---|---|---|
| Export-controlled data | itar = true | us_person = true |
| Programme teams | programme is set | programme = data.programme |
| Customer data | customer is set | customer = data.customer |
| Engineering only | stage = prototype | role in (owner, engineer) |
Choose Edit on a rule to change it, or Remove and then Confirm to remove it. An organization can have up to 50 rules.
See what someone can see#
Under Preview, choose a member or a SQL reader. Avrel lists their attributes and every System, channel, saved run, recording and incident hidden from them, with the rule that hides each. Use it after adding a rule to check it does what you meant.
What people see when data is hidden#
- Telemetry: a hidden System is left out of the list, and opening it says which rule hides it. A hidden channel is left out of the chart, and the response says how many were left out (
hidden_channels). - Explore: hidden Systems, channels, recordings, runs and incidents are left out of the list on the left.
- System Health: a hidden System keeps its name and status, but not its readings.
- Saved runs, recordings and incidents: a hidden one is left out of its list (
hidden_by_access_rulessays how many) and cannot be opened. A visible one loses its hidden channels. - Saving a run or recording an incident: only what you can see is saved, so a run never copies readings its maker could not see.
- Safety rules in operation: every result still shows pass or fail, so release decisions stay complete, but readings you cannot see are replaced by Hidden by a data access rule.
- Investigate with AI: Avrel does not investigate an incident with channels hidden from you, so its draft cannot repeat them.
- Annotations: a note on hidden data is left out of the list and cannot be opened, and no one can add a note to data they cannot see.
- Release reviews: a review is drafted from what its author can see.
- Links to a view: a link to a chart or a run opens with the access of whoever opens it.
Assistants, CI keys and SQL readers#
- An AI assistant or CI key acts for the person who connected it or made it, so it has exactly that person's attributes and rules. Assistants cannot read or change tags and rules (see AI assistants).
- A SQL reader has its own attributes, set in Tags under SQL readers. Its views leave out hidden Systems, channels and incidents, and change as soon as an owner saves a tag or rule. See SQL access for Grafana.
- Data a rule covers never leaves your organization through data sharing: such an incident cannot be queued or shared, whoever asks.
The audit log#
Every change to tags and rules is in the audit log, with what it was before and after. Every time a rule refuses someone, in the app or through an assistant or key, the log records data_access.refused with the person, the item and the rule.