2c89e07e12
fix: Redirect to login when unauthenticated and requesting a workspace app ( #2903 )
...
Fixes #2884 .
2022-07-11 13:46:01 -05:00
dff6e97f83
feat: Add allowlist of GitHub teams for OAuth ( #2849 )
...
Fixes #2848 .
2022-07-08 21:37:18 -05:00
52fa1f2464
fix: Handle all method types for app proxying ( #2868 )
...
All methods need to be accepted on app routes. Some apps
may POST (like Jupyter).
2022-07-08 15:45:28 -05:00
bacfd630fb
fix: Disable random workspace filter tests due to flakes ( #2855 )
...
Contributes towards #2854 .
2022-07-08 13:01:00 -05:00
b1e4cfe6c8
fix pubsub/poll race on provisioner job logs ( #2783 )
...
* fix pubsub/poll race on provisioner job logs
Signed-off-by: Spike Curtis <spike@coder.com >
* only cancel on non-error
Signed-off-by: Spike Curtis <spike@coder.com >
* Improve logging & comments
Signed-off-by: spikecurtis <spike@spikecurtis.com >
2022-07-01 14:07:18 -07:00
22febc749a
provisionerd sends failed or complete last ( #2732 )
...
* provisionerd sends failed or complete last
Signed-off-by: Spike Curtis <spike@coder.com >
* Move runner into package
Signed-off-by: Spike Curtis <spike@coder.com >
* Remove jobRunner interface
Signed-off-by: Spike Curtis <spike@coder.com >
* renames and slight reworking from code review
Signed-off-by: Spike Curtis <spike@coder.com >
* Reword comment about okToSend
Signed-off-by: Spike Curtis <spike@coder.com >
2022-07-01 09:55:46 -07:00
482feef373
feat(devtunnel): support geodistributed tunnels ( #2711 )
2022-06-30 19:11:13 -05:00
9df6bc7ba1
fix: update template updated_at value ( #2729 )
...
* fix: update template updated_at value
* use Go time for all updated_at updates
2022-06-30 12:14:51 +00:00
38fb6cb4b4
test: Try again in unit test if user already exists ( #2730 )
2022-06-29 14:17:32 -05:00
baa36182c0
fix: Allow spaces in searches ( #2723 )
2022-06-29 11:59:38 -05:00
576aef40f2
chore: Add linter rule to catch missing return after http writes ( #2702 )
2022-06-28 14:13:37 -05:00
a494489ffa
fix: use valid ip mask in api keys when remote address is ipv6 ( #2695 )
2022-06-27 20:31:18 +00:00
2353687610
feat: unexpose coderdtest.NewWithAPI ( #2613 )
...
* feat: unexpose coderdtest.NewWithAPI
2022-06-27 13:50:52 -05:00
6429dfee1f
test: Use a template to prevent migrations from running for every test ( #2462 )
...
* test: Use a template to prevent migrations from running for every test
* Create a single makefile target
* Fix built-in race
* Extend timeout of built-in PostgreSQL fetch
2022-06-27 17:07:39 +00:00
f41b50a253
feat: Updating workspace prompts new parameters ( #2598 )
2022-06-27 16:19:10 +00:00
08f4b193e1
fix: Elongate agent disconnect timeout in tests ( #2687 )
...
This will fix the flake seen here:
https://github.com/coder/coder/runs/7071719863?check_suite_focus=true
2022-06-27 15:06:51 +00:00
4851d932c4
fix: Split host and port before storing IP ( #2594 )
...
The IP was always nil prior, and this fixes the test to
check for that as well!
2022-06-26 21:22:03 +00:00
01c31b47a3
fix: Adjust pagination limit to be zero-based ( #2663 )
...
There isn't a use-case for querying a limit of zero. Using
-1 led to issues when using default parameters for querying.
2022-06-26 20:23:25 +00:00
95e854d144
fix: Update database fake to check for nil time when streaming logs ( #2664 )
...
This caused a test flake seen here: https://github.com/coder/coder/runs/7056544834?check_suite_focus=true
2022-06-26 19:52:15 +00:00
3312c814bd
feat: Workspace filters case insensitive ( #2646 )
2022-06-25 06:22:59 -05:00
90815e5119
feat: improve Users filter API ( #2645 )
2022-06-24 23:55:28 +00:00
26e85b0bbc
fix: use typed wireguard public keys in database structs ( #2639 )
2022-06-24 15:45:28 -05:00
46c6b9ee27
fix: use correct default wireguard public key ( #2638 )
2022-06-24 17:16:36 +00:00
05b67ab1cf
feat: peer wireguard ( #2445 )
2022-06-24 10:25:01 -05:00
d21ab2115d
feat: Backend api for filtering users using filter query string ( #2553 )
...
* User search query string
2022-06-24 10:02:23 -05:00
0bcdfd584f
fix: order apps by name ( #2614 )
2022-06-23 19:18:03 +00:00
b55fca4904
fix: Increase timeout for streaming logs ( #2596 )
...
One second wasn't long enough, and was causing flakes in CI.
2022-06-23 09:00:00 -05:00
3f9776784c
fix: Subtract a second when listening in TestWorkspaceBuildLogs ( #2588 )
...
This allowed a test flake seen here:
https://github.com/coder/coder/runs/7009119403?check_suite_focus=true#step:9:151
2022-06-22 17:48:03 +00:00
cfbda57990
fix: Parse 24h time format from schedule cron in CLI ( #2586 )
...
* fix: parse 24h time format from schedule cron in cli
* add unit test
2022-06-22 17:45:00 +00:00
b7eeb436ad
feat: Add ip_address
to API keys ( #2580 )
...
Fixes #2561 .
2022-06-22 17:32:21 +00:00
caf9c41a9e
fix: Stop sending before logs when after is specified ( #2585 )
...
This fixes duplicate logs appearing in completed jos!
2022-06-22 17:09:28 +00:00
1778db23cb
fix: Use WebSockets to stream workspace build logs ( #2569 )
...
* fix: Use WebSockets to stream workspace build logs
This was using a streaming HTTP request before, which didn't work
on my version of Chrome. This method seemed less reliable and standard
than a WebSocket, so figured switching would be best.
* Update site/src/xServices/workspaceBuild/workspaceBuildXService.ts
Co-authored-by: Abhineet Jain <AbhineetJain@users.noreply.github.com >
* Update site/src/pages/WorkspaceBuildPage/WorkspaceBuildPage.test.tsx
Co-authored-by: Abhineet Jain <AbhineetJain@users.noreply.github.com >
* Update site/src/api/api.ts
Co-authored-by: Abhineet Jain <AbhineetJain@users.noreply.github.com >
* Remove unused prop
Co-authored-by: Abhineet Jain <AbhineetJain@users.noreply.github.com >
2022-06-22 13:23:14 +00:00
e2785ada5e
feat: Compress and extract slim binaries with zstd ( #2533 )
...
Fixes #2202
Co-authored-by: Dean Sheather <dean@deansheather.com >
2022-06-21 19:53:36 +03:00
0aa66b4296
Lock the fake database during transactions ( #2478 )
...
* Lock the fake database during transactions
Signed-off-by: Spike Curtis <spike@coder.com >
* Add ut for fake database transactions
Signed-off-by: Spike Curtis <spike@coder.com >
* fix lint
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix lint macOS
Signed-off-by: Spike Curtis <spike@coder.com >
2022-06-17 13:50:11 -07:00
edd1083176
fix: Fix test flake based on same update time ( #2484 )
2022-06-17 15:20:21 -05:00
a9d62cc992
fix: Fix nested transactions should function correctly ( #2470 )
...
* fix: Fix nested transactions should function correctly
Inner tx should reuse outer tx
2022-06-17 15:10:44 -05:00
17ba4c8e88
fix: Allow template names to be re-used after deletion ( #2454 )
...
Fixes #2152
2022-06-17 19:18:07 +00:00
289b98978f
Add reason
field for workspace builds ( #2438 )
...
* add reason field for workspace build
* add the reason field to FE via API
* update BuildReasonMember to BuildReasonInitiator
* add unit tests
* add more unit tests
* add error for unknown transition
* fix lint
* add documentation
* fix unit tests
* fix generated types
* remove nested transaction
* rename migration file
2022-06-17 13:41:11 -04:00
64b92eea67
feat: Allow inheriting parameters from previous template_versions when updating a template ( #2397 )
...
* WIP: feat: Update templates also updates parameters
* Insert params for template version update
* Working implementation of inherited params
* Add "--always-prompt" flag and logging info
2022-06-17 12:22:28 -05:00
7cce7a9c69
test: Write URL after signal listen to fix flake ( #2456 )
...
The URL could be read before the signal was listening, causing
this test to flake: https://github.com/coder/coder/runs/6936820170?check_suite_focus=true
2022-06-17 14:16:45 +00:00
be02d87f22
fix: Swap migration numbers to fix deployment
2022-06-17 05:47:13 +00:00
4cce969018
feat: Add anonymized telemetry to report product usage ( #2273 )
...
* feat: Add anonymized telemetry to report product usage
This adds a background service to report telemetry to a Coder
server for usage data. There will be realtime event data sent
in the future, but for now usage will report on a CRON.
* Fix flake and requested changes
* Add reporting options for setup
* Add reporting for workspaces
* Add resources as they are reported
* Track API key usage
* Ensure telemetry is tracked prior to exit
2022-06-17 00:26:40 -05:00
c9691eafcb
feat: cli: consolidate schedule-related commands ( #2402 )
...
* feat: cli: consolidate schedule-related commands
This commit makes the following changes:
- renames autostart -> schedule starat
- renames ttl -> schedule stop
- renames bump -> schedule override
- adds schedule show command
- moves some cli-related stuff to util.go
2022-06-16 18:24:10 +01:00
c36b0d892b
fix(devtunnel): use 1280 mtu ( #2420 )
...
This should be more compatible with cloud VMs and VPNs.
2022-06-16 12:12:04 -05:00
a82c0eb560
Fix socket leak, clean up single use postgres databases ( #2413 )
...
* Fix socket leak, clean up single use postgres databases
Signed-off-by: Spike Curtis <spike@coder.com >
* Move migrate close defer until after we know it is not nil
Signed-off-by: Spike Curtis <spike@coder.com >
2022-06-16 09:01:33 -07:00
024ab6df57
fix: Use in-memory filesystem for echo provisioner tests ( #2408 )
...
* fix: Use in-memory filesystem for echo provisioner tests
This should reduce IO in CI to shave some time off tests!
* test: Increase timeouts to reduce flakes
It's difficult to understand what's timing out due to a lock
vs. taking a long time. This should help resolve! 🕵️
2022-06-16 15:09:22 +00:00
ccd061652b
feat: Add built-in PostgreSQL for simple production setup ( #2345 )
...
* feat: Add built-in PostgreSQL for simple production setup
Fixes #2321 .
* Use fork of embedded-postgres for cache path
2022-06-15 16:02:18 -05:00
9b3b6418a2
feat: Add template pull cmd ( #2329 )
2022-06-15 12:42:43 -05:00
12a664fa9a
fix: coderd: fix flaky test ( #2343 )
2022-06-15 14:32:02 +00:00
e9f87f12ec
chore: skip devtunnel test ( #2336 )
2022-06-14 20:32:40 -05:00