Define system-wide security policies.
Reference → Modules → Security → UI → RuntimeUsers | Users | Permissions | Policies | Identity Providers | Secrets | Monitor
Security Policies (Reference) enforce password requirements, electronic signatures, and session management rules for regulatory compliance and security best practices.
Security Policies provide:
Policies enable FDA 21 CFR Part 11 compliance and other regulatory requirements.
Three standard policies are configured:
| Policy | Use Case | Typical Settings |
|---|---|---|
| Default | Standard operations | Basic password, no timeout |
| Enhanced | Elevated security | Complex password, session timeout |
| Critical | Regulatory compliance | Strong password, e-signature, strict timeout |
| Property | Description | Required |
|---|---|---|
| Name | Unique policy identifier | Yes |
| Identification | Password and account rules | Yes |
| ESign | Electronic signature settings | No |
| Session | Timeout and auto-logoff | No |
| Description | Documentation text | No |
Password and account management rules:
| Property | Description | Range | Default |
|---|---|---|---|
| PasswordMinLength | Minimum characters | 0-128 | 0 (no limit) |
| PasswordHistory | Previous passwords to remember | 0-5 | 0 |
| MinPasswordAge | Hours before change allowed | 0+ | 0 |
| MaxPasswordAge | Hours until expiration | 0+ | 0 (never) |
| Property | Description | Range | Default |
|---|---|---|---|
| UserNameMinLength | Minimum username length | 0-128 | 0 |
| BlockOnInvalidAttempts | Failed logins before lockout | 0+ | 0 (no limit) |
| BlockAging | Hours until auto-unlock | 0+ | 0 (manual) |
| AllowPasswordChange | Users can change own password | Yes/No | Yes |
| AllowShareUser | Multiple concurrent sessions | Yes/No | Yes |
Electronic signature requirements for critical actions:
| Property | Description | Use Case |
|---|---|---|
| Enabled | Require e-signature | FDA compliance |
| TimeoutMinutes | Signature validity period | Re-authentication frequency |
Example:
csharp
// Check if e-signature required
if (@Security.Policy.ESign.Enabled)
{
// Prompt for password
if (!@Security.ValidateESignature())
{
return; // Action cancelled
}
}From FrameworX 10.1.6, each electronic-signature outcome on the operator client is recorded in the audit trail with the user and the result:
Cancel takes precedence over a password check still in progress. When an operator presses OK and then Cancel before the check finishes, the signature is not accepted, the protected action does not run, the prompt does not reopen, and the audit trail records the cancellation. A wrong password entered before Cancel is also recorded as a refused signature.
These entries need Enable Audit Trail and User Logon/Logoff checked in Alarms → Global Settings. In 10.1.5, electronic-signature prompts leave no audit record.
From FrameworX 10.1.6a, a ComboBox with Is Editable checked and its list closed writes the typed value before an action runs: a button, shape or symbol with an action, a hotkey, or the OK button of a dialog. When the Security settings of the ComboBox require an electronic signature, the press opens the signature prompt and does not run the action:
While an earlier signature is still valid (TimeoutMinutes above), no prompt opens, and the action runs at once with the new value. On the desktop client, a click elsewhere on the display also writes the typed value and opens the prompt. See ComboBox Control Reference.
Automatic logoff configuration:
| Property | Description | Options |
|---|---|---|
| AutoLogOff | Logoff trigger | None, Inactivity, Duration, Both |
| InactivityMinutes | Idle time before logoff | 1-9999 |
| DurationHours | Maximum session length | 1-9999 |
| Mode | Behavior | Use Case |
|---|---|---|
| None | No automatic logoff | Dedicated stations |
| Inactivity | Logoff after idle time | Shared workstations |
| Duration | Logoff after time limit | Shift changes |
| Both | Either condition triggers | Maximum security |
From FrameworX 10.1.6, when the policy assigned to a user cannot be found, sign-ins by user name and password, by token, through OpenID Connect and through the built-in administrator sign-in use the policy of the Guest user for the session. The user keeps the same permissions, so solutions upgraded from an earlier version keep admitting the same users. Electronic signature, signature timeout, automatic log-off and password change follow the Guest user's policy, and the trace records a warning naming the user and the missing policy. Windows Authentication sign-ins are admitted as before.
The sign-in is refused with the error PolicyNotFound only when the Guest user's policy cannot be found either. To correct either case, assign an existing policy to the user in Security → Users.
csharp
// Get current user's policy
string policyName = @Security.CurrentUser.Policy;
// Check policy settings
var policy = @Security.Policies[policyName];
bool requiresESign = policy.ESign.Enabled;
int passwordMinLength = policy.Identification.PasswordMinLength;Policy: Critical
Identification:
- PasswordMinLength: 8
- PasswordHistory: 5
- MaxPasswordAge: 2160 (90 days)
- BlockOnInvalidAttempts: 3
ESign:
- Enabled: True
- TimeoutMinutes: 30
Session:
- AutoLogOff: Both
- InactivityMinutes: 15
- DurationHours: 12Policy: Enhanced
Identification:
- PasswordMinLength: 12
- AllowShareUser: False
- BlockOnInvalidAttempts: 5
- BlockAging: 24
Session:
- AutoLogOff: Inactivity
- InactivityMinutes: 10Account locked:
Password rejected:
Unexpected logoff:
E-signature issues: