Use SANAD Backup
Users and security
Roles and permissions, user accounts, password rules, two-factor authentication, sessions, the audit log and how SANAD Backup protects secrets.
Roles and permissions
Every account has one of three roles:
| Role | Intended for |
|---|---|
| Admin | Setting up and running SANAD Backup: connections, jobs, destinations, schedules, restores, users and settings. |
| Operator | Day-to-day monitoring of backups. |
| Viewer | Read-only access. |
Accounts are added by invitation from the Users page (see Invite a user).
The job wizard, Run Now and Connections are for administrators. The sidebar shows Schedules, Restore, Connections, Log shipping and its Monitoring and Administration sections only to administrators; Operators and Viewers see the Dashboard, a read-only Backup Jobs list and History, and manage their own profile and two-factor authentication from the account menu (their name, top right). For Schedules and Restore, only the sidebar links are limited to administrators: with the default permissions, an Operator can still open both pages by their address. To prevent that, untick Restore backups and Manage schedules for the Operator role on the Permissions page.
The Permissions page (Administration section) is a grid of permissions by role. Tick or untick a box to grant or revoke a permission for the Operator or Viewer role. The change is saved at once and applies to the next request in the app where you made it; other running SANAD Backup apps pick it up when they restart. Pages reserved for administrators stay so whatever the grid says. The Admin column always keeps every permission.
Manage user accounts
The Users page (Administration section) lists each account with its username, email, sign-in provider, role, status and last sign-in.
- Role: choose a new role in the account's row.
- Disable blocks sign-in at once and ends the account's open sessions, web and desktop, within about two minutes; Enable allows sign-in again.
- Reset 2FA removes the account's authenticator and recovery codes, so the user can set up two-factor authentication again. It asks for confirmation first.
- Delete removes the account permanently.
The role, Disable, Enable and Delete actions apply only to other accounts: you cannot change your own role, or disable or delete your own account.
Invite a user
An invitation link starts with the dashboard address for links: the HTTPS address people use to open this dashboard, such as https://backup.example.com. Set it once in Settings → Dashboard address, or in the invitation dialog when it asks. It must start with https:// and must not be an address that only works on this computer, such as localhost: off this computer the dashboard signs people in only over HTTPS. SANAD Backup never takes it from the address in your browser.
To invite someone, choose Invite user on the Users page, enter their email address and role, and choose Create invitation. The dialog then says what happened:
- Invitation emailed: outgoing email is set up (Outgoing email) and the mail server accepted the message.
- Not emailed: outgoing email is not set up. The dialog shows the link with a Copy button: send it to the person yourself.
- The email could not be delivered: the reason is shown with the link. Copy the link, or choose Resend later.
- Created without a link: the dashboard address is not set yet. Save it, then choose Resend.
The link is shown only when it is created or resent, and is never stored. It works once, for seven days. The person opens it, chooses a password under the usual password rules, and signs in with the role you chose.
Under the users, Invitations lists the pending ones and those accepted, expired or revoked in the last 30 days (older ones stay in the audit log), with their role, delivery and expiry. Resend issues a new link, emails it when it can and restarts the seven days; the old link stops working. Revoke withdraws a pending invitation after a confirmation; its link stops working. An address that already has an account, or a pending invitation, cannot be invited again (choose Resend instead).
While Require it for administrators is on, an Administrator cannot be invited (a new account cannot set up an authenticator while accepting): invite the person with another role, let them set up an authenticator, then promote them.
Unsaved changes
Leaving a form with changes you have not saved — the Security and Dashboard address settings, the job wizard, the script editor, the connection dialog or a destination editor — asks Stay or Discard changes first. In the web dashboard a reload or closing the browser tab shows the browser's own warning; in the desktop app closing the window asks the same question. Nothing is ever saved for you. Signing out, and a session that ends, do not ask: the changes are dropped.
Passwords
Every new password must have at least 8 characters, an uppercase letter (A–Z) and a digit (0–9), and must differ from the username and from the current password. Each password form lists the rules and every rule a password breaks.
To change your own password, open Profile from the user menu and choose Change password. Your other signed-in sessions end within a few minutes; this one stays signed in. Profile also shows your role, how you sign in and when your password was last changed.
A forgotten password can be reset on the server with the command-line tool, in an administrator command prompt — see First sign-in.
Two-factor authentication
Two-factor authentication is off on a new installation: sign-in asks only for the password. An administrator turns it on for the whole installation in Settings → Security: switch on Two-factor authentication and choose Save security settings. While it is on, every user who has set up an authenticator is asked for a code at sign-in; a user without one still signs in with the password alone. Require it for administrators also refuses the sign-in of an administrator who has no authenticator, so it can be switched on only once every active administrator has set one up. Turning two-factor authentication off keeps the authenticators already set up, for when it is turned on again. An installation upgraded from an earlier version keeps it on if anyone had set up an authenticator there.
The administrator rule also applies to settings imports and later account changes. While it is on, an active administrator's authenticator cannot be disabled or reset, and an account without one cannot be promoted or re-enabled as an administrator. Turn off Require it for administrators first. While the rule is on, an Administrator cannot be invited; invite an Operator, let them enrol, then promote them.
Turning two-factor authentication on ends existing sessions that have not verified a code, for accounts with an enabled authenticator, within about two minutes. Those users sign in again with their password and a code. A session that already verified a code stays signed in.
If no administrator can sign in, open Terminal as administrator on the SANAD server and run:
Sanad.CLI security two-factor off
The command checks that the database already exists before opening it. Check that the printed store path is the server's existing database. If it is wrong or missing, follow the command's instructions to select the correct store. It turns both two-factor settings off, keeps authenticator enrolments and records the OS operator in the audit entry under an existing administrator account. Sign in with the password, recover the authenticator, then turn the settings back on. If an audit write fails after saving, Settings and the recovery command report that the settings were saved with an audit warning.
Each user sets up an authenticator for their own account, also while two-factor authentication is off:
- Open the account menu (your name, top right) and choose Two-factor authentication (or Two-factor authentication on Profile).
- Choose Set up authenticator.
- Scan the QR code with an authenticator app, or type the Manual entry secret.
- Enter the 6-digit code in Verification code and choose Verify and enable.
- Verify and enable does not create recovery codes: until you choose Regenerate recovery codes, you have none. Choose it and store the eight codes somewhere safe. They are shown only once, and each works once.
While two-factor authentication is on, the sign-in page has an Authenticator code box: enter the 6-digit code from the app — or one unused recovery code — there. Regenerate recovery codes replaces all earlier codes. Disable two-factor turns it off for your account; an administrator can do the same with Reset 2FA.
Sessions
- A web dashboard session ends after 8 hours without activity, or when the browser is closed. An open but idle browser tab does not keep it alive.
- Tick Remember me at sign-in to stay signed in on that device. The web dashboard then keeps the session for 30 days without activity, also after the browser is closed. The desktop app signs you in by itself the next time it starts, for the same Windows user, until you choose Logout (or after about 30 days without opening the app).
- A password change, a disabled account or a role change ends the account's other sessions — web and desktop — within about two minutes. The desktop app then says that the session ended because the account's password or the account was changed elsewhere.
- Turning two-factor on ends sessions without a verified second factor when the account has an enabled authenticator. This includes remembered web and desktop sessions. Successful remembered desktop restores update the last sign-in time and record a sign-in audit entry.
- Every web dashboard page requires sign-in, except the sign-in page, the invitation page and the health check.
Saving installation settings
On Settings, use the section links to move between security, dashboard address, sign-in providers, email, data management and system information. Moving between sections keeps your entered values. Each section saves separately; exporting includes saved values only.
Before applying a settings import or restoring configuration, save or discard any security and dashboard-address edits. The preview stays available while you resolve those edits. A refused address save keeps what you entered so you can correct it; Discard address changes restores the last saved address.
Reset to Defaults clears only stored external sign-in provider configuration. It keeps the security policy, dashboard address, email settings, connections and jobs.
Audit log
The Audit log (Monitoring section) records sign-ins (including refused ones), password changes, changes to user accounts (invitations created, resent, revoked and accepted, role changes, disable, enable and delete), changes to the installation's two-factor authentication setting and to the dashboard address, and settings imports. Job runs and changes to jobs, connections, destinations, schedules, other settings, permissions and each user's own authenticator are not recorded.
Each entry shows when it happened (UTC), the user's ID, their role, the action (such as User.PasswordChanged), the target, the client address and, for changes, the values before and after (view diff). Secrets are removed from the recorded values. The page shows the 200 most recent entries; filter them by user ID, action and dates. Export CSV saves the filtered entries without their before and after values.
Backup encryption
Jobs can encrypt every backup with AES-256-GCM and a password you choose. Keep a copy of that password outside SANAD Backup: without it an encrypted backup cannot be restored. See Backup jobs.
How SANAD Backup protects stored secrets
SANAD Backup stores SQL Server passwords, network-share passwords, destination passwords, keys, tokens and connection strings, email (SMTP) passwords, Gmail sign-in tokens, job encryption passwords, webhook signing secrets and two-factor secrets encrypted with Windows Data Protection (DPAPI) in the computer's scope. Saved secrets are never sent back to the browser. The desktop remembered session is stored separately under the Windows user's local application data, encrypted with DPAPI in that user's scope.
What this protects, and what it does not:
- It protects copies of SANAD Backup's data taken off the computer — a copied database cannot be decrypted elsewhere.
- It does not protect against other accounts that can sign in to this computer and read
%ProgramData%\Sanad: any program on the computer can decrypt values protected in the computer's scope. On shared servers, restrict that folder to administrators and the service accounts. SQL Server's service account must keep access to thebackups\stagingfolder inside it. - Slack and Microsoft Teams incoming-webhook URLs are stored as entered, without this encryption.