Ammar Bandukwala
465fe8658d
chore: skip timing-sensistive AgentMetadata test in the standard suite ( #7237 )
...
* chore: skip timing-sensistive AgentMetadata test in the standard suite
* Add test-timing target
* fix windows?
* Works on my Windows desktop?
* Use tag system
* fixup! Use tag system
2023-05-02 10:41:41 +00:00
Dean Sheather
398d08a0cf
chore: fix ci.yaml deploy step for other regions 2 ( #7368 )
2023-05-02 01:34:21 +00:00
Dean Sheather
41726a785e
chore: fix ci.yaml deploy step for other regions ( #7367 )
2023-05-02 01:00:55 +00:00
Dean Sheather
140637448c
chore: fix nfpm.yaml ( #7366 )
2023-05-01 22:44:11 +00:00
Dean Sheather
3b15234660
chore: add continuous deployment for workspace proxies ( #7364 )
2023-05-02 08:02:51 +10:00
Ammar Bandukwala
4b9621f9ae
fix(coderd): don't hang on first gitauth clone ( #7331 )
...
Previously, the `coder git ssh` command would hang on the API, which was endlessly polling the database for oauth tokens that expire in the future.
Some oAuth implementations (including GitHub by default) will not give back a token expiry date, and the absence of such a date was represented as a zero data in the database as opposed to a null value.
Follow-up calls to `git clone` would succeed because this hot path doesn't check expiry, perhaps originally by mistake.
In addition to fixing the zero date issue, this PR removes all gitauth PubSub, which added too much complexity when the polling interval is 1 second.
2023-05-01 19:19:41 +00:00
Steven Masley
55824986bc
chore: 404 Requests to workspace proxy direct back to the primary ( #7353 )
...
* chore: 404 Requests to workspace proxy direct back to the primary
* Remove unnecessary sprintf
2023-05-01 13:58:36 -05:00
dependabot[bot]
04f9ca824f
chore: bump golang.org/x/mod from 0.8.0 to 0.10.0 ( #7338 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-01 16:51:28 +00:00
dependabot[bot]
6030847c94
chore: bump golang.org/x/crypto from 0.7.0 to 0.8.0 ( #7336 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-01 11:39:40 -05:00
dependabot[bot]
4dec828c88
chore: bump tj-actions/branch-names from 6.4 to 6.5 ( #7334 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-01 16:26:52 +00:00
dependabot[bot]
38fd4c0820
chore: bump gopkg.in/natefinch/lumberjack.v2 from 2.0.0 to 2.2.1 ( #7337 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-01 11:15:38 -05:00
dependabot[bot]
0bf00d6122
chore: bump aquasecurity/trivy-action from 0.9.2 to 0.10.0 ( #7333 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-01 11:15:09 -05:00
dependabot[bot]
a3f3d7e682
chore: bump github.com/hashicorp/hc-install from 0.4.1-0.20220912074615-4487b02cbcbb to 0.5.1 ( #7342 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-01 16:14:43 +00:00
dependabot[bot]
97c8bb5c1d
chore: bump crate-ci/typos from 1.14.3 to 1.14.8 ( #7332 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-01 11:14:15 -05:00
Steven Masley
079d2821f5
chore: Set proxy health checks to 1 minute intervals ( #7351 )
2023-05-01 16:06:29 +00:00
Rodrigo Maia
d3a9d7c497
chore: minor tweaks to license ui ( #7314 )
...
* chore: minor tweaks to license ui
* minor license ui tweaks
* rename stories
2023-04-28 21:49:54 +00:00
Steven Masley
4a9d1c16c7
chore: UI/UX for regions ( #7283 )
...
* chore: Allow regular users to query for all workspaces
* FE to add workspace proxy options to account settings
* WorkspaceProxy context syncs with coderd on region responses
---------
Co-authored-by: Dean Sheather <dean@deansheather.com>
2023-04-28 16:04:52 -05:00
Colin Adler
c00f5e499a
fix(server): retry initial connection to postgres ( #7325 )
2023-04-28 13:51:31 -05:00
Kira Pilot
a2ff674158
fix(UI): workspace restart button stops build before starting a new one ( #7301 )
...
* feat(UI): add workspace restart button (#7137 )
* Refactor primary buttons
* refactor(site): Always show the main actions
* Remove tests that are testes on Storybook
* Fix tests
* Fix keys
* added restart btn
---------
Co-authored-by: BrunoQuaresma <bruno_nonato_quaresma@hotmail.com>
* added restart hook
* added error handling
* going back to chaining in success callback
* add restarting btn
* added test
* PR feedback
---------
Co-authored-by: BrunoQuaresma <bruno_nonato_quaresma@hotmail.com>
2023-04-28 11:16:04 -07:00
Eric Paulsen
3078cd3d98
fix: envbox template 404 ( #7324 )
2023-04-28 12:49:26 -05:00
Ben Potter
8d1f163cae
chore: remove login_before_ready from example templates ( #7322 )
2023-04-28 14:59:50 +00:00
Bruno Quaresma
88c362dfdc
refactor(site): Refactor error state ( #7313 )
2023-04-28 13:03:01 +00:00
Marley
e747aad2b6
docs: added additional documentation for azure devops git provider ( #6923 )
...
Co-authored-by: Ben Potter <me@bpmct.net>
Co-authored-by: Atif Ali <matifali@live.com>
2023-04-28 11:41:47 +00:00
Colin Adler
59efa4a528
fix(audit): ensure template creation errors are audited ( #7315 )
2023-04-27 18:55:34 -05:00
Marcin Tojek
77d9937dc4
fix: vite fatals on receiving HTTP4xx ( #7306 )
...
* fix: vite fatals on receiving HTTP4xx
* tune Vite
* fmt
* rewrite
* fmt
2023-04-27 19:04:24 +02:00
Eric Paulsen
ed1b33acd6
docs: clarify quota allocation ( #7310 )
2023-04-27 16:51:05 +00:00
Ben Potter
fe323a159e
fix: keep "workspace create" form when rendering errors ( #7289 )
...
* fix: keep "workspace create" form when rendering errors
* fmt
* scroll to top if errors are present
2023-04-27 16:31:42 +00:00
Marcin Tojek
bb0a38b161
feat: Implement aggregator for agent metrics ( #7259 )
2023-04-27 12:34:00 +02:00
Spike Curtis
b6666cf1cf
chore: tailnet debug logging ( #7260 )
...
* Enable discovery (disco) debug
Signed-off-by: Spike Curtis <spike@coder.com>
* Better debug on reconnectingPTY
Signed-off-by: Spike Curtis <spike@coder.com>
* Agent logging in appstest
Signed-off-by: Spike Curtis <spike@coder.com>
* More reconnectingPTY logging
Signed-off-by: Spike Curtis <spike@coder.com>
* Add logging to coordinator
Signed-off-by: Spike Curtis <spike@coder.com>
* Update agent/agent.go
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
* Update agent/agent.go
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
* Update agent/agent.go
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
* Update agent/agent.go
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
* Clarify logs; remove unrelated changes
Signed-off-by: Spike Curtis <spike@coder.com>
---------
Signed-off-by: Spike Curtis <spike@coder.com>
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
2023-04-27 13:59:01 +04:00
winter0mute
7aa07cfc8d
docs: Fix relay link in HA doc ( #7159 )
...
Co-authored-by: Muhammad Atif Ali <atif@coder.com>
2023-04-27 08:25:15 +00:00
Jon Ayers
f1763f2aa5
chore: add envbox documentation ( #7198 )
2023-04-26 16:42:33 -05:00
Rodrigo Maia
87b7537878
feat: add license settings UI ( #7210 )
...
* wip: license page
* WIP
* WIP
* wip
* wip
* wip
* wip
* wip
* wip
* Apply suggestions from code review
Co-authored-by: Ben Potter <ben@coder.com>
* wip: ui improvements
* wip: extract components
* wip: stories
* wip: stories
* fixes from PR reviews
* fix stories
* fix empty license page
* fix copy
* fix
* wip
* add golang test
---------
Co-authored-by: Ben Potter <ben@coder.com>
2023-04-26 17:47:46 -03:00
Rodrigo Maia
c3fe2515a7
feat: add license expiration warning ( #7264 )
...
* wip: add expiration warning
* Use GraceAt
* show expiration warning for trial accounts
* fix test
* only show license banner for users with deployment permission
---------
Co-authored-by: Marcin Tojek <marcin@coder.com>
2023-04-26 16:39:39 -03:00
Colin Adler
3eb7f06bf1
feat(agent): add http debug routes for magicsock ( #7287 )
2023-04-26 13:01:49 -05:00
Ben Potter
272573e9f0
chore: change some wording in the dashboard ( #7293 )
2023-04-26 11:34:17 -05:00
Bruno Quaresma
0e469031b8
fix(site): Fix secondary buttons with popovers ( #7296 )
2023-04-26 15:33:23 +00:00
Bruno Quaresma
218d6a92d4
docs(site): Mention template editor in template edit docs ( #7261 )
2023-04-26 12:11:12 +00:00
Spike Curtis
29cbc5404a
Reconnecting PTY waits for command output or EOF ( #7279 )
...
Signed-off-by: Spike Curtis <spike@coder.com>
2023-04-26 09:02:06 +04:00
Dean Sheather
f1dfeb03db
chore: fix flake in apptest reconnecting-pty test ( #7281 )
2023-04-26 00:31:41 +00:00
Bruno Quaresma
35b3ed255c
fix(site): Fix default value for options ( #7265 )
2023-04-25 17:26:42 -03:00
Bruno Quaresma
1134e78b7b
fix(site): Do not show template params if there is no param to be displayed ( #7263 )
2023-04-25 19:54:33 +00:00
Cian Johnston
9afad8241b
chore: add security advisories to docs ( #7282 )
...
* chore: add security advisories to docs
* Update docs/security/0001_user_apikeys_invalidation.md
Co-authored-by: Ammar Bandukwala <ammar@ammar.io>
---------
Co-authored-by: Ammar Bandukwala <ammar@ammar.io>
2023-04-25 16:56:09 +01:00
Colin Adler
b62b6af0eb
fix(healthcheck): don't allow panics to exit coderd ( #7276 )
2023-04-25 15:11:45 +00:00
Dean Sheather
a98341612c
feat: add regions endpoint for proxies feature ( #7277 )
...
* feat: add regions endpoint for proxies feature
2023-04-25 09:37:52 -05:00
Spike Curtis
6e8ff2d95c
Fix macOS pty race with dropped output ( #7278 )
...
Signed-off-by: Spike Curtis <spike@coder.com>
2023-04-25 12:32:28 +04:00
Colin Adler
e2d8bda246
chore(dogfood): remove unnecessary docker host replace ( #7269 )
2023-04-25 04:58:09 +00:00
Cian Johnston
8fc8559076
fix(coderd): ensure that user API keys are deleted when a user is ( #7270 )
...
Fixes an issue where API tokens belonging to a deleted user were
not invalidated:
- Adds a trigger to delete rows from the api_key stable when the
column deleted is set to true in the users table.
- Adds a trigger to the api_keys table to ensure that new rows
may not be added where user_id corresponds to a deleted user.
- Adds a migration to delete all API keys from deleted users.
- Adds tests + dbfake implementation for the above.
2023-04-24 21:48:26 +01:00
Bruno Quaresma
ad82a60806
refactor(site): Group app and agent actions together ( #7267 )
2023-04-24 16:59:52 -03:00
Kira Pilot
96a12d17ef
Revert "feat(UI): add workspace restart button ( #7137 )" ( #7268 )
...
This reverts commit 9ec16d4454
.
2023-04-24 12:44:22 -07:00
Steven Masley
3129741e08
chore: Proxy health status checks + endpoint ( #7233 )
...
* chore: Implement workspace proxy health check cron
At a given interval will check the reachability of workspace proxies.
* Proxyhealth is an enterprise feature
* Start proxyhealth go routine on enterprise coder
2023-04-24 10:25:35 -05:00