3568 Commits

Author SHA1 Message Date
mustard
924b20eaee [dashboard] support ssh copy-paste with ssh keys 2022-07-05 11:04:52 +05:30
mustard
28f9ddc77c [dashboard] ssh keys setting support 2022-07-05 11:04:52 +05:30
mustard
f2fdb418f1 Add test cases ssh public keys namespace 2022-07-05 11:04:52 +05:30
mustard
154dc5fd7d [server,db,protocol] support ssh public key
Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
2022-07-05 11:04:52 +05:30
Manuel Alejandro de Brito Fontes
3353f398f7 [ws-proxy] Refactor SSH heartbeat GRPC connection 2022-07-05 07:34:52 +05:30
utam0k
8acb3ae6a0 seccomp: add handling of ENOENT. 2022-07-05 05:33:52 +05:30
utam0k
dcba777c86 workspacekit: Update libseccomp 2022-07-05 05:33:52 +05:30
utam0k
79525bf037 seccomp: support for parallel system calls. 2022-07-05 05:33:52 +05:30
utam0k
f4dee111c2 ws-damon: reduce error griping 2022-07-05 05:33:52 +05:30
utam0k
3ada54994e seccomp: path the workspace id for logging. 2022-07-05 05:33:52 +05:30
utam0k
06a4dba7c5 seccomp: fix typo for the log 2022-07-05 05:33:52 +05:30
Manuel Alejandro de Brito Fontes
5cac340917 Remove deprecated test (because gsutil) 2022-07-05 03:37:52 +05:30
Manuel Alejandro de Brito Fontes
02831a9e9e Update docker dependencies 2022-07-05 03:37:52 +05:30
Manuel Alejandro de Brito Fontes
6dd018220d Update containerd to v1.6.6 2022-07-05 03:37:52 +05:30
Manuel Alejandro de Brito Fontes
2911bc3283 Update k8s dependencies to v0.24.2 2022-07-05 03:37:52 +05:30
Milan Pavlik
e8ab39e3e7 [usage] Use a config file to configure usage component 2022-07-04 20:44:51 +05:30
Victor Nogueira
76c52dfd48 Temporarily use a fixed version of JetBrains Gateway SDK 2022-07-04 18:54:51 +05:30
Victor Nogueira
a5e828ffa2 Add X-Forwarded-Port header
It's required by some software, like [FusionAuth](https://fusionauth.io/).
2022-07-04 17:20:51 +05:30
Gero Posmyk-Leinemann
0708df5e4d [licensor] Align dirty state 2022-07-04 11:35:51 +05:30
George Tsiolis
1f5a0eda0d Update prebuild status description alignment 2022-07-01 20:18:39 +05:30
Gero Posmyk-Leinemann
9d800567d2 [dashboard] Don't get users stuck on "aborted"/"timeout" prebuilds 2022-07-01 20:04:39 +05:30
Gero Posmyk-Leinemann
5d445cf088 [server] Workaround for lagging prebuild permissions 2022-07-01 17:31:39 +05:30
Pudong Zheng
cf6a34ae6b [ws-proxy] not use target host when serve workspace port route 2022-07-01 15:34:39 +05:30
Tarun Pothulapati
c96adbed6d [telemetry] Add new telemetry.data config option for telemetry
Fixes https://github.com/gitpod-io/gitpod/issues/10766

This PR adds a new `experimental.telemetry.data.platform` config option
that is then passed to `GITPOD_INSTALLATION_PLATFORM` env variable, which
is then transmitted by the `gitpod-telemetry` job as the `platform`
property into our telemetry store. The value of this env variable
is then overrided by each install method.

This env can have the following values:
- `installer` by default as when the installation is done directly
  through the installer, We don't have enough information
   about the environment.
-  [One of the `distribution` values](https://docs.replicated.com/reference/template-functions-static-context#distribution)
   when done through `kots`. This would have the distribution in which
   Gitpod is being installed, and is dependent on `kots`.
- `local-preview` when the installation is done through the new
   preview install method.

As the changes show in the PR, each installation method overrides
the value.

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-07-01 14:53:40 +05:30
Andrew Farries
2d71cd0077 Stop logging server config 2022-07-01 14:29:39 +05:30
Andrew Farries
420e8ea8bb Sanitize oauth strategy options before logging 2022-07-01 14:29:39 +05:30
George Tsiolis
4678d6fbcb Update project settings preference copy
Minor copy update for the preference option for canceling prebuilds on outdated commits in project settings
2022-07-01 13:22:39 +05:30
Gero Posmyk-Leinemann
c43a6c9859 [server] Tone down image build errors that are triggered by user content 2022-07-01 12:09:39 +05:30
Gero Posmyk-Leinemann
70e0ee3f2e [dashboard] Reliably fetch logs for imagebuild and prebuild itself 2022-07-01 12:09:39 +05:30
Gero Posmyk-Leinemann
3aa41436cf [server] Deprecate image build log mechanism 2022-07-01 12:09:39 +05:30
Thomas Schubart
d537b24994 [installer] Add display name to workspace class 2022-06-30 21:26:38 +05:30
Thomas Schubart
dd1992da46 [ws-manager] Implement cluster api 2022-06-30 21:26:38 +05:30
Thomas Schubart
347ed6bfc2 [manager-api] Introduce endpoint for cluster info 2022-06-30 21:26:38 +05:30
Andrew Farries
1f9ed57eb1 Remove unused deletedAt column 2022-06-30 21:23:38 +05:30
Andrew Farries
47db0ebefc Add d_b_blocked_repository to tables.ts 2022-06-30 21:23:38 +05:30
Andrew Farries
1a35999ab4 Remove todos
Answered by code review.
2022-06-30 21:23:38 +05:30
Andrew Farries
2764e6dff9 Rename isRepositoryBlocked 2022-06-30 21:23:38 +05:30
Andrew Farries
bb93c172d3 Check blocked repos when starting a workspace 2022-06-30 21:23:38 +05:30
Andrew Farries
812ff0a20e Add unit tests for blocked repositories 2022-06-30 21:23:38 +05:30
Andrew Farries
da0fdf5164 Add migration to add new entity
This was auto-generated by running:

`docker run --rm --name some-mysql -e MYSQL_ROOT_PASSWORD=test -e MYSQL_DATABASE=gitpod -e MYSQL_USER=gitpod -e MYSQL_PASSWORD=test -p 3306:3306 -d mysql:5.7`

`yarn typeorm migration:generate -n New` from the `gitpod-db` directory.

And then removing everything but the new table.

We should document a better way of doing this.
2022-06-30 21:23:38 +05:30
Andrew Farries
edc3d0214c Add new DB entity and supporting classes
Add the new BlockedRepository entity and its interface and
implementation.
2022-06-30 21:23:38 +05:30
Victor Nogueira
95f02d84f5 Auto-forward Task Terminals Ports on JetBrains IDEs 2022-06-30 21:09:38 +05:30
Milan Pavlik
8b88f26cb6 [usage] Use workspace class when computing credits used 2022-06-30 20:41:38 +05:30
Gero Posmyk-Leinemann
2cb9ed7150 [server] Tone down "Bearer auth error" 2022-06-30 19:51:38 +05:30
Gero Posmyk-Leinemann
d3b2239398 [server] Tone down "found more than one active token" 2022-06-30 19:51:38 +05:30
Gero Posmyk-Leinemann
1450e1a9b5 [server] Reduce bytes logged around incremental prebuilds 2022-06-30 19:51:38 +05:30
André Duarte
5b22357e73 Update "Inactive Workspaces" description copy 2022-06-30 19:04:39 +05:30
André Duarte
578bbaeb06 Clarify meaning of "Inactive Workspaces" 2022-06-30 19:04:39 +05:30
Milan Pavlik
e6602f7ffa [usage] Refactor server start into a function, specify config 2022-06-30 17:58:39 +05:30
Milan Pavlik
7c567bfa19 [usage] Refactor credit calculation into a WorkspacePricer 2022-06-30 17:30:38 +05:30