af401e3fe1
chore: Linter rule for properly formatted api errors ( #2123 )
...
* chore: Linter rule for properly formatted api errors
* Add omitempty to 'Detail' field
2022-06-07 14:33:06 +00:00
c9a4642a12
chore: Update BE http errors to be ui friendly ( #1994 )
...
* chore: More UI friendly errors
Mainly capitlization + messages prefix error
2022-06-03 21:48:09 +00:00
31b819e83f
chore: Remove interface from coderd and lift API surface ( #1772 )
...
Abstracting coderd into an interface added misdirection because
the interface was never intended to be fulfilled outside of a single
implementation.
This lifts the abstraction, and attaches all handlers to a root struct
named `*coderd.API`.
2022-05-26 03:14:08 +00:00
9f402fa27f
Spike/222 workspace build order ( #1534 )
...
* chore: refactor before_id/after_id to build_number
Signed-off-by: Spike Curtis <spike@coder.com >
* pagination of workspace_builds
Signed-off-by: Spike Curtis <spike@coder.com >
* Disable parallel on postgres tests
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix lint
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix workspace build postgres query
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix JS tests
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix workspace builds postgres query
Signed-off-by: Spike Curtis <spike@coder.com >
2022-05-18 16:33:33 +00:00
98ccd0eb89
feat: add README parsing to template versions ( #1500 )
2022-05-17 15:00:48 -05:00
c8246e3e8a
feat: Add Azure instance identitity authentication ( #1064 )
...
This enables zero-trust authentication for Azure instances. Now
we support the three major clouds: AWS, Azure, and GCP 😎 .
2022-04-19 13:48:13 +00:00
d9d4599ba9
chore: idea: unify http responses further ( #941 )
2022-04-12 10:17:33 -05:00
a502a5fa14
feat: Add AWS instance identity authentication ( #570 )
...
* feat: Add AWS instance identity authentication
This allows zero-trust authentication for all AWS instances.
Prior to this, AWS instances could be used by passing `CODER_TOKEN`
as an environment variable to the startup script. AWS explicitly
states that secrets should not be passed in startup scripts because
it's user-readable.
* Fix sha256 verbosity
* Fix HTTP client being exposed on auth
2022-03-28 19:31:03 +00:00
591523a078
chore: Move httpapi, httpmw, & database into coderd
( #568 )
...
* chore: Move httpmw to /coderd directory
httpmw is specific to coderd and should be scoped under coderd
* chore: Move httpapi to /coderd directory
httpapi is specific to coderd and should be scoped under coderd
* chore: Move database to /coderd directory
database is specific to coderd and should be scoped under coderd
* chore: Update codecov & gitattributes for generated files
* chore: Update Makefile
2022-03-25 16:07:45 -05:00
c451f4e685
feat: Add templates to create working release ( #422 )
...
* Add templates
* Move API structs to codersdk
* Back to green tests!
* It all works, but now with tea! 🧋
* It works!
* Add cancellation to provisionerd
* Tests pass!
* Add deletion of workspaces and projects
* Fix agent lock
* Add clog
* Fix linting errors
* Remove unused CLI tests
* Rename daemon to start
* Fix leaking command
* Fix promptui test
* Update agent connection frequency
* Skip login tests on Windows
* Increase tunnel connect timeout
* Fix templater
* Lower test requirements
* Fix embed
* Disable promptui tests for Windows
* Fix write newline
* Fix PTY write newline
* Fix CloseReader
* Fix compilation on Windows
* Fix linting error
* Remove bubbletea
* Cleanup readwriter
* Use embedded templates instead of serving over API
* Move templates to examples
* Improve workspace create flow
* Fix Windows build
* Fix tests
* Fix linting errors
* Fix untar with extracting max size
* Fix newline char
2022-03-22 13:17:50 -06:00
bf0ae8f573
feat: Refactor API routes to use UUIDs instead of friendly names ( #401 )
...
* Add client for agent
* Cleanup code
* Fix linting error
* Rename routes to be simpler
* Rename workspace history to workspace build
* Refactor HTTP middlewares to use UUIDs
* Cleanup routes
* Compiles!
* Fix files and organizations
* Fix querying
* Fix agent lock
* Cleanup database abstraction
* Add parameters
* Fix linting errors
* Fix log race
* Lock on close wait
* Fix log cleanup
* Fix e2e tests
* Fix upstream version of opencensus-go
* Update coderdtest.go
* Fix coverpkg
* Fix codecov ignore
2022-03-07 11:40:54 -06:00