Skip to content

Commit 99bdfe9

Browse files
Add faq.mdx
1 parent 1389fd2 commit 99bdfe9

File tree

1 file changed

+82
-0
lines changed
  • docs/src/content/docs/reference

1 file changed

+82
-0
lines changed
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
title: FAQ
3+
description: Frequently asked questions.
4+
sidebar:
5+
order: 30
6+
---
7+
8+
## Frequently Aked Questions
9+
10+
### What is a seat?
11+
12+
A 'seat' is a is a licensing unit used by dbLinter.
13+
14+
The number of licensed seats determines the maximum number of users that can be registered for a tenant.
15+
16+
Furthermore, a seat is reserved for each unique combination of the following attributes of a client session:
17+
18+
| Attribute | Description |
19+
| --------- | ----------- |
20+
| <span style="white-space: nowrap">Email address</span> | The email address of the dbLinter user used to connect to the dbLinter REST API. |
21+
| IP address | The public IP address used to connect to the dbLinter REST API. |
22+
| MAC address | The first enabled MAC address of the client machine. This may change when switching between network connections. |
23+
| OS user | The operating system user name used to connect to the dbLinter REST API. |
24+
25+
This definition enables an unlimited number of tools to open client sessions on a single machine, with only one seat reserved.
26+
27+
### Who opens a client session?
28+
29+
| Tool | Open Session Event |
30+
| ---- | ------------------ |
31+
| dbLinter VS Code Extension | On activation of the extension. |
32+
| | On session expiration while running checks or tests. |
33+
| dbLinter CLI | On start of a check command. |
34+
| | On start of a test command. |
35+
| SonarScanner | On start of a check run using the dbLinter SonarQube plugin. |
36+
37+
### Who closes a client session?
38+
39+
| Tool | Close Session Event |
40+
| ---- | ------------------- |
41+
| dbLinter VS Code Extension | On closing VS Code. |
42+
| | On reload window. |
43+
| dbLinter CLI | On send of a check command. |
44+
| | On end of a test command. |
45+
| SonarScanner | On end of a check run using the dbLinter SonarQube plugin. |
46+
| dbLinter Repo | On expiration of a client session. This is a logical change based on the server time. No update is necessary to handle this event. |
47+
48+
### What is the TTL of a client session?
49+
50+
This is configured in the dbLinter Repo per tenant.
51+
The default value is 1800 seconds.
52+
The value can only be changed by a product administrator.
53+
54+
### Is it allowed to use access tokens of another user?
55+
56+
No.
57+
Access tokens are personal.
58+
They must not be shared between natural persons.
59+
60+
### What happens when the number of seats is exceeded?
61+
62+
| Tool | Impact |
63+
| ---- | ------ |
64+
| dbLinter VS Code Extension | An error is logged. Problems are no longer being reported. SQL-based tests cannot be run. Neither can CLI commands. |
65+
| dbLinter CLI | An error is logged and CLI stops with an error. |
66+
| SonarScanner | An error is logged and SonarScanner stops with an error. |
67+
68+
### Feature is not enabled for the current access token. Why?
69+
70+
This error message is produced by the language server.
71+
This occurs when the access token does not have the necessary dbLinter roles to run the requested operation.
72+
The same thing happens when an error occurs when reading the configuration, resulting in no roles being found for the access token.
73+
74+
Check the logs for errors.
75+
76+
Typical root causes are:
77+
- Invalid [Remote Access](http://localhost:4321/dbLinter/tools/vscode/settings/#remote-access) settings.
78+
- Exceeded number of seats.
79+
80+
### At what point is the configuration read?
81+
82+
The configuration is read from the dbLinter repo when opening a client session.

0 commit comments

Comments
 (0)