152 Commits

Author SHA1 Message Date
Jean Pierre
d57a39dbad
[public-api] Update getWorkspace api response implementation (#17821)
* Update getWorkspace api response implementation

* Only implement recent_folders

* Add additional tests
2023-07-06 01:24:22 +08:00
Sven Efftinge
caf26b812d
[server] remove getUserProjects (#18093) 2023-06-29 16:30:47 +08:00
Pudong
f74ba1cbc3
Add organization id in claims (#17954)
* add OrganizationId in claims.

* Update components/gitpod-protocol/go/gitpod-service.go

* fix
2023-06-26 16:37:50 +08:00
Milan Pavlik
0777246800
Remove getContentBlob Upload/Download URL (#17983)
* Remove getContentBlob Upload/Download URL

* fix
2023-06-21 16:18:11 +08:00
Milan Pavlik
5aa001f763
[server] Remove hasPermission from go API client (#17990) 2023-06-20 22:47:10 +08:00
Gero Posmyk-Leinemann
54307a551e
[server] Remove dead permissions code (#17918) 2023-06-19 17:45:10 +08:00
Pudong
4aede056ab
[IDP] set email_verified to false if user is not org-owned user (#17896)
* set email_verified to false if user is not org-owned user

* update test
2023-06-12 18:46:03 +08:00
Anton Kosyakov
3f3ece10e0
don't log http headers (#17827)
to avoid leaking tokens in logs
2023-06-06 16:37:56 +08:00
Jean Pierre
6652c98a1a
Add WorkspaceUpdates method (#17728)
* Add WorkspaceUpdates method

* Replace InstanceUpdates
2023-05-30 23:56:04 +08:00
Alex Tugarev
c8c4c3bda9
Root out obsolete self-hosted setup (#17729) 2023-05-25 15:44:59 +08:00
Pudong
176393a0c8
Add support to forward https protocol port (#17644)
* add support to forward https protocol port

* Update components/ws-proxy/pkg/proxy/routes.go

Co-authored-by: Kyle Brennan <kyle@gitpod.io>

---------

Co-authored-by: Kyle Brennan <kyle@gitpod.io>
2023-05-19 15:22:53 +08:00
Sven Efftinge
b7d01a7e25
Disallow deletion of teams (#17538) 2023-05-10 22:25:55 +08:00
Kyle Brennan
99eb2593d5
[test] Fix workspace integration tests (#17222)
* [tests] unique ContextURL for commit only

* [tests] include std output in the error message for commit

Sometimes commit fails with status 1 w/o error output...so it's helpful to look at StdOut

* [tests] Fix TestGitActions by using the test case context

Prior to this, createWorkspace was working, but getWorkspace could not find the created workspace.

* [test] bypass exit code 1 on `git commit` with `--allow-empty`

* [test] Fix gcloud auth, do setup before auth

* Show all output

Might remove later...

* [test] avoid using deleted user, identity, and token

* [test] add organizationId to CreateWorkspaceOptions

It's expected on the Typescript side:
90b7d65858/components/server/src/workspace/gitpod-server-impl.ts (L1227-L1235)

* [test] orgId is required on createWorkspace

But sometimes there's no team 🤷

* [test] fix git context tests

We use UBP now, there is no more unleashed.

Also, remove the "ff" feature flag code (which was for PVC). It was mutating the username, resulting in Code 460 errors on createWorkspace

* [test] Use example test as the example

* [test] fix context tests when run as gitpod-integration-test user

* [test] clean-up

* [test] wait for workspaces to stop

Tests intermittently fail with  to avoid intermittent failures

* [test] add code owners

This way, we can assert tests are passing for all teams prior to merging

* [test] limit # of tests that can run in parallel

* [test] no parallel tests

Test to see if flakeyness goes away...
...and bump the timeout because we reduced parallel runs

* [preview] update the VM image to have parity with production

This:
1. updates from K3s 1.23 to 1.26
2. requires that we remove PodSecurityPolicy changes (as it's no longer supported)
3. resolves intermittent disk pressure issues

* [preview] no PSP in support of VM image update

* We were getting PSP from rook/ceph, which I think was for PVC
* We were getting PSP from the monitoring-satellite

* [test] don't wait for workspace stop with git_test.go, we're testing git actions.

Why? We miss state transitions, it's not guaranteed each one will be returned, and there are other tests waiting.

For example, in the below log, we miss INITIALIZING, RUNNING, and STOPPING.

 workspace.go:369: attempt to create the workspace as user 0565bb3c-e724-4da9-84fb-22e2a7b23b8c, with context github.com/gitpod-io/gitpod-test-repo/tree/integration-test/commit
    workspace.go:411: attempt to get the workspace information: gitpodio-gitpodtestrepo-nscsowy1njb
    workspace.go:423: not preparing
    workspace.go:432: got the workspace information: gitpodio-gitpodtestrepo-nscsowy1njb
    workspace.go:460: wait for workspace to be fully up and running
    workspace.go:569: prepare for a connection with ws-manager
    workspace.go:590: established for a connection with ws-manager
    workspace.go:598: check if the status of workspace is in the running phase: 462f1325-3019-4547-8666-508e8353335e
    workspace.go:631: status: 462f1325-3019-4547-8666-508e8353335e, PENDING
    workspace.go:598: check if the status of workspace is in the running phase: 462f1325-3019-4547-8666-508e8353335e
    workspace.go:631: status: 462f1325-3019-4547-8666-508e8353335e, PENDING
    workspace.go:598: check if the status of workspace is in the running phase: 462f1325-3019-4547-8666-508e8353335e
    workspace.go:631: status: 462f1325-3019-4547-8666-508e8353335e, CREATING
    workspace.go:598: check if the status of workspace is in the running phase: 462f1325-3019-4547-8666-508e8353335e
    workspace.go:631: status: 462f1325-3019-4547-8666-508e8353335e, CREATING
    workspace.go:598: check if the status of workspace is in the running phase: 462f1325-3019-4547-8666-508e8353335e
    workspace.go:631: status: 462f1325-3019-4547-8666-508e8353335e, CREATING
    workspace.go:598: check if the status of workspace is in the running phase: 462f1325-3019-4547-8666-508e8353335e
    workspace.go:504: waiting for stopping the workspace: 462f1325-3019-4547-8666-508e8353335e
    workspace.go:514: attemp to delete the workspace: 462f1325-3019-4547-8666-508e8353335e
    workspace.go:797: confirmed the worksapce is stopped: 462f1325-3019-4547-8666-508e8353335e, STOPPED
    workspace.go:538: successfully terminated workspace
    git_test.go:172: failed to wait for the workspace to start up: cannot wait for workspace: context deadline exceeded

* [preview] retry installing trust-manager

And use trust-manager from the packer image

* [test] clarify USER_TOKEN value for preview environments

* Cleanup

* [preview] remove commented out yaml related to PodSecurityPolicy
2023-05-04 04:07:41 +08:00
Alex Tugarev
341491a1da
Removing ONBOARDING_IN_PROGRESS condition (#17417)
because it blocks all API calls needed during the onboarding.
2023-04-28 03:07:35 +08:00
Alex Tugarev
b7872c1372
Remove deprecated and unused getPortAuthenticationToken method (#17321) 2023-04-24 16:02:45 +08:00
Alex Tugarev
ee82d153e3
Enable Dedicated Onboarding Flow – WEB-193 (#17303)
* uncommitted yarn.lock

* [protocol] adding ONBOARDING_IN_PROGRESS

* [gitpod-db] add `someOrgWithSSO` to team db

* [server] add ONBOARDING_IN_PROGRESS hook

* [dashboard] catch ONBOARDING_IN_PROGRESS error

* [configcat] adding `custom.gitpod_host` attribute to select preview envs
2023-04-21 21:08:42 +08:00
Gero Posmyk-Leinemann
70bfc4d99f
Purge gitpod-protocol from all Chargebee related artifacts (#17291)
* [server, dashboard] Purge NOT_ENOUGH_CREDIT (chargebee)

* [server] Remove CreditAlert notifications

* [protocol] Remove dead code related to Chargebee

* [protocol] Remove superfluous error codes
2023-04-19 23:58:51 +08:00
Anton Kosyakov
ffa75e5536 [jb] support running tests agaist latest backend version 2023-03-29 09:58:31 +02:00
Alex Tugarev
275e782341
[Orgs] Persist slug (#16923)
* [orgs] Persist `slug`

* [Orgs] Make `slug` changeable on Settings page

* update to use input/button components and mutation

* [papi] Re-add Team.slug

---------

Co-authored-by: Brad Harris <bmharris@gmail.com>
2023-03-24 10:51:16 +01:00
Christian Weichel
da4cafd5e5
Gitpod OIDC Identity Provider (#16482)
* Prototype IDP provider

* [gp cli] Add IDP commands

* [public-api] Remove zitadel based IDP implementation

* [gitpod-cli] Add IDP support for Vault

* [idp] Remove per-org IDP

* [idp] Add key cache and random key IDs

* [idp] Defer GetIDToken authorisation to server

* [idp] Add Redis public key cache

* [gitpod-cli] Hide IDP commands

* [idp] Add key ID to JWT

* [idp] Add unit tests

* [idp] Adress review comments

* [public-api-server] Use logging middleware globally

* [public-api-server] Simplify service registration

* [idp] Add Redis outage resilience
2023-03-03 17:11:01 +01:00
Milan Pavlik
e4e05143e2
[baseserver] Initialize tracer with server (#16586)
* [baseserver] Initialize tracer with server

* fix

* Fix

* fix
2023-03-03 14:57:01 +01:00
Anton Kosyakov
532513a848 fix #12208: gp env to respect workspace env vars 2023-02-20 18:36:50 +01:00
Gero Posmyk-Leinemann
1a9094756a [public-api-server] Forward Origin header where provided 2023-02-15 15:39:20 +01:00
Filip Troníček
880f186042 gp timeout set and gp timeout show to echo back the server-interpreted display duration
This means that 1439m doesn't become "1439 minutes", but rather "29 hours and 59 minutes"
2023-02-10 11:38:15 +01:00
Filip Troníček
626b0e1386 Add humanReadableDuration as return value from setWorkspaceTimeout 2023-02-10 11:38:15 +01:00
Milan Pavlik
1dc48fbc23 [teams] Remove slug usage 2023-02-07 07:51:44 +01:00
Sven Efftinge
95996df038 [server, cli] Allow flexible workspace timeouts 2023-01-18 16:14:26 +01:00
Andrew Farries
91571f7277 [protocol] Add NoOrigin ConnectToServerOpt
Allow clients to disable setting an origin header when connecting to
`server`.
2023-01-10 20:52:50 +01:00
mustard
db188ebffa Update copyright of generated file 2023-01-03 09:57:42 +01:00
Sven Efftinge
0605514421 [server] Allow options on ws start
introduces IDE and workspace class arguments on WS Start
2022-12-16 08:42:25 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Milan Pavlik
5400e269a7 [dashboard] List projects using Public API 2022-12-07 08:03:17 -03:00
Anton Kosyakov
83740996d0 [go] clean up gen of go types
In order to allow unmarshalling of config passed from server to ide-service and marhsalling back as JSON.
2022-12-01 13:18:01 -03:00
Andrea Falzetti
63245668cf feat(jetbrains): add rider and clion 2022-11-18 14:43:48 +02:00
mustard
f597a96f05 [supervisor] localify struct of ports sort 2022-11-18 12:17:48 +02:00
Milan Pavlik
1ee7c033b4 [gitpod-protocol] Add project APIs to Golang client 2022-11-15 10:10:45 +02:00
Jean Pierre
5c8f4c1f32 User service 2022-11-12 11:34:42 +02:00
Milan Pavlik
890d648929 [public-api] Define TeamsService.DeleteTeam RPC 2022-11-10 11:12:40 +02:00
Sven Efftinge
9f9c6761b2 [server] update go api 2022-11-10 09:03:45 +01:00
Milan Pavlik
81b94dd359 [public-api] Implement UpdateTeamMember and DeleteTeamMember 2022-11-04 10:09:08 +01:00
Milan Pavlik
172bf96007 [gitpod-protocol] Support using Cookie for Golang client 2022-11-03 08:59:07 +01:00
Milan Pavlik
9e255760eb [gitpod-protocol] Add ResetGenericInvite to golang client 2022-11-03 08:58:07 +01:00
Milan Pavlik
debb16b9cb [gitpod-protocol] Add support for getTeam in golang client 2022-11-02 09:34:06 +01:00
Milan Pavlik
ede1bcefb0 [gitpod-protocol] Add support for getTeams to golang client 2022-11-01 09:19:06 +01:00
Milan Pavlik
355bd423de [gitpod-protocol] Add getGenericInvite to golang client 2022-10-31 16:09:05 +01:00
Milan Pavlik
8accb1497a [gitpod-protocol] Add createTeam, joinTeam, getTeamMembers to Go lib 2022-10-27 10:39:41 +02:00
Milan Pavlik
903e31db2e [gitpod-protocol] Make APIInterface an io.Closer 2022-10-26 14:11:40 +02:00
mustard
71889fd187 [supervisor] respond PortsStatus with order 2022-10-20 22:01:36 +02:00
Victor Nogueira
1f605d62ee Add missing gitpod configurations for RubyMine and WebStorm
Co-authored-by: Anton Kosyakov <anton@gitpod.io>
Co-authored-by: Andrea Falzetti <andrea@gitpod.io>
2022-10-07 10:26:22 +02:00
Anton Kosyakov
08a8412774 random exponential backoff of server connections 2022-10-05 11:16:20 +02:00