Перейти к содержимому

Global policy

The global policy is the only place in OkYouIn that allows or denies a sign-in. It is one ordered list of rules covering every application and every protocol — RADIUS, OIDC, SAML, the Verify API and the Windows logon agent. Rules are evaluated top to bottom and the first rule whose conditions all match wins. A fixed Default rule at the end catches everything else.

Open Access ▸ Policies ▸ Policy Table.

PartWhat it does
NameFree text, not unique. The editor suggests one from the rule’s contents (applications · groups · time range → action); click Use this to take it, or leave the field empty to get the suggestion on save.
DescriptionFree text for your colleagues.
EnabledDisabled rules are skipped during policy evaluation.
ApplicationsAny application — every application, also ones added later — or a list of applications of any mix of protocols.
ActionAllow lets the login in; whether a second factor is asked is each application’s MFA setting and rules. Deny refuses the login before any MFA.
WhoAny user, or one or more user groups. Matches if the user belongs to any of them.
SourceAny source, or one or more network objects. Matches if the end user’s IP is inside any of them. An unknown IP never matches.
CountryAny country, or one or more country lists. Matches if the end user’s IP is located (GeoIP) in a country of any selected list. See GeoIP.
WhenAny time, or one time range (weekly windows, system time zone).
ValidityOptional Valid from / Valid until. Outside these instants the rule is skipped as if switched off; it stays in the list, greyed, with a Starts … or Expired … badge.

Inside a condition any item matches; all conditions must match. There are no raw IP addresses or country codes on a rule — addresses come from network objects and countries from country lists, so they can be reused, and OkYouIn can tell you where each object is used.

When a rule is checked, the conditions are tested in this order: enabled → validity → application → time → groups → source → country. The first one that fails ends the check for that rule, and the policy tester shows which one it was.

The last row, under the dashed separator, is the Default rule. It has no conditions and is always in force; only its action can change. It ships as Deny, which means a fresh installation lets nobody in until you add an Allow rule — the empty policy table says so: “Every login to every application hits the Default rule. Add a rule to let users in.”

  1. Click Add Rule, or use the row actions Insert rule above / Insert rule below to place it exactly. Duplicate copies an existing rule as a starting point.

  2. Choose the Applications (or keep Any application) and the Action.

  3. Under Match Conditions, switch off Any on each condition you need and pick the groups, network objects, country lists or time range. Missing objects can be created from the picker without leaving the editor.

  4. Set an optional validity period, then Create Rule. The rule is saved at once.

  5. Drag rows by their handle to reorder. Dragging is disabled while table filters are active, and for operators without permission to manage policies.

The table groups consecutive rules that cover the same protocols under a header (for example RADIUS · 3 rules or All applications). This grouping is visual only — the list is still evaluated strictly top to bottom across groups.

Expanding a row shows its full conditions and, for an Allow rule, the application rules that will apply next, with a link to each application’s settings.

  • Specific before general. A Deny for one group must sit above the broader Allow it carves out of.
  • Country denies first. A “block these countries” Deny rule usually belongs at the very top, so no later Allow can let those requests in.
  • Keep the Default rule as Deny and write explicit Allow rules per application or per group of applications.

The editor never blocks a rule that is merely unwise, but it tells you:

  • Source never matches — an application in the rule does not report the end user’s IP, so a Source condition can never match it.
  • Country always Unknown — the same, for the Country condition.
  • Deny rule ignores unknown countries — a Deny rule’s country lists contain neither Unknown nor Local network, so requests whose country cannot be determined, or that come from private addresses, are not matched by it. Add those entries to the list if they should be denied too.
  • No GeoIP database — every request’s country is Unknown until a database is installed. See GeoIP.

An application, group, network object, country list or time range used by a rule cannot be deleted: the delete is refused with the list of rules that use it. Removing the last application of a rule would otherwise silently turn it into Any application. Edit or delete the rules first, then the object. See Network objects, country lists & time ranges.

Viewing and managing the policy is governed by the Access policy section of an RBAC model. Picking applications, groups, network objects, country lists or time ranges in a rule also needs the View permission of those sections; the editor says so when one is missing. See Console roles & RBAC. Every create, change, reorder and delete is written to the audit log.