Expand description
§Cedarling
The Cedarling is a performant local authorization service that runs the Rust Cedar Engine. Cedar policies and schema are loaded at startup from a locally cached “Policy Store”. In simple terms, the Cedarling returns the answer: should the application allow this action on this resource given these JWT tokens. “Fit for purpose” policies help developers build a better user experience. For example, why display form fields that a user is not authorized to see? The Cedarling is a more productive and flexible way to handle authorization.
Structs§
- Configuration to specify authorization workflow.
- Result of authorization and evaluation cedar policy based on the Request and policy store
- Struct that represent mapping mapping
Bootstrap properties
to be JSON and YAML compatible from link - The instance of the Cedarling application. It is safe to share between threads.
- Bootstrap Configurations for the JWT to Cedar entity mappings
- Cedar policy entity data fields represent EntityUid
- The names of the entities in the schema
- JsonLogic rule using JsonLogic Default implementation:
- The set of Bootstrap properties related to JWT validation.
- A set of properties used to configure logging in the
Cedarling
application. - Configuration for memory log.
PolicyStoreConfig
- Configuration for the policy store.- Box to store authorization data
- Box to store authorization data, with any additional principals
- Validation options related to JSON Web Tokens (JWT).
- The attribute that will be used to create the Role entity when using the
authorize_unsigned
interface.
Enums§
- Error type for Authorization Service
- Represents errors that may occur while loading a
BootstrapConfig
from a file. - Enum varians that represent if feature is enabled or disabled
- Defines the level of validation for ID tokens.
- Errors that can occur during initialization Cedarling.
- Log levels Fatal level is the highest, trace is lowest
- Log type configuration.
CEDARLING_LOG_TYPE
in bootstrap properties documentation. Current type represent this value. - Type of logger
PolicyStoreSource
represents the source from which policies will be retrieved.
Traits§
- Log Storage interface for getting log entries from the storage