38bdae7016
docs: Prometheus metrics + generator ( #5179 )
...
* docs: Prometheus metrics
* Fix
* Typo
* Typo
* Typo
* Fix: link
* Update docs/admin/prometheus.md
Co-authored-by: Dean Sheather <dean@deansheather.com >
* Update docs/admin/prometheus.md
Co-authored-by: Dean Sheather <dean@deansheather.com >
* Update docs/admin/prometheus.md
Co-authored-by: Dean Sheather <dean@deansheather.com >
* Update docs/admin/prometheus.md
Co-authored-by: Dean Sheather <dean@deansheather.com >
* Update docs/admin/prometheus.md
Co-authored-by: Dean Sheather <dean@deansheather.com >
* Rephrase
* notice
* use ```shell
* Generator
* gosec
* fix: lint
* PR comments
* not needed anymore
Co-authored-by: Dean Sheather <dean@deansheather.com >
Co-authored-by: Geoffrey Huntley <ghuntley@ghuntley.com >
2022-11-30 17:39:51 +01:00
Bruno Quaresma
be79ae7d48
refactor: Add coder tip pill on sign in page ( #5196 )
2022-11-30 13:38:12 -03:00
Kyle Carberry
2a73362026
fix: add mutex to MockAuditor export to prevent race ( #5189 )
...
See: https://github.com/coder/coder/actions/runs/3575201153/jobs/6011435900 .
2022-11-30 16:25:30 +00:00
Bruno Quaresma
41f10e7b69
refactor: Show template version in the workspace page ( #5194 )
2022-11-30 09:13:07 -05:00
Marcin Tojek
5817d2a301
skip: loadtest/reconnectingpty Test_Runner/Timeout ( #5199 )
2022-11-30 11:04:01 +01:00
Presley Pizzo
2e3db274f1
fix: send auto start/stop api calls only when changed ( #5184 )
...
* Send auto start/stop api calls only when changed
* Format
* Extract and test util function
2022-11-29 15:12:36 -05:00
Kyle Carberry
8b73844f69
feat: Validate Git tokens before consuming them ( #5167 )
...
* feat: Validate Git tokens before consuming them
This works the exact same way that the Git credential manager does. It ensures the user token is valid before returning it to the client.
It's been manually tested on GitHub, GitLab, and BitBucket.
* Fix requested changes
2022-11-29 12:08:27 -06:00
Marcin Tojek
a8f5af1245
skip: loadtest/reconnectingpty Test_Runner/ExpectOutput ( #5188 )
2022-11-29 15:05:04 +00:00
Mathias Fredriksson
085f1917db
fix: Fix develop script pid tracking, improve logging and interrupt ( #5186 )
2022-11-29 15:45:14 +02:00
Dean Sheather
15f8967a8a
feat: tracing improvements ( #4988 )
2022-11-29 07:22:10 +10:00
Bruno Quaresma
d402914eb7
refactor: Return template version name in the workspace build API ( #5178 )
2022-11-28 19:53:56 +00:00
Steven Masley
ab9298f382
chore: Rewrite rbac rego -> SQL clause ( #5138 )
...
* chore: Rewrite rbac rego -> SQL clause
Previous code was challenging to read with edge cases
- bug: OrgAdmin could not make new groups
- Also refactor some function names
2022-11-28 12:12:34 -06:00
Presley Pizzo
d5ab4fdeb8
fix: auto-stop bumper works and refreshes ( #5162 )
...
* Publish updates to workspace deadline
* Fix sync between machines
2022-11-28 10:59:43 -05:00
Muhammad Atif Ali
898ba11ef0
fix: packages.yaml action is not running on release trigger ( #5173 )
...
This commit is a workaround to run the `packages.yaml` action after the release action
Fixes #5137 .
Check #5137 for context.
2022-11-27 07:06:34 -06:00
Muhammad Atif Ali and Mathias Fredriksson
25c80566e7
docs: Add GitHub action to push template changes automatically ( #5166 )
...
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
2022-11-26 13:36:14 +00:00
Muhammad Atif Ali
5f31ea3ffb
docs: add docs on how to allow public github signups ( #5168 )
2022-11-25 20:03:07 +02:00
Cian Johnston and Mathias Fredriksson
a4a319a76e
feat: add CODER_OIDC_IGNORE_EMAIL_VERIFIED config knob ( #5165 )
...
* Adds a configuration knob CODER_OIDC_IGNORE_EMAIL_VERIFIED that allows
ignoring the email_verified OIDC claim
* Adds warning message at startup if CODER_OIDC_IGNORE_EMAIL_VERIFIED=true
* Adds warning whenever an unverified OIDC email is let through
* Skips flaky test on non-linux platforms
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
2022-11-25 10:10:09 +00:00
Mathias Fredriksson
6ed12ade54
fix: Improve debuggability of ptytest cleanup ( #5170 )
...
There are sporadic flakes in some tests on Windows related to the use of
`ptytest`. Since it's not clear why they fail, this commit adds some
more logging and timeouts to the cleanup methods.
2022-11-24 15:20:17 +00:00
Marcin Tojek
25da224513
Filter query: has-agent connecting, connected, disconnected, timeout ( #5145 )
...
* WIP
* has-agent:connecting, connected
* Fix
* Fix
* has-agent:disconnected, timeout
* Fix: typo
* Fix
* TODOs
* databasefake
* Fix: typo
* More TODOs
* databasefake
* Timeout tests
* Address PR comments
* Implement FIXMEs
* Renamings
* Address PR comments
* Fix: readability
* Fix: refactor CASE logic
* CASE logic
* Fix
* Use CTE
* Polishing
* Comment
* WIP
* IS NOT NULL
* Without CTE
* One more optimization
* 2nd optimization
2022-11-24 15:33:13 +01:00
Bruno Quaresma
511bb469c4
feat: Change workspace version using the UI ( #5158 )
2022-11-24 13:36:50 +00:00
Mathias Fredriksson
eff99f78fa
feat: Add support for MOTD file in coder agents ( #5147 )
2022-11-24 12:22:20 +00:00
Mathias Fredriksson
8ff89c4288
fix: Fix flakeyness of TestProvisionerd/ReconnectAndComplete ( #5169 )
2022-11-24 14:09:56 +02:00
Presley Pizzo
913e461f79
Don't override 0 ttl with template default ( #5151 )
2022-11-23 10:30:38 -05:00
Bruno Quaresma
59355431d0
refactor: Refactor login page ( #5148 )
2022-11-23 14:53:42 +00:00
Presley Pizzo
71bc48dda4
feat: tweak timeline design ( #5144 )
...
* Tweak timeline design
* Extract timeline style into component
2022-11-22 17:30:43 -05:00
Kira Pilot and Colin Adler
6786ca2854
Audit build outcomes/kira pilot ( #5143 )
...
* auditing failed builds
* logging workspace build successes
* remove duplicate workspace build entry
* fixed workspacebuilds_test
* PR feedback
* lint and migrations
* fix nil auditors
* workspace_build test
* fixed workspaces_teest
Co-authored-by: Colin Adler <colin1adler@gmail.com >
2022-11-22 13:22:56 -05:00
Colin Adler
1f20cab110
fix: don't use yamux for in-memory provisioner{,d} streams ( #5136 )
2022-11-22 12:19:32 -06:00
Mathias Fredriksson
2b6c229e4e
fix: Trigger workspace event after agent timeout seconds ( #5141 )
...
Fixes #5116
v0.12.9
2022-11-22 11:01:28 +00:00
Marcin Tojek and Presley Pizzo
e94b27bce4
fix: Adjust description for cancel in-progress workspace jobs ( #5142 )
...
* fix: Adjust description for cancel in-progress workspace jobs
* Update site/src/i18n/en/templatePage.json
Co-authored-by: Presley Pizzo <1290996+presleyp@users.noreply.github.com >
Co-authored-by: Presley Pizzo <1290996+presleyp@users.noreply.github.com >
2022-11-21 17:00:18 +00:00
Presley Pizzo
67941b4f80
chore: refactor audit page to use window function for count ( #5133 )
...
* Move count query to window function
* Unpack count and update types
* Remove count endpoint
* Update tests, wip
* Fix tests
* Update frontend, wip
* Remove space
* Fix frontend test
* Don't hang on error
* Handle no results
* Don't omit count
* Fix frontend tests
2022-11-21 11:30:41 -05:00
Bruno Quaresma
7a369e0a30
refactor: Minor build bar UI improvement ( #5132 )
2022-11-21 10:04:24 -05:00
Marcin Tojek
e86539db11
feat: Allow user to cancel workspace jobs ( #5115 )
...
* Add database column allow_user_cancel_workspace_jobs
* Adjust API
* site: typesGenerated.ts
* Expose template.allow_ in Workspaces API
* Fix: site tests
* Fix: make fmt/prettier
* Fix: enterprise
* Database tests
* Add CLI tests
* Add checkbox
* i18n
* Logic: block cancelling
* Unit tests for conditional cancel
* Fix: message
* Address PR comment
* Address PR comments
* Fix: make
2022-11-21 11:43:53 +01:00
Bruno Quaresma
5fa3fdeca0
refactor: Improve empty views ( #5134 )
2022-11-19 01:46:11 +00:00
Bruno Quaresma
a477d901d6
refactor: Fix up to date color ( #5131 )
2022-11-19 01:18:40 +00:00
Colin Adler
ae38bbeab6
chore: refactor agent stats streaming ( #5112 )
2022-11-18 16:46:53 -06:00
Bruno Quaresma
13a4cfa670
chore: Remove unused test files and code ( #5130 )
2022-11-18 18:03:15 +00:00
Presley Pizzo
4c24adb471
Fix filter bug ( #5124 )
2022-11-18 09:53:16 -05:00
Bruno Quaresma
5866ca48a9
refactor: Reemove mono font from empty title ( #5125 )
2022-11-18 10:09:13 -03:00
Ben Potter
edad2d01da
chore: fix typo in cvm docs ( #5120 )
2022-11-18 06:01:01 +00:00
Dean Sheather
69e8c9e7b4
feat: add reconnectingpty loadtest ( #5083 )
2022-11-17 16:57:15 +00:00
Ammar Bandukwala
acf34d4295
site: support high build time variation in progress bar ( #4941 )
2022-11-17 16:56:56 +00:00
Kyle Carberry
60cec022eb
fix: Parse boolean in slice for gitauth ( #5113 )
...
This was causing a panic for the new `no_refesh` option!
2022-11-17 07:52:11 -06:00
Ben Potter
8e468c49cb
chore: default to generic troubleshooting link ( #5007 )
2022-11-17 11:10:49 +00:00
Kyle Carberry
fb9ca7b830
feat: Add the option to generate a trial license during setup ( #5110 )
...
This allows users to generate a 30 day free license during setup to
test out Enterprise features.
v0.12.8
2022-11-16 17:09:49 -06:00
Kyle Carberry
b6703b11c6
feat: Add external provisioner daemons ( #4935 )
...
* Start to port over provisioner daemons PR
* Move to Enterprise
* Begin adding tests for external registration
* Move provisioner daemons query to enterprise
* Move around provisioner daemons schema
* Add tags to provisioner daemons
* make gen
* Add user local provisioner daemons
* Add provisioner daemons
* Add feature for external daemons
* Add command to start a provisioner daemon
* Add provisioner tags to template push and create
* Rename migration files
* Fix tests
* Fix entitlements test
* PR comments
* Update migration
* Fix FE types
2022-11-16 16:34:06 -06:00
Colin Adler
66d20cabac
fix: index GetWorkspaceAgentsByResourceIDs query ( #5021 )
2022-11-16 14:40:57 -06:00
Colin Adler
e7f1192614
fix: add index for GetProvisionerLogsByIDBetween ( #5020 )
2022-11-16 14:32:29 -06:00
Ammar Bandukwala
da758ba712
site: fix quota_allowance == 0 bug ( #5108 )
2022-11-16 18:20:07 +00:00
Steven Masley
894953db3d
fix: Workspace ls show only me by default ( #5107 )
2022-11-16 17:58:50 +00:00
Steven Masley
015a6f9e26
fix: RBAC should default deny missing variables. ( #5105 )
...
* fix: RBAC should default deny missing variables.
The default behavior was to use 'true' for missing variables. This
was an incorrect assumption. If the variable is missing, the new
default is to deny (fail secure).
* Assert 1 workspace is returned for the owners
2022-11-16 11:01:09 -06:00