AbacQueryFilter

@Order(value = -2147483648)
abstract class AbacQueryFilter : SnapshotQueryFilter

Filters snapshot queries using attribute-based access control (ABAC).

Principal tags from the current context are converted into query conditions and appended to snapshot queries.

Matching rules

Principal tagsResource tagsResult
wildcard (["*"])anymatch
["a", "b"]["a"]match
["a", "b"]["c"]no match
anykey absentmatch (public resource)

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun filter(context: QueryContext<*, *>, next: FilterChain<QueryContext<*, *>>): Mono<Void>
Link copied to clipboard
abstract fun getPrincipalTags(contextView: ContextView, context: QueryContext<*, *>): Mono<AbacTags>

Resolves the principal's ABAC tags from the current context.

Link copied to clipboard
open fun resolveCondition(contextView: ContextView, context: QueryContext<*, *>): Mono<Condition>

Resolves the ABAC condition for the current context.