Configs References
configs handler.yml mask.yml
Read More »
handler.yml
handler.yml is the configuration file of handler middleware chain
handlers: list of handlers to be used across chains in this microservice including the routing handlers for ALL endpoints
format: fully qualified handler class name@optional:given name
below are default integrated handlers after code generation:
- com.networknt.exception.ExceptionHandler@exception - com.networknt.metrics.MetricsHandler@metrics
- com.networknt.traceability.TraceabilityHandler@traceability
- com.networknt.correlation.CorrelationHandler@correlation
- com.networknt.openapi.OpenApiHandler@specification
- com.networknt.openapi.JwtVerifyHandler@security
- com.networknt.body.BodyHandler@body
- com.networknt.audit.AuditHandler@audit
- com.networknt.dump.DumpHandler@dump
- com.networknt.sanitizer.SanitizerHandler@sanitizer
- com.networknt.openapi.ValidatorHandler@validator
- com.networknt.health.HealthGetHandler@health
- com.networknt.info.ServerInfoGetHandler@info
- com.
Read More »
mask.yml
mask.yml is the configuration file for masking logging info.
this configuration file can also be used for centralizing mask rules.
dump handler and audit handler will use this config to mask logging info based on those predefined fields, those fields will be shown in below.
Field Name Type Description string [MaskString Object](#MaskString Object) regex [MaskRegex Object](#MaskRegex Object) json [MaskJson Object](#MaskJson Object) MaskString Object Field Name Type Description uri map(${Pattern}: ${Replacement}) Predefined field for AuditHandler and DumpHandler mask url by trying to match child keys(patterns), then replace the matches with values defined example:in mask.
Read More »