Project

General

Profile

Actions

Bug #28452

open

ADR for proper initialization of query context in Lift snippets

Bug #28452: ADR for proper initialization of query context in Lift snippets

Added by Clark ANDRIANASOLO 3 days ago. Updated 3 days ago.

Status:
Pending technical review
Priority:
N/A
Assignee:
Category:
Security
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Very Small
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No

Description

There are a lot of usage for the QueryContext (tenants datatype) in Lift snippets.
But having a CurrentUser that exposes a dumb one is not the right way to obtain the user : it causes issues described in #26605.

We should avoid using CurrentUser as possible, and use dedicated way to access QueryContext in snippets (as in #28404)


Related issues 2 (1 open1 closed)

Related to Rudder - Bug #26605: CurrentUser.queryContext is null when used in a ZIO forReleasedClark ANDRIANASOLOActions
Related to Rudder - Bug #28404: CurrentUser can have unknown actor and query context in snippetsPending releasePauline IOGNAActions

Updated by Clark ANDRIANASOLO 3 days ago Actions #1

  • Related to Bug #26605: CurrentUser.queryContext is null when used in a ZIO for added

Updated by Clark ANDRIANASOLO 3 days ago Actions #2

  • Related to Bug #28404: CurrentUser can have unknown actor and query context in snippets added

Updated by Clark ANDRIANASOLO 3 days ago Actions #3

  • Status changed from New to In progress

Updated by Clark ANDRIANASOLO 3 days ago Actions #4

  • Subject changed from ADR for proper initialization of snippets query context to ADR for proper initialization of query context in Lift snippets
  • Status changed from In progress to New

Updated by Clark ANDRIANASOLO 3 days ago Actions #5

  • Description updated (diff)

Updated by Clark ANDRIANASOLO 3 days ago Actions #6

  • Status changed from New to Pending technical review
  • Assignee changed from Clark ANDRIANASOLO to Pauline IOGNA
  • Pull Request set to https://github.com/Normation/rudder/pull/6959
Actions

Also available in: PDF Atom