Settings → Sign-in security (administrators). A second factor itself is free for every user (see above); the policy around it is for organisations.
- Require a second factor (Small business and Enterprise editions, and the free trial): nobody, administrators, administrators and operators, or everyone. When the policy is switched on a grace period (default 14 days, also counted from the day an account is made) lets users set it up; a banner reminds them. After that a user without a second factor can sign in but only the Account page opens, until it is set up: every other request, including the terminal and the credential store, is refused. People who sign in through single sign-on are not asked (their identity provider does it), and API tokens are not interactive. An administrator can reset another user’s second factor (Users & tokens → Reset 2FA): they prove who they are first (a code from their own authenticator, or their password if they have none), the user’s sessions end, an event is raised and the audit log says who did it.
- Session limits (Enterprise edition and the free trial): sign out after N minutes without activity, sign out N hours after signing in whatever happens, and keep only the newest N sessions of a user. By default a session lasts 30 days with no idle limit; the limits are off until you set them (30 minutes idle and 12 hours are common). An administrator can see and end the sessions of other users (Users & tokens → Sessions).
- Your own sessions (every edition): Settings → Account shows where you are signed in (browser, address, how you proved who you are, when) and lets you end any other session, or all of them. The session list never shows the secret of a session.
- Step-up confirmation for privileged actions (Enterprise edition and the free trial): switch it on and the actions that matter ask for a fresh confirmation, default valid for 10 minutes: opening a terminal or remote session, anything in the credential store, users, API tokens, single sign-on, plugins, host set-up, backups and restore, remediation rules, remote-site commands, the host-agent settings, and reading the master key. A person confirms with a code from their authenticator (or a recovery code), with their password if they have no second factor, or with a fresh sign-in at the identity provider if they signed in through single sign-on (Netlens asks for
prompt=loginand a recentauth_time). The interface asks once and repeats what you were doing. The access token and API tokens cannot confirm, so they are refused for these actions (403): there is nobody to ask, which is the point. Enabling it needs at least one administrator account. A test walks every route of the application and fails when a route that touches secrets, accounts, remote access or code execution is neither on the privileged list nor on the short, documented list of exceptions (app/stepup.py). - The access token (
NETLENS_TOKEN) (Enterprise): allowed, only from the local network, or switched off. It signs in as administrator with no user name and no second factor, so once somebody has a second factor the dashboard says to remove it from the container’s environment. Switching it off needs an administrator account. - Password sign-in and break-glass accounts (Enterprise): with single sign-on set up, limit password sign-in to break-glass accounts: local administrators that you mark in Users & tokens, that must have a second factor, and whose every use raises a critical event and an audit line. They are the way in when the identity provider fails. Netlens refuses to limit password sign-in until one exists.
- API tokens (Enterprise): a longest life for new tokens (they get it by default), and a list of addresses or networks a token may be used from; both are shown in the token list. An expired token, or a token used from another address, is refused.
- A setting stays in force when a licence ends. Only changing it needs the edition; a lapsing licence never weakens security.
Three tabs
The Sign-in security page is in three tabs with one Save: Sign-in (second factor policy and sessions), Logins & access (the access token, password sign-in, the life of API tokens and where administration may be done from) and Privileged actions (confirmation, four-eyes approval, session recording and access review).