WORKERS AHEAD!
You are viewing the development documentation for the Apereo CAS server. The functionality presented here is not officially released yet. This is a work in progress and will be continually updated as development moves forward. You are most encouraged to test the changes presented.
CAS - Distributed Tracing
CAS ships auto configuration for the following tracers:
Platform | Reference |
---|---|
OpenTelemetry | See this guide. |
Zipkin Brave | See this guide. |
Jaeger | See this guide. |
The following settings and properties are available from the CAS configuration catalog:
- Required
- Optional
- Signing & Encryption
- Hibernate & JDBC
- Email Servers
- Groovy Scripting
- LDAP & Active Directory
- Authentication
- Password Encoding
- Principal Transformation
- Password Policy
- Third Party
- Notes
management.tracing.baggage.correlation.enabled=true
Whether to enable correlation of the baggage context with logging contexts.
CAS Property:
|
1 |
management.tracing.baggage.correlation.enabled=true |
1
management:
tracing:
baggage:
correlation:
enabled: "true"
1
java -Dmanagement.tracing.baggage.correlation.enabled="true" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_BAGGAGE_CORRELATION_ENABLED="true"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.baggage.correlation.enabled="true"
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.baggage.correlation.fields=
List of fields that should be correlated with the logging context. That means that these fields would end up as key-value pairs in e.g. MDC.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$Baggage$Correlation.
CAS Property: management.tracing.baggage.correlation.fields

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.baggage.correlation.fields=...
1
management:
tracing:
baggage:
correlation:
fields: "..."
1
java -Dmanagement.tracing.baggage.correlation.fields="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_BAGGAGE_CORRELATION_FIELDS="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.baggage.correlation.fields="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.baggage.enabled=true
Whether to enable Micrometer Tracing baggage propagation.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$Baggage.
CAS Property: management.tracing.baggage.enabled

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.baggage.enabled=true
1
management:
tracing:
baggage:
enabled: "true"
1
java -Dmanagement.tracing.baggage.enabled="true" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_BAGGAGE_ENABLED="true"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.baggage.enabled="true"
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.baggage.local-fields=
List of fields that should be accessible within the JVM process but not propagated over the wire. Local fields are not supported with OpenTelemetry.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$Baggage.
CAS Property: management.tracing.baggage.local-fields

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.baggage.local-fields=...
1
management:
tracing:
baggage:
local-fields: "..."
1
java -Dmanagement.tracing.baggage.local-fields="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_BAGGAGE_LOCAL_FIELDS="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.baggage.local-fields="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.baggage.remote-fields=
List of fields that are referenced the same in-process as it is on the wire. For example, the field "x-vcap-request-id" would be set as-is including the prefix.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$Baggage.
CAS Property: management.tracing.baggage.remote-fields

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.baggage.remote-fields=...
1
management:
tracing:
baggage:
remote-fields: "..."
1
java -Dmanagement.tracing.baggage.remote-fields="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_BAGGAGE_REMOTE_FIELDS="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.baggage.remote-fields="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.baggage.tag-fields=
List of fields that should automatically become tags.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$Baggage.
CAS Property: management.tracing.baggage.tag-fields

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.baggage.tag-fields=...
1
management:
tracing:
baggage:
tag-fields: "..."
1
java -Dmanagement.tracing.baggage.tag-fields="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_BAGGAGE_TAG_FIELDS="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.baggage.tag-fields="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.brave.span-joining-supported=false
Whether the propagation type and tracing backend support sharing the span ID between client and server spans. Requires B3 propagation and a compatible backend.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$Brave.
CAS Property: management.tracing.brave.span-joining-supported

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.brave.span-joining-supported=...
1
management:
tracing:
brave:
span-joining-supported: "..."
1
java -Dmanagement.tracing.brave.span-joining-supported="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_BRAVE_SPAN_JOINING_SUPPORTED="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.brave.span-joining-supported="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.enabled=true
Whether auto-configuration of tracing is enabled to export and propagate traces.
How can I configure this property?
CAS Property: management.tracing.enabled

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.enabled=true
1
management:
tracing:
enabled: "true"
1
java -Dmanagement.tracing.enabled="true" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_ENABLED="true"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.enabled="true"
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.opentelemetry.export.include-unsampled=false
Whether unsampled spans should be exported.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$OpenTelemetry$Export.
CAS Property: management.tracing.opentelemetry.export.include-unsampled

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.opentelemetry.export.include-unsampled=...
1
management:
tracing:
opentelemetry:
export:
include-unsampled: "..."
1
java -Dmanagement.tracing.opentelemetry.export.include-unsampled="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_OPENTELEMETRY_EXPORT_INCLUDE_UNSAMPLED="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.opentelemetry.export.include-unsampled="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.opentelemetry.export.max-batch-size=512
Maximum batch size for each export. This must be less than or equal to 'maxQueueSize'.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$OpenTelemetry$Export.
CAS Property: management.tracing.opentelemetry.export.max-batch-size

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.opentelemetry.export.max-batch-size=512
1
management:
tracing:
opentelemetry:
export:
max-batch-size: "512"
1
java -Dmanagement.tracing.opentelemetry.export.max-batch-size="512" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_OPENTELEMETRY_EXPORT_MAX_BATCH_SIZE="512"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.opentelemetry.export.max-batch-size="512"
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.opentelemetry.export.max-queue-size=2048
Maximum number of spans that are kept in the queue before they will be dropped.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$OpenTelemetry$Export.
CAS Property: management.tracing.opentelemetry.export.max-queue-size

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.opentelemetry.export.max-queue-size=2048
1
management:
tracing:
opentelemetry:
export:
max-queue-size: "2048"
1
java -Dmanagement.tracing.opentelemetry.export.max-queue-size="2048" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_OPENTELEMETRY_EXPORT_MAX_QUEUE_SIZE="2048"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.opentelemetry.export.max-queue-size="2048"
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.opentelemetry.export.schedule-delay=5s
The delay interval between two consecutive exports.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$OpenTelemetry$Export.
CAS Property: management.tracing.opentelemetry.export.schedule-delay

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.opentelemetry.export.schedule-delay=5s
1
management:
tracing:
opentelemetry:
export:
schedule-delay: "5s"
1
java -Dmanagement.tracing.opentelemetry.export.schedule-delay="5s" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_OPENTELEMETRY_EXPORT_SCHEDULE_DELAY="5s"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.opentelemetry.export.schedule-delay="5s"
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.opentelemetry.export.timeout=30s
Maximum time an export will be allowed to run before being cancelled.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$OpenTelemetry$Export.
CAS Property: management.tracing.opentelemetry.export.timeout

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.opentelemetry.export.timeout=30s
1
management:
tracing:
opentelemetry:
export:
timeout: "30s"
1
java -Dmanagement.tracing.opentelemetry.export.timeout="30s" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_OPENTELEMETRY_EXPORT_TIMEOUT="30s"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.opentelemetry.export.timeout="30s"
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.propagation.consume=W3CB3B3_MULTI
Tracing context propagation types consumed by the application.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$Propagation.
CAS Property: management.tracing.propagation.consume

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.propagation.consume=W3CB3B3_MULTI
1
management:
tracing:
propagation:
consume: "["W3C", "B3", "B3_MULTI"]"
1
java -Dmanagement.tracing.propagation.consume="["W3C", "B3", "B3_MULTI"]" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_PROPAGATION_CONSUME="["W3C", "B3", "B3_MULTI"]"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.propagation.consume="["W3C", "B3", "B3_MULTI"]"
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.propagation.produce=W3C
Tracing context propagation types produced by the application.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$Propagation.
CAS Property: management.tracing.propagation.produce

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.propagation.produce=W3C
1
management:
tracing:
propagation:
produce: "["W3C"]"
1
java -Dmanagement.tracing.propagation.produce="["W3C"]" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_PROPAGATION_PRODUCE="["W3C"]"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.propagation.produce="["W3C"]"
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.propagation.type=
Tracing context propagation types produced and consumed by the application. Setting this property overrides the more fine-grained propagation type properties.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$Propagation.
CAS Property: management.tracing.propagation.type

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.propagation.type=...
1
management:
tracing:
propagation:
type: "..."
1
java -Dmanagement.tracing.propagation.type="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_PROPAGATION_TYPE="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.propagation.type="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
management.tracing.sampling.probability=0.1
Probability in the range from 0.0 to 1.0 that a trace will be sampled.
org.springframework.boot.actuate.autoconfigure.tracing.TracingProperties$Sampling.
CAS Property: management.tracing.sampling.probability

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
management.tracing.sampling.probability=0.1
1
management:
tracing:
sampling:
probability: "0.1"
1
java -Dmanagement.tracing.sampling.probability="0.1" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export MANAGEMENT_TRACING_SAMPLING_PROBABILITY="0.1"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --management.tracing.sampling.probability="0.1"
cas.war
with an embedded server container and can be found in the build/libs
directory.
Configuration Metadata
The collection of configuration properties listed in this section are automatically generated from the CAS source and components that contain the actual field definitions, types, descriptions, modules, etc. This metadata may not always be 100% accurate, or could be lacking details and sufficient explanations.
Be Selective
This section is meant as a guide only. Do NOT copy/paste the entire collection of settings into your CAS configuration; rather pick only the properties that you need. Do NOT enable settings unless you are certain of their purpose and do NOT copy settings into your configuration only to keep them as reference. All these ideas lead to upgrade headaches, maintenance nightmares and premature aging.
YAGNI
Note that for nearly ALL use cases, declaring and configuring properties listed here is sufficient. You should NOT have to explicitly massage a CAS XML/Java/etc configuration file to design an authentication handler, create attribute release policies, etc. CAS at runtime will auto-configure all required changes for you. If you are unsure about the meaning of a given CAS setting, do NOT turn it on without hesitation. Review the codebase or better yet, ask questions to clarify the intended behavior.
Naming Convention
Property names can be specified in very relaxed terms. For instance cas.someProperty
, cas.some-property
, cas.some_property
are all valid names. While all
forms are accepted by CAS, there are certain components (in CAS and other frameworks used) whose activation at runtime is conditional on a property value, where
this property is required to have been specified in CAS configuration using kebab case. This is both true for properties that are owned by CAS as well as those
that might be presented to the system via an external library or framework such as Spring Boot, etc.

When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
Settings and properties that are controlled by the CAS platform directly always begin with the prefix cas
. All other settings are controlled and provided
to CAS via other underlying frameworks and may have their own schemas and syntax. BE CAREFUL with
the distinction. Unrecognized properties are rejected by CAS and/or frameworks upon which CAS depends. This means if you somehow misspell a property definition
or fail to adhere to the dot-notation syntax and such, your setting is entirely refused by CAS and likely the feature it controls will never be activated in the
way you intend.
Validation
Configuration properties are automatically validated on CAS startup to report issues with configuration binding, especially if defined CAS settings cannot be recognized or validated by the configuration schema. Additional validation processes are also handled via Configuration Metadata and property migrations applied automatically on startup by Spring Boot and family.
Indexed Settings
CAS settings able to accept multiple values are typically documented with an index, such as cas.some.setting[0]=value
. The index [0]
is meant to be
incremented by the adopter to allow for distinct multiple configuration blocks.