Skip to content

Conversation

@gtema
Copy link
Collaborator

@gtema gtema commented Jan 29, 2026

nonlocal_user table already describes a "user" that does not have
direct credentials to login to the platform. It is a task of the
identity driver to implement appropriate authentication.
Service account is a special user that does not have a way to login
other than through exchange of the jwt or k8 (future). In order to
implement this identity driver (user part) is restructured to be clearly
identify different backend entity models. Introduce a UserType with
the service_account including provider API to create a service account.

`nonlocal_user` table already describes a "user" that does not have
direct credentials to login to the platform. It is a task of the
identity driver to implement appropriate authentication.
Service account is a special user that does not have a way to login
other than through exchange of the jwt or k8 (future). In order to
implement this identity driver (user part) is restructured to be clearly
identify different backend entity models. Introduce a `UserType` with
the service_account including provider API to create a service account.
use crate::error::DbContextExt;
use crate::identity::backend::sql::IdentityDatabaseError;

pub async fn create<C, I>(db: &C, opts: I) -> Result<(), IdentityDatabaseError>

Check warning

Code scanning / clippy

function create is never used Warning

function create is never used
use crate::error::DbContextExt;
use crate::identity::backend::sql::IdentityDatabaseError;

pub async fn create<C, I>(db: &C, opts: I) -> Result<(), IdentityDatabaseError>

Check warning

Code scanning / clippy

function create is never used Warning

function create is never used
@github-actions
Copy link

🐰 Bencher Report

Branchsa
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
fernet token/project📈 view plot
🚷 view threshold
1,458.70 ns
(-0.05%)Baseline: 1,459.36 ns
1,546.34 ns
(94.33%)
get_fernet_token_timestamp/project📈 view plot
🚷 view threshold
157.35 ns
(+4.23%)Baseline: 150.96 ns
171.31 ns
(91.85%)
🐰 View full continuous benchmarking report in Bencher

@github-actions
Copy link

🦢 Load Test Results

Goose Attack Report

Plan Overview

Action Started Stopped Elapsed Users
Increasing 26-01-29 17:00:23 26-01-29 17:00:25 00:00:02 0 → 4
Maintaining 26-01-29 17:00:25 26-01-29 17:00:55 00:00:30 4
Decreasing 26-01-29 17:00:55 26-01-29 17:00:55 00:00:00 0 ← 4

Request Metrics

Method Name # Requests # Fails Average (ms) Min (ms) Max (ms) RPS Failures/s
GET 8842 0 13.08 8 26 294.73 0.00
Aggregated 8842 0 13.08 8 26 294.73 0.00

Response Time Metrics

Method Name 50%ile (ms) 60%ile (ms) 70%ile (ms) 80%ile (ms) 90%ile (ms) 95%ile (ms) 99%ile (ms) 100%ile (ms)
GET 11 11 17 18 18 19 20 26
Aggregated 11 11 17 18 18 19 20 26

Status Code Metrics

Method Name Status Codes
GET 8,842 [200]
Aggregated 8,842 [200]

Transaction Metrics

Transaction # Times Run # Fails Average (ms) Min (ms) Max (ms) RPS Failures/s
ListUsers
0.0 0 0 0.00 0 0 0.00 0.00
0.1 5600 0 10.25 8 16 186.67 0.00
ValidateToken
1.0 0 0 0.00 0 0 0.00 0.00
1.1 3242 0 18.05 15 26 108.07 0.00
Aggregated 8842 0 13.08 8 26 294.73 0.00

Scenario Metrics

Transaction # Users # Times Run Average (ms) Min (ms) Max (ms) Scenarios/s Iterations
ListUsers 2 5598 10.25 8 16 186.60 2799.00
ValidateToken 2 3240 18.05 15 26 108.00 1620.00
Aggregated 4 8838 13.11 8 26 294.60 4419.00

Error Metrics

Method Name # Error

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants