Patchset ps-117
feat(pgs): admins can impersonate
Eric Bower
pkg/apps/auth/api.go
+3
-3
pkg/apps/pastes/api.go
+3
-3
pkg/apps/pico/cli.go
+2
-2
pkg/apps/prose/api.go
+6
-6
pkg/db/db.go
+3
-3
pkg/db/stub/stub.go
+2
-2
pkg/shared/api.go
+1
-1
pkg/shared/feed.go
+1
-1
pkg/shared/ssh.go
+25
-1
pkg/tui/tuns.go
+1
-1
pkg/tui/ui.go
+2
-2
chore: use `user_id` in log middleware to set the user ctx
Eric Bower
pkg/pssh/logger.go
+7
-2
feat(pgs): admins can impersonate
This change will let admins impersonate any user for the pgs cli
pkg/apps/auth/api.go
link
+3
-3
+3
-3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
pkg/apps/auth/api_test.go
link
+2
-2
+2
-2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
pkg/apps/pastes/api.go
link
+3
-3
+3
-3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
pkg/apps/pgs/cli_middleware.go
link
+4
-16
+4
-16
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
pkg/apps/pico/cli.go
link
+2
-2
+2
-2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
pkg/apps/prose/api.go
link
+6
-6
+6
-6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
|
pkg/db/db.go
link
+3
-3
+3
-3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
pkg/db/postgres/storage.go
link
+9
-9
+9
-9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|
pkg/db/stub/stub.go
link
+2
-2
+2
-2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
pkg/tui/tuns.go
link
+1
-1
+1
-1
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
pkg/tui/ui.go
link
+2
-2
+2
-2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
chore: use `user_id` in log middleware to set the user ctx
pkg/pssh/logger.go
link
+7
-2
+7
-2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|