Colin Adler
4543a3b277
fix: log after test exit in TestAgent/StartupScript ( #1726 )
...
```
$ go test ./agent/ -v -run TestAgent/StartupScript -count 1
=== RUN TestAgent
=== PAUSE TestAgent
=== CONT TestAgent
=== RUN TestAgent/StartupScript
=== PAUSE TestAgent/StartupScript
=== CONT TestAgent/StartupScript
t.go:56: 2022-05-24 20:22:39.648 [INFO] <agent.go:112> connected
--- PASS: TestAgent (0.00s)
--- PASS: TestAgent/StartupScript (0.17s)
PASS
panic: Log in goroutine after TestAgent/StartupScript has completed: 2022-05-24 20:22:39.651 [WARN] <agent.go:130> agent script failed ...
"error": run:
github.com/coder/coder/agent.(*agent).runStartupScript
/home/colin/Projects/coder/coder/agent/agent.go:183
- signal: killed
```
2022-05-24 16:03:42 -05:00
Colin Adler
2a85d3d083
chore: unconditionally run all make cmds in CI ( #1608 )
2022-05-19 17:42:49 -05:00
Colin Adler
98ccd0eb89
feat: add README parsing to template versions ( #1500 )
2022-05-17 15:00:48 -05:00
Colin Adler
e925818526
feat: add template description ( #1489 )
2022-05-16 20:56:11 +00:00
Colin Adler
680de709a5
chore: organize http handlers ( #1486 )
...
They're currently randomly in a bunch of different files. This cleans up
the handler functions to be in the file of the type they return.
2022-05-16 14:36:27 -05:00
Colin Adler
f007aeee1f
chore: standardize migration names in create_migration.sh ( #1480 )
2022-05-16 17:35:00 +00:00
Colin Adler
e990a9ac28
feat: add audit diffing for all user editable types ( #1413 )
2022-05-16 11:20:11 -05:00
Colin Adler
fe7645b8a9
feat: add templates delete command ( #1443 )
2022-05-13 22:54:32 +00:00
Colin Adler
f816bbe801
feat: add codegen for audit.AuditableResources entries ( #1370 )
2022-05-10 21:27:45 +00:00
Colin Adler
97a95f1377
chore: upgrade golangci-lint to v1.46.0 ( #1373 )
2022-05-10 16:04:23 -05:00
Colin Adler
20caee1502
feat: add audit exporting and filtering ( #1314 )
2022-05-09 22:05:01 +00:00
Colin Adler
0ccf0102d7
fix: ensure correct version of sqlc is executed ( #1287 )
...
If `/usr/local/bin` is searched before `$GOPATH/bin` in your `$PATH` the
wrong version of `sqlc` can be executed.
2022-05-04 20:09:13 +00:00
Colin Adler
9d2e788fea
feat: allow verbose logging in coder server ( #1280 )
2022-05-03 16:13:30 -05:00
Colin Adler
0f9e30e54f
fix: use correct enable bool for pprof ( #1279 )
2022-05-03 19:54:10 +00:00
Colin Adler
e530ab2838
chore: add api specific 404 ( #1272 )
...
Prevents weird errors when routes are moved, like
https://github.com/coder/coder/issues/1205
2022-05-03 09:22:08 -05:00
Colin Adler
eda85a0141
fix: force logs to flush on close in peer.(*Conn) ( #1268 )
2022-05-03 08:36:48 -05:00
Colin Adler
9319c39257
fix: additional provisionerd test double closes ( #1267 )
2022-05-03 08:02:54 -05:00
Colin Adler
55ad97bbd7
feat: add pprof and prometheus metrics to coder server ( #1266 )
2022-05-03 12:48:02 +00:00
Colin Adler
81bef1c83e
feat: add audit logging database schema ( #1225 )
2022-05-02 19:30:46 +00:00
Colin Adler
82364d174f
fix: ensure rtc state changes can't log after close ( #1213 )
2022-04-28 16:38:59 -05:00
Colin Adler
1661588bd1
fix: user passwords cleanup ( #1202 )
...
1. Adds benchmarks comparing bcrypt and our pbkdf2 settings
1. Changes the pbkdf2 hash iterations back to 65k. 1024 is insecure
1. Gets rid of the short circuit when the user isn't found, preventing
timing attacks which can reveal which emails exist on a deployment
```
$ go test -bench .
goos: linux
goarch: amd64
pkg: github.com/coder/coder/coderd/userpassword
cpu: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
BenchmarkBcryptMinCost-16 1651 702727 ns/op 5165 B/op 10 allocs/op
BenchmarkPbkdf2MinCost-16 1669 714843 ns/op 804 B/op 10 allocs/op
BenchmarkBcryptDefaultCost-16 27 42676316 ns/op 5246 B/op 10 allocs/op
BenchmarkPbkdf2-16 26 45902236 ns/op 804 B/op 10 allocs/op
PASS
ok github.com/coder/coder/coderd/userpassword 5.036s
```
2022-04-28 18:22:38 +00:00
Colin Adler
a7fb018414
chore: update github.com/golang-migrate/migrate/v4 to v4.5.2 ( #1201 )
...
Should fix the security warning for https://github.com/advisories/GHSA-crp2-qrr5-8pq7
2022-04-27 22:04:51 +00:00
Colin Adler
0c9f27c63b
fix: ensure frontend is built in make install ( #1157 )
2022-04-25 15:24:23 -05:00
Colin Adler
2a57ea757a
feat: add audit package ( #1046 )
2022-04-25 18:57:59 +00:00
Colin Adler
abc13c5a92
fix: use fmt.Fprintln to print workspaces table ( #1122 )
2022-04-25 04:04:34 +00:00
Colin Adler
95a24cb43a
chore: update github.com/fatedier/frp ( #1106 )
...
Fixes https://github.com/advisories/GHSA-xcf7-q56x-78gh
2022-04-22 15:49:43 -05:00
Colin Adler
d6c1c49868
fix: make install references incorrect folders ( #1105 )
2022-04-22 15:41:45 -05:00
Colin Adler
a13cceea3b
chore: run github actions on pull_request instead of push ( #1035 )
2022-04-15 15:55:13 -04:00
Colin Adler
732e0f063a
chore: add dependabot config for terraform examples ( #1014 )
2022-04-14 16:14:49 -04:00
Colin Adler
f803e37505
chore: use workspace name as arg in coder workspaces create ( #1007 )
2022-04-14 17:23:20 +00:00
Colin Adler
fed02cdcdc
chore: replace cloudflare dev tunnel with frp ( #867 )
2022-04-14 11:29:40 -04:00
Colin Adler
b621c59a03
fix: update models.go in generate.go ( #865 )
2022-04-04 19:53:04 +00:00
Colin Adler
e0eae49f52
fix: update querier.go in generate.sh ( #864 )
...
I accidentally forgot to copy this out.
2022-04-04 19:21:48 +00:00
Colin Adler
2a7ab08bab
fix: use golang.org/x/term instead of golang.org/x/crypto/ssh/terminal ( #837 )
...
The latter is deprecated: https://pkg.go.dev/golang.org/x/crypto/ssh/terminal
2022-04-01 21:25:46 +00:00
Colin Adler
fd523100bf
chore: split queries.sql into files by table ( #762 )
2022-04-01 15:45:23 -05:00
Colin Adler
2b1a0ee126
chore: update v1 schema ( #643 )
2022-04-01 14:42:36 -05:00
Colin Adler
dc46ff407b
fix: ensure websocket close messages are truncated to 123 bytes ( #779 )
...
It's possible for websocket close messages to be too long, which cause
them to silently fail without a proper close message. See error below:
```
2022-03-31 17:08:34.862 [INFO] (stdlib) <close_notjs.go:72> "2022/03/31 17:08:34 websocket: failed to marshal close frame: reason string max is 123 but got \"insert provisioner daemon:Cannot encode []database.ProvisionerType into oid 19098 - []database.ProvisionerType must implement Encoder or be converted to a string\" with length 161"
```
2022-04-01 18:17:45 +00:00
Colin Adler
6ab1a681c4
chore: specify google provider versions in example terraform projects ( #740 )
2022-03-30 13:12:11 -05:00
Colin Adler
3abb87ddb6
chore: remove usage of ioutil ( #642 )
...
It was deprecated as of 1.17.
2022-03-29 14:59:32 -05:00
Colin Adler
b33e457f57
chore: use go 1.18 everywhere in ci ( #641 )
...
Somehow I missed these?
2022-03-29 19:10:22 +00:00
Colin Adler
be8389fd74
chore: update to go 1.18 ( #628 )
...
* add make lint to Makefile
2022-03-28 19:14:40 +00:00
Colin Adler
3b29b15290
chore: enable files.insertFinalNewline in vscode ( #518 )
...
Ensures there's always a newline at the end of files. They seem to be
randomly missing, which cause weird diffs.
2022-03-22 00:27:40 -05:00
Colin Adler
01ab48724e
fix: correctly copy binaries in make install ( #517 )
...
Since it copied to a nested directory, it's very confusing if you
already had a `coder` binary in your `~/go/bin`, since it would always
prefer the `coder` in the higher directory.
2022-03-22 01:13:52 +00:00
Colin Adler
706e60bb3b
chore: pluralize table names ( #463 )
2022-03-17 18:10:46 -05:00
Colin Adler
238251b83f
chore: update golang.org/x/crypto ( #447 )
...
See https://groups.google.com/g/golang-dev/c/me_6GQsdvHE/m/QFRpi96JAgAJ
2022-03-15 22:00:33 +00:00