Phase

Proto: phase.proto

Package: common.gloo.solo.io

Types:

PrioritizedPhase

Prioritized phase is the phase at which a given policy should be applied. The 2 pre-defined phases are “pre” and “post” AuthZ. In addition to the phase, you can specify a priority to indicate at what point this policy should be applied relative to other policies defined in the same phase. For Example, if you have the following policies defined with phases and priorities:

1.
phase:
  preAuthz:
    priority: 1
2.
phase:
  preAuthz:
    priority: -1
3.
phase:
  preAuthz: {}

The policies will be run in the following order: (2, 3, 1).

Note: The default phase is defined per policy type which you can find in the policy reference documentation. The following policies currently implement prioritized staging:

Field Description
preAuthz (PrioritizedPhase.Phase)

Apply this policy before Authorization policies are applied.
postAuthz (PrioritizedPhase.Phase)

Apply this policy after Authorization policies are applied.

PrioritizedPhase.Phase

A message that describes each individual phase.

Field Description
priority (google.protobuf.Int32Value)

The priority at which this policy should be applied relative to other policies defined in the same phase. The lowest priority will be run first and the default priority value is 0. For information about the value format, see the Google protocol buffer documentation.