Kyle Carberry
16c12e976e
chore: Improve agent logging ( #3483 )
2022-08-12 07:01:00 -05:00
Kyle Carberry
ca342067b3
fix: Remove typo in policy.rego
2022-08-11 23:33:50 -05:00
Ammar Bandukwala
d7b96f7d58
Correct spelling of macOS ( #3478 )
...
* Correct spelling of macOS
* fixup! Correct spelling of macOS
* fixup! Correct spelling of macOS
2022-08-11 21:22:06 -04:00
Jon Ayers
923c212960
chore: add zstd to dogfood image ( #3479 )
2022-08-11 17:48:49 -05:00
Steven Masley
3ae42f4de9
chore: Update rego to be partial execution friendly ( #3449 )
...
- Improves performance of batch authorization calls
- Enables possibility to convert rego auth calls into SQL WHERE clauses
2022-08-11 22:07:48 +00:00
Bruno Quaresma
4a17e0d91f
feat: Add setup page ( #3476 )
2022-08-11 17:22:46 +00:00
Sagar Vora
604f211674
fix: replace broken link with Github contributors graph ( #3472 )
2022-08-11 14:35:51 +00:00
Kira Pilot
6122df6f1f
feature: gate audit log by permissions ( #3464 )
...
* pairing
* restricting audit route
resolvees #3460
* updated tests
* fixing lint
* useSelector instead of useActor
2022-08-11 09:34:45 -04:00
Ammar Bandukwala
4e6645af50
docs: outdent generic quickstart ( #3467 )
2022-08-10 21:53:35 -05:00
Jon Ayers
426b30ed16
fix: add missing dependencies to dogfood image ( #3470 )
2022-08-11 01:24:56 +00:00
Eric Paulsen
272962cfae
docs: add upgrade page & update getting started ( #3439 )
2022-08-10 17:56:21 -05:00
Presley Pizzo
5d40b1f0f4
feat: Add switches for auto-start and auto-stop ( #3358 )
...
* Add elements
* Add Loading story
* Make form show empty values when manual
* Make form depend on switches
* Fix style
* Format
* Update unit tests
* Tweaks
* Update storybook
* Move util files
* Pull out more util functions
* Pull out strings
* Add border to section
* Make min ttl 1
* Format
* Fix import
* Fix validation for falsey values
* Format and fix tests
* Put switches in form, persist form state
* Fix bug
* Remove helper text when disabled
* Fix storybook
* Revert "Remove helper text when disabled"
This reverts commit a6271ca6c4 .
* Format
* Use nicer function to set values
* Format
2022-08-10 22:03:15 +00:00
Ben Potter
cee0d1f848
chore: add metadata to example templates ( #3451 )
2022-08-10 16:34:17 -05:00
Mathias Fredriksson
95f26f74b6
fix: Close response body in cli server test ( #3459 )
v0.8.5
2022-08-10 16:30:46 +00:00
Kyle Carberry
d6d9cf9b30
fix: Downgrade embedded PostgreSQL ( #3453 )
...
This was causing a new data path to occur, which broke existing installs.
It needs to use the same path and upgrade instead.
2022-08-10 10:08:24 -05:00
Kyle Carberry and Kyle Carberry
fd73d6dd0d
fix: Reduce variables needed for Docker template ( #3442 )
...
* fix: Reduce variables needed for Docker template
This should make initial setup a bit simpler!
* Fix for M2 Macbooks
PostgreSQL 13 doesn't support the M series architecture.
* Fix name <-> id swap
* Update Docker provider to remove host requirement
Co-authored-by: Kyle Carberry <kyle@air.local >
2022-08-10 14:45:05 +00:00
Bruno Quaresma
758eb21b36
feat: Support booleans for parameters input ( #3437 )
2022-08-10 10:41:26 -03:00
Ammar Bandukwala
f28cd15706
docs: remove incorrect SSH key info ( #3448 )
2022-08-09 22:15:18 -05:00
Ammar Bandukwala
3ceee76784
docs: explain resource metadata ( #3447 )
2022-08-09 20:21:26 -05:00
Ammar Bandukwala
c73f708678
docs: remove configuring prefix from IDEs ( #3446 )
2022-08-09 20:10:09 -05:00
Ammar Bandukwala
815bf1b668
docs: fix IDE icon ( #3445 )
2022-08-09 20:07:51 -05:00
Ammar Bandukwala
88c9f31007
docs: explain how to display secrets ( #3443 )
2022-08-09 23:45:30 +00:00
Ammar Bandukwala
fd59e2e812
add metadata to dogfood template ( #3444 )
2022-08-09 23:40:12 +00:00
Steven Masley
db665e7261
chore: Drop resource_id support in rbac system ( #3426 )
2022-08-09 18:16:53 +00:00
Mathias Fredriksson
ccf6f4e7ed
chore: Use contexts with timeout in coderd tests ( #3381 )
2022-08-09 20:17:00 +03:00
Bruno Quaresma
690ba661a7
feat: Add metadata support to the UI ( #3431 )
2022-08-09 16:49:06 +00:00
Kyle Carberry
53400c6205
fix: Check if an API error has data before checking the message ( #3427 )
...
This was causing the app to crash with an error. I found this manually
by looking through the obfuscated sources in DevTools. It's a
data-point for #3425 though!
v0.8.4
2022-08-09 14:26:18 +00:00
Kyle Carberry
e1da2b6467
fix: Don't fetch resources when a workspace is building ( #3424 )
...
Fixes #3423 .
2022-08-09 14:07:01 +00:00
Mathias Fredriksson
c0cc8b9935
fix: Improve friendly validation error messages ( #3390 )
...
* fix: Add validations to `(*codersdk.Error).Friendly`
* fix: Add named validators for template and workspace name
2022-08-09 14:25:23 +03:00
Kyle Carberry
f62e1ede77
feat: Add support for GitHub Enterprise authentication ( #3422 )
...
This was manually tested with GitHub Enterprise v3.6.0-rc1.
v0.8.3
2022-08-08 20:49:51 -05:00
Kyle Carberry
7bdb8ff9cf
feat: Add workspace metrics export to Prometheus ( #3421 )
...
This adds workspace totals indexed by status. It could be any
codersdk.ProvisionerJobStatus.
2022-08-09 01:08:42 +00:00
Kira Pilot
e62677efab
feat: add audit page title, subtitle, and CLI snippet ( #3419 )
...
* resolves #3356
* scaffolded out new audit page header
resolves #3357
* added tests and stories
* run prettier
2022-08-08 21:08:36 -04:00
Spike Curtis
049e7cb5df
azure-linux example template ( #3348 )
...
* azure-linux example template
Signed-off-by: Spike Curtis <spike@coder.com >
* Use azurerm_linux_virtual_machine and wait for attachment
Signed-off-by: Spike Curtis <spike@coder.com >
* Use azure-instance-identity
Signed-off-by: Spike Curtis <spike@coder.com >
2022-08-08 15:25:20 -07:00
Kyle Carberry
a848e71f58
fix: Make the twitter handle lowercase in README ( #3413 )
...
The uppercase was bothering...
2022-08-08 13:17:38 -05:00
Kyle Carberry
42bac09c1a
fix: Sort workspace agents by name ( #3407 )
...
Fixes #2778 .
2022-08-08 12:25:29 -05:00
Kyle Carberry
d275e52a41
fix: Add godoc badge to README ( #3412 )
...
This helps allude to the idea that Coder provides an API as
seen in #3411 .
This also fixes the codecov badge from always being red ;p
2022-08-08 12:16:40 -05:00
Kira Pilot
eb7d947d10
resolves #3356 ( #3408 )
2022-08-08 12:23:01 -04:00
9c12b4ed8e
chore: Add nix shell for simple development setup ( #3399 )
...
* chore: Add nix shell for simple development setup
This enables contributors using Nix to set up their environment with ease.
* improve nix style, flake output schema
* fix error message
* Update scripts/build_go_slim.sh
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
* Update scripts/build_go_slim.sh
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
* Add UTC default for timezone and remove unnecessary goreleaser dependency
* Skip TZ test if localtime does not exist
Co-authored-by: Charlie Moog <moogcharlie@gmail.com >
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
2022-08-08 15:49:12 +00:00
Kyle Carberry
3279504cbe
feat: Add active users prometheus metric ( #3406 )
...
This allows deployments using our Prometheus export t determine
the number of active users in the past hour.
The interval is an hour to align with API key last used refresh times.
SSH connections poll to check shutdown time, so this will be accurate
even on long-running connections without dashboard requests.
2022-08-08 10:09:46 -05:00
Ammar Bandukwala
13a2014d7f
docs: fix up port-forwarding ( #3403 )
...
- Improve English
- Make new page live in manifest.json
- Add icon
- Outdent page to root
2022-08-07 22:22:47 +00:00
mark-theshark and Eric Paulsen
8d4b6086f6
chore: docs: add port-forwarding options (CLI & ssh) ( #3394 )
...
* chore: docs: add port-forwarding options
* fix: code type
Co-authored-by: Eric Paulsen <eric@Erics-MacBook-Air.local >
2022-08-07 17:30:15 -04:00
mark-theshark
44a826dc06
docs: fix address specification in Docker quickstart ( #3396 )
2022-08-07 14:52:55 -05:00
Mathias Fredriksson
1fb274cbda
fix: Disallow args for config-ssh subcommand in cli ( #3393 )
2022-08-06 20:56:42 +03:00
Mathias Fredriksson
b10a1b84e5
fix: Fix close in pty and ptytest ( #3392 )
2022-08-05 21:31:54 +03:00
Ben Potter
f14efd1a2b
chore: alphabetize template list ( #3363 )
2022-08-05 13:03:22 -05:00
Cian Johnston
854bb5dbeb
fix: post-hoc testutil fix ( #3391 )
2022-08-05 16:09:20 +00:00
Abhineet Jain
e7bc01383c
fix: handle workspace errors ( #3341 )
2022-08-05 10:38:07 -05:00
Cian Johnston and Mathias Fredriksson
01fe5e668e
chore: add testutil.Eventually and friends ( #3389 )
...
This PR adds a `testutil` function aimed to replace `require.Eventually`.
Before:
```go
require.Eventually(t, func() bool { ... }, testutil.WaitShort, testutil.IntervalFast)
```
After:
```go
require.True(t, testutil.EventuallyShort(t, func(ctx context.Context) bool { ... }))
// or the full incantation if you need more control
ctx, cancel := context.WithTimeout(ctx.Background(), testutil.WaitLong)
require.True(t, testutil.Eventually(t, ctx, func(ctx context.Context) bool { ... }, testutil.IntervalSlow))
```
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
2022-08-05 16:34:44 +01:00
Mathias Fredriksson
46d64c624a
fix: Add ps.Kill/Wait to test cleanup in ptytest.Start ( #3387 )
2022-08-05 13:35:33 +03:00
Mathias Fredriksson
fb9fca8bc9
fix: Ensure terraform tests have a cache path and logger ( #3161 )
...
* fix: Ensure terraform tests have a cache path and logger
* fix: Protect against concurrent `terraform init`
2022-08-04 20:37:07 +03:00