Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Propagte security context to threads created by spring #406

Commits on Jun 7, 2023

  1. Propagte security context to threads created by spring

    Motivation
    All flow and task execution are async (@async) and All
    of them are lacking the security context. This means sending
    notification or any other action that needs this info is lacking it.
    
    Modification
    Configure the context strategy on bootup time so every thread that
    spring creates will inherit the security context.
    
    Result
    Sending notifications using the Notifier interface doesn't need any user
    information
    
    Gaps
    Workflows that are continued upon server restart are probably missing
    this information and we need to probably fetch the user info from the DB
    and rebuild the security context.
    
    Signed-off-by: Roy Golan <rgolan@redhat.com>
    rgolangh committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    7991267 View commit details
    Browse the repository at this point in the history