API referenceSections

Password and session policy

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

GET /api/v1/tenants/{tid}/security/password-policy

Password and session policy (ADR 0112); provider administrators on the root tenant only

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired

Responses

200 Policy

Content type: application/json

  • policy PasswordPolicy required
    • panel PasswordRules required
      • min_length integer required

        Shortest password; at least the scope's floor, at most 64

      • min_classes integer required

        Kinds of characters (lower, upper, digit, other) required; 0 or 1 asks for no mix

        • minimum 0
        • maximum 4
      • block_common boolean required

        Refuse common passwords and their simple variations (offline list)

      • block_context boolean required

        Refuse a password containing the account's own name, e-mail or domain

    • mailbox PasswordRules required

      Fields of PasswordRules are shown above.

    • ftp PasswordRules required

      Fields of PasswordRules are shown above.

    • database PasswordRules required

      Fields of PasswordRules are shown above.

    • breach_check boolean required

      Ask the Have I Been Pwned range API with a 5-hex-digit SHA-1 prefix; off by default (ADR 0112)

    • force_change boolean required

      Send panel users whose password fails the panel rules to the change page at their next sign-in

    • session_idle_minutes integer required
      • minimum 5
      • maximum 1440
    • session_max_hours integer required
      • minimum 1
      • maximum 720
  • floors map<string, integer> required

    Lowest minimum length per scope

  • common_count integer required

    Entries in the offline common-password list

Example
{
  "policy": {
    "panel": {
      "min_length": 0,
      "min_classes": 0,
      "block_common": true,
      "block_context": true
    },
    "mailbox": {
      "min_length": 0,
      "min_classes": 0,
      "block_common": true,
      "block_context": true
    },
    "ftp": {
      "min_length": 0,
      "min_classes": 0,
      "block_common": true,
      "block_context": true
    },
    "database": {
      "min_length": 0,
      "min_classes": 0,
      "block_common": true,
      "block_context": true
    },
    "breach_check": true,
    "force_change": true,
    "session_idle_minutes": 5,
    "session_max_hours": 1
  },
  "floors": {
    "key": 0
  },
  "common_count": 0
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required