Commit Graph
1489 Commits
Author SHA1 Message Date
Theodor S. Midtlien 9d40a09459 Disable ownership on mobile 2026-09-22 15:29:39 +02:00
Theodor S. Midtlien a785814a3f Improve ui when other holds the session 2026-09-21 17:35:11 +02:00
Theodor S. Midtlien e5c1b21fd3 Fix listing unowned profile and fallback 2026-09-21 15:56:06 +02:00
Theodor S. Midtlien f8944699dd Resolve username for CLI owner output 2026-09-21 13:49:42 +02:00
Theodor Midtlienandcubic-dev-ai[bot] 7e3759a5a1 Update client/internal/profilemanager/service.go
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-09-18 18:16:40 +02:00
Theodor S. Midtlien 8403085a44 Only show owner on --show-owner for profile list 2026-09-18 18:10:28 +02:00
Theodor S. Midtlien d98ef09141 Add NB_DISABLE_PROFILE_OWNERSHIP env flag 2026-09-18 17:56:03 +02:00
Theodor S. Midtlien f0d2dd474c Clean up claim command text 2026-09-18 17:35:59 +02:00
Theodor S. Midtlien 9beecf7d69 Move disable default auto claim check 2026-09-18 17:15:07 +02:00
Theodor S. Midtlien cda3da5ed1 Fix tests for denial errors 2026-09-18 17:08:06 +02:00
Theodor S. Midtlien 1a74019161 Fix status before up 2026-09-18 14:52:25 +02:00
Theodor S. Midtlien 5d9e791626 Fix comments 2026-09-18 14:19:59 +02:00
Theodor S. Midtlien 3d6591b053 Fix status and up cli output 2026-09-18 13:17:21 +02:00
Theodor S. Midtlien 64c84df357 Remove race reload test 2026-09-18 12:22:57 +02:00
Theodor S. Midtlien 29be224cdf Cleaup profile parsing 2026-09-18 12:22:04 +02:00
Theodor S. Midtlien cb9d2ee3bb Small refactor of Authz 2026-09-18 11:28:16 +02:00
Theodor S. Midtlien 6dcb1374e9 Move profile resolution to the authz gate 2026-09-18 11:19:35 +02:00
Theodor S. Midtlien 96f9ea7428 Move active migration to OwnsProfile 2026-09-17 19:57:40 +02:00
Theodor Midtlien cec9ee6699 [Client] Surface readable Authz errors and add profile claim command (#7540)
* [client] Surface error messages for IPC authz in UI (#7553)
2026-09-17 14:36:56 +02:00
Theodor S. Midtlien 499b5a8cd0 Fix service test for windows 2026-09-17 13:21:05 +02:00
Theodor Midtlien 90052cbefb [client] Profile ownership console user tofu (#7529)
* Add consoleuser and stamp default profile on known username in migration

* Refactor consoleuser to verify Id, fix seats on linux and default stamp

* Add default profile claim

* Add disable auto-claim of default profile and always fail close

* Add disable auto-claim flag to migration

* Adding timeout to console user on Linux and close library load on darwin

* Fixed failed close test

* Close both Dlopen for darwin

* Replace RegisterFunc with purego.Dlsym to avoid possible panic

* Fix freebsd tty enumeration

* Fix active profile migration logic and add test

* Log defaultClaimDisabled error once

* Guard against panicking console user lookup.

* Fix merge conflict

* Fix broken tests
2026-09-17 11:20:13 +02:00
Theodor Midtlienandcubic-dev-ai[bot] 52b16e7a5c [client] Profile ownership migration (#7508)
* Implement OwnsProfile on Server

* (WIP) List profiles based on ownership by Identity

* (WIP) Migrate active_profile

* Fix status and list profiles

* Add profile stamping as active migration

* Add one-shot migration

* Only default profile fail open

* Use restricted write for config json

* Fix stale server config after stamp

* Fix OwnsProfile fallback to active profile

* Fix config concurrent reload during OwnsProfile check

* Move known check to inside stamp owner

* Update client/internal/profilemanager/service.go

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* Recover from dup active profiles that cannot be resolved with username.

* Add test for already owned profile during migration

* Improve stamping of fields in the config

* Apply suggestion from @cubic-dev-ai[bot]

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* Fix codespell and test comment

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-09-17 11:20:12 +02:00
Viktor Liu 15ed6f8f15 Add an optional --allow-group flag restricting the daemon sockets (#7478) 2026-09-16 13:30:10 +02:00
Theodor Midtlienandcubic-dev-ai[bot] abb94ad2d2 Update client/internal/debug/debug.go
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 258a20c433 Fix empty active state read 2026-09-16 10:37:59 +02:00
Theodor Midtlienandcubic-dev-ai[bot] fa3689c079 Update client/internal/debug/debug.go
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 331c490326 Fix typo 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 2d5ee900d0 Replace RequireFlowInitiator with AuthzLevel and clear flow on switch profile 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 7705645492 Remove double error log 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 1538d5f11c Add profile owners to debug bundle 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 5f7d869426 Fix status and list profiles 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 45e8bd8af4 Let unimplemented RequireFlowInitiator pass 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien b620173f51 Clarify the Rule comment 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien a585626950 Remove Authorization context and fix bugs in rule and targetProfile 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien fc93bfc561 Add method interceptor tests to ensure that authz is configured for every RPC 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien bbf28a40ed Add authorization framework for gRPC methods 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien cacdb50c0e Add known mark to identity, fix credentials comparison bugs 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 15003fc495 Add owners to list profile ipc 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien a9fb48d80b Let active profile owner be the source of truth for the session holder 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 3a2f6df038 Fix debug test 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 04c00a9a19 Improve owner config parsing 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien abc77e6d92 Use list of owners 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 3ee80d99bf Fix wasm build 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 723deda478 Add nolint for unused functions 2026-09-16 10:37:59 +02:00
Theodor S. Midtlien 45b30ef83d Fix ServiceManager.AddProfile signature 2026-09-16 10:37:58 +02:00
Theodor S. Midtlien 77cfc4ac4c Refactor gatePolicy to gateRule 2026-09-16 10:37:32 +02:00
Theodor S. Midtlien 126f3a640b Use sessionholder pointer 2026-09-16 10:37:32 +02:00
Theodor S. Midtlien 6a983eee34 Add WIP profile ownership 2026-09-16 10:37:31 +02:00
Theodor S. Midtlien f4f47db14c WIP: add session ownership 2026-09-16 10:36:43 +02:00
Zoltan Papp e70ec07320 Read the session deadline under the status read lock (#7550)
GetSessionExpiresAt took the exclusive lock for a plain field read, so
every caller queued behind writers and behind each other. The Android
SessionMonitor polls it from the main thread, and in the captured ANR
that is exactly where the main thread was blocked while hundreds of
peer-list callbacks held or waited on the same mutex.

d.mux is already an RWMutex and the other getters use RLock; this brings
the deadline read in line with them.
2026-09-15 12:05:57 +02:00