Laurie T. Malau
9d3a8b77d1
Manage teams as admin
2022-02-25 18:10:04 +05:30
Gero Posmyk-Leinemann
4e331313ad
Revert "Revert "[server, db] AuthProviderEntry: Introduce oauthRevision to avoid repeated materialization of encrypted data""
...
This reverts commit ddc7aaa72c426648b5c7165567f6970d51db936a.
2022-02-24 14:30:05 +05:30
Alex Tugarev
ff76959dfd
[server/bitbucket] fix response codes for webhook events
...
so that they are not resent whenever we answer with code 5xx. cf. https://support.atlassian.com/bitbucket-cloud/docs/troubleshoot-webhooks/
2022-02-24 14:14:04 +05:30
Alex Tugarev
8e00078d77
[server/bitbucket] don't log notice message
2022-02-24 14:14:04 +05:30
jakobhero
1faa7f5456
include region, switch to reading ip from xff header
2022-02-24 13:01:04 +05:30
Jan Keromnes
ddc80c1867
[server] Sort suggested context URLs most-recently-used first, alphasort otherwise
2022-02-22 18:05:02 +05:30
Jan Keromnes
ec19a3f17e
[server] Track snapshot access requests, and whether they are granted or denied
2022-02-22 13:24:02 +05:30
Gero Posmyk-Leinemann
a81c23ee50
[ts] Update network-facing libs like express (et al.), node-fetch, p-throttle
2022-02-21 22:34:01 +05:30
Gero Posmyk-Leinemann
92e8a6d767
[server] Explicitly set timeouts for all fetch() requests
2022-02-21 22:34:01 +05:30
Gero Posmyk-Leinemann
9a8964f29c
[server] catch cpuprofile write error
2022-02-21 22:34:01 +05:30
Alex Tugarev
268e67c6dd
[server] make ping pong async
2022-02-21 22:06:01 +05:30
Tarun Pothulapati
3be4e0b7a5
telmetry: show collected data under the disable option
...
Currently, The service ping can be disabled by going into the
admin settings. Users are more likely to do that if they have
no clue what is being sent.
This PR tries to improve this experience, by showcasing the
exact data that is being sent below the option. This is possible
by creating a new TelemetryDataProvider and injecting that
both in the `installation-admin-collector` controller
and the `gitpod-service` (`getTelemetryData` func is added here
that can be used).
This PR also adds a gaurd to the `/admin/settings` page which
was missing previously
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
replace cluster with gitpod instance in desc
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
easy nits around design and TelemetryData naming
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
gaurd telemetry method with admin access
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
replace TelemetryData at more places
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
gaurd access to `admin/settings` like other admin settings
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
call useEffect hook early
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-02-21 17:42:01 +05:30
Jan Keromnes
2d443923f2
[server] Restrict snapshot access based on repository access
...
Also refactor:
- Simplify GuardedSnapshot.workspace
- WorkspaceLogAccessGuard → RepositoryResourceGuard
- RepositoryService.canAccessHeadlessLogs → RepositoryProvider.hasReadAccess
2022-02-21 15:47:01 +05:30
jakobhero
9a4492ef9c
include anonymous ID in server-side tracking where possible
2022-02-18 09:51:58 +01:00
Alex Tugarev
64973296a4
[server] add cpu profiler
...
use: kill -s SIGUSR1 <pid>
2022-02-17 17:40:57 +01:00
Tarun Pothulapati
5f6114c282
telemetry: add more fields to data
...
Fixes https://github.com/gitpod-io/gitpod/issues/7866
This PR updates the `installation-admin-controller` to also retrieve
more data to send with telemetry. These are not part of the
`installationAdminDb` as we do not want to store this in the database
but lazily retrieve whenever a request is sent to `/data` endpoint
of the `installation-admin` express app unlike the `uuid` and settings
which need to be stored and updated.
The following fields are added:
- `totalUsers` : specifies the total number of users in the instance
- `totalWorkspaces`: specifies the total number of **regular** workspaces in the instance
- `totalInstances`: specifies the total number of **regular** workspace instances in the gitpod instance
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-02-17 12:08:57 +01:00
Gero Posmyk-Leinemann
ddaea0e1c2
[messagebus] Remove shovel config, and all non-local (or outdated) exchanges
2022-02-17 11:43:57 +01:00
Alex Tugarev
e205b485c3
[server] add basic support for BitBucket Server
2022-02-16 21:04:56 +01:00
Alex Tugarev
236523ee1c
[server] disable perMessageDeflate on websockets
...
... which should improve memory usage.
2022-02-15 16:33:55 +01:00
Jan Keromnes
bb9474a456
[server] Order suggested repository URLs case-insensitively
2022-02-15 11:08:36 +01:00
Gero Posmyk-Leinemann
ec35e4f86b
[protocol, server] Move "toPermissionSet" into protocol
2022-02-15 10:37:36 +01:00
Gero Posmyk-Leinemann
ddc7aaa72c
Revert "[server, db] AuthProviderEntry: Introduce oauthRevision to avoid repeated materialization of encrypted data"
...
This reverts commit 07e013ecc2808240b768710886ff52fac0f921bd.
2022-02-14 20:35:35 +01:00
Jan Koehnlein
f8e3369bc9
prevent users from deleting their login auth provider
2022-02-14 17:52:36 +01:00
Gero Posmyk-Leinemann
4feee36008
[server] Instead of FOLLOWS_FROM, enhance notifications with clientMetadata directly
2022-02-14 16:17:35 +01:00
Gero Posmyk-Leinemann
24551594b9
[server] tracing: Avoid using FOLLOWS_FROM references due to lots of errors
2022-02-14 16:17:35 +01:00
Gero Posmyk-Leinemann
087d569306
[server] Trace userAgent
2022-02-14 16:17:35 +01:00
Alex Tugarev
c4b09831a8
[server/ide-config] update only, if file was modified
...
... but ignore frequent file accesses.
2022-02-14 09:34:35 +01:00
Pudong Zheng
43c2767909
[server] only resolve image by content changed or interval
2022-02-14 09:34:35 +01:00
Alex Tugarev
6f11cbbe24
[server][github] fix selection of user for prebuilds
2022-02-11 17:49:32 +01:00
Gero Posmyk-Leinemann
07e013ecc2
[server, db] AuthProviderEntry: Introduce oauthRevision to avoid repeated materialization of encrypted data
2022-02-11 16:44:33 +01:00
Gero Posmyk-Leinemann
80d7969a73
[server] AuthProviderService.getAllAuthProviders: avoid O(n^2)
2022-02-11 16:44:33 +01:00
Gero Posmyk-Leinemann
0d827257af
[server] Minor performance improvement to generic auth provider
2022-02-11 16:44:33 +01:00
Sven Efftinge
0ef0c9f781
[server] Disable inference of extensions
2022-02-11 13:49:33 +01:00
Alex Tugarev
f8151d217f
[server] fix value of Env Vars
2022-02-11 09:28:32 +01:00
Alex Tugarev
98b589b5c9
Revert "Revert "[server] Keep pushing env vars until supervisor is up to date""
...
This reverts commit 12b17292d9ab348fc5fbe75a52a7777aa7b6aa6e.
2022-02-11 09:28:32 +01:00
Alex Tugarev
a82c4d1cdb
Revert "Revert "[server] Use envvar OTS to ship user/prj env vars""
...
This reverts commit 9e445656233f4aad1bc826869e3fb8349baf2dbc.
2022-02-11 09:28:32 +01:00
Gero Posmyk-Leinemann
5ff578ed67
[server, dashboard] Never fail when parsing ContextURL
...
Additionally:
- always prefer `ws.context.normalizedContextURL` over `ws.contextURL`
- if `normalizedContextURL` is not set, always try to normalize it
2022-02-09 15:51:31 +01:00
Jan Keromnes
1cf235791a
[server] Implement a RepositoryProvider.getUserRepos() method
2022-02-08 14:48:30 +01:00
Jan Keromnes
5f2133da78
[server] Get repository suggestions from all auth providers
2022-02-08 14:48:30 +01:00
Jan Keromnes
8eee4c99e8
[server] Log response status when GitHub Education API calls fail
2022-02-08 14:48:30 +01:00
Jan Keromnes
63f613704e
[server][dashboard] Improve 'New Workspace' modal with a search input, keyboard navigation, and a new context URL suggestion API
2022-02-08 14:48:30 +01:00
Alex Tugarev
bbf7036eec
[gitlab] align findProjectAndOwner
2022-02-08 13:49:29 +01:00
Alex Tugarev
5caaf382b6
[bitbucket] fix linking projects to prebuilds on push event
2022-02-08 13:49:29 +01:00
Alex Tugarev
1a52dfe933
[bitbucket] ignore branch deletion events
2022-02-08 13:49:29 +01:00
Alex Tugarev
9e44565623
Revert "[server] Use envvar OTS to ship user/prj env vars"
...
This reverts commit d8847a9c12e0a29a1d801bfa48dec5dd8452e317.
2022-02-08 10:34:29 +01:00
Alex Tugarev
12b17292d9
Revert "[server] Keep pushing env vars until supervisor is up to date"
...
This reverts commit e94cb93ae70821dd7b1ec9fb6fa34df694de2def.
2022-02-08 10:34:29 +01:00
Pudong Zheng
22f346c17b
allow user select eap version of JetBrains IDE
2022-02-08 09:27:29 +01:00
Mads Hartmann
dd8b5b728a
Remove OWNERS related files
...
Fixes https://github.com/gitpod-io/ops/issues/844
2022-02-08 09:15:30 +01:00
Gero Posmyk-Leinemann
d955ce10f0
[server, dashboard] Do basic rate limiting on startWorkspace
2022-02-07 18:54:29 +01:00
Gero Posmyk-Leinemann
29c3a7d8cb
[server] Replace nextTick with setImmediate
2022-02-07 14:05:29 +01:00