s-christoff
0f424f6f7f
Refactor internal/servers/controller/handlers errors v2 ( #1099 )
2021-04-16 12:06:03 -05:00
Jeff Mitchell
412018fbb4
Update misleading Authenticated bool with new name and explanation. ( #1111 )
2021-04-13 17:55:40 -04:00
dd0f34bc35
Add new OIDC auth method. ( #1090 )
...
Co-authored-by: Todd Knight <T.Alan.Knight@gmail.com >
Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com >
Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com >
2021-04-08 20:54:32 -04:00
s-christoff
5c5b07c04a
Revert "Refactor internal/servers/controller/handlers errors ( #1070 )" ( #1092 )
...
This reverts commit 21ac3cdddd .
2021-04-08 19:20:36 -05:00
s-christoff
21ac3cdddd
Refactor internal/servers/controller/handlers errors ( #1070 )
2021-04-08 17:48:57 -05:00
Jeff Mitchell
3c430678ae
Fix test scope errors ( #1029 )
...
When using a disabled verifier context we were faking scope information. Due to other recent changes, this was now causing test errors. This adjusts that flow to actually query the DB, fixing tests and making them more like real code.
2021-03-25 03:15:43 -04:00
Jeff Mitchell
aa570f4e48
Honor child scope list permissions when recursing ( #1016 )
...
Current behavior is that you need list grant on the parent scope when
recursively listing, and this is sufficient. This is good for
administrative workflows but can be unintuitive for resources that only
exist at a project level. This change allows permissions on the child
scope to also be taken into account, so that you can start a recursive
list from a parent scope without direct list support on that scope but
still get back child scopes for which list access is granted.
This also fixes a bug where visibility of a scope for recursive listing
would be based on whether the user had list resources for roles within
that scope instead of for the resource type in question.
2021-03-24 15:33:04 -04:00
Todd Knight
97b404032b
Add ability to filter List*Requests ( #952 )
2021-02-22 10:09:25 -07:00
Jeff Mitchell
1ce09069a5
Move worker selection above session creation ( #929 )
...
This prevents a session being created when no workers are available to
handle it.
2021-02-12 11:05:33 -05:00
Jeff Mitchell
5266eb3269
Don't error worker filters if a key isn't found, treat it as a non-match ( #900 )
2021-02-10 15:59:31 -05:00
Louis Ruch
06c59e19bd
Add worker filter to create target tests ( #899 )
2021-02-02 11:03:47 -08:00
Jeff Mitchell
6cd97a4a6e
Add support for recursive listing ( #885 )
2021-01-25 19:37:40 -05:00
Jeff Mitchell
717a3b52ee
Add worker tagging ( #862 )
...
This allows workers to have tags assigned to them, which can then be filtered to control which targets they are allowed to serve.
2021-01-21 16:27:20 -05:00
Jeff Mitchell
dcb15cffbd
Add authorized actions output on resources ( #870 )
2021-01-20 10:53:01 -05:00
Jeff Mitchell
27919ab11b
Groundwork for returning authorized actions ( #860 )
...
This returns authorized actions on targets to users when they perform an operation on a target, including listing. It also prevents users from seeing values in listing targets on which they have no permissions.
2021-01-13 14:42:37 -05:00
Michael Gaffney and Jeff Mitchell
94cb79bbdd
See how Boundary would look with gofumpt applied ( #853 )
...
* See how Boundary would look with https://github.com/mvdan/gofumpt applied
Results of running `gofumpt -w -s .`
* Update tools file and Makefile for gofumpt
Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com >
2021-01-07 10:02:32 -05:00
Louis Ruch
bfbb179741
ICU-738/Refactor internal/db to domain errors ( #815 )
...
* Refactor internal/db to domain errors
2020-12-21 10:07:34 -08:00
Jeff Mitchell
d4a6efb363
Pass endpoint to the client ( #811 )
...
This allows us to automatically set TLS parameters, useful for `boundary
connect http` and some other features to come.
2020-12-09 14:45:53 -05:00
Jeff Mitchell
a37ba007f2
Update deps ( #772 )
...
* Update deps
This also updates for the new (and required) paradigm for registering
service implementations as spelled out in
https://github.com/grpc/grpc-go/issues/3385
* Roll back dockertest
2020-11-11 14:41:05 -05:00
Jim
af6ef1b687
Refactor existing sentinel errors ( #774 )
2020-11-05 16:54:03 -05:00
Jeff Mitchell
813d21565f
Allow authorize-session to be invoked with target name ( #737 )
2020-10-22 08:40:00 -04:00
Todd Knight
11fd0d0300
Fixing some API error and comment copy/paste errors. ( #580 )
...
* Fixing some error and comment copy/paste errors.
* Fix roles in project scope error message.
2020-10-08 12:36:01 -07:00
Jeff Mitchell
ae3a9e32cf
Remove proxy command
...
You can now use -authz-token in `boundary connect` which also allows
using the connect subcommands when you already have a token.
2020-10-07 21:30:44 -04:00
Jeff Mitchell
b76cc95425
Make fmt
2020-10-06 13:17:28 -04:00
Jeff Mitchell
9237d6f787
Rename authorize to authorize-session ( #531 )
...
As pointed out by Rob, this makes it clearer what the action actually
is. We were sort of torn on it before, but I've definitely come around
to it.
2020-10-05 11:02:23 -04:00
Todd Knight
f76d5aed9f
Additional validation for add|set|remove methods. ( #527 )
2020-10-02 16:45:32 -07:00
Jeff Mitchell
cf3fa4522d
Swap base58 libraries ( #472 )
...
* Swap base58 libraries
This doesn't reduce binary size but it removes a metric ton of
dependencies.
2020-09-26 14:01:49 -04:00
Todd Knight
14f9fc9173
Removing status from all handlers, repo errors are passed on directly for the most part to be intercepted and translated by the API error handler. ( #447 )
2020-09-25 13:41:20 -07:00
Jeff Mitchell
e86c11db62
Add session lifecycle info to controller's INFO log. ( #431 )
...
This required some plumbing, but nothing major.
2020-09-24 14:12:34 -04:00
Todd Knight
278902db1a
Allow target type field to be included in an update. ( #412 )
2020-09-23 08:30:25 -07:00
Todd Knight
2f8d7f0a32
API Errors: Hide and log internal errors ( #411 )
2020-09-23 08:10:27 -07:00
Jeff Mitchell
6a09e0966e
Fix some broken tests that were expecting nil but are now getting an empty struct
2020-09-21 16:03:47 -04:00
Todd Knight
21f5cc274f
Don't return nil, nil for API service methods. Add tests for updating w/ wrong version. ( #396 )
2020-09-21 15:09:30 -04:00
Jeff Mitchell
5747ea603e
Fix nil pointer with revamped chosen host ID logic
2020-09-21 10:21:40 -04:00
Jeff Mitchell
4669c95999
Pass more session info around, make proxy UX nicer ( #385 )
2020-09-20 21:18:07 -04:00
Jeff Mitchell
697ea561e0
Fix breakage from dual merges
2020-09-20 16:04:05 -04:00
Jeff Mitchell
edffc7863d
Change connection limit to -1 for unlimited so it works with TF ( #383 )
...
* Migrate connection limit unlimited value to -1
* Fix authorization check
2020-09-20 15:53:49 -04:00
Jeff Mitchell
5214f14105
Work on connection authorization ( #381 )
2020-09-20 12:51:08 -04:00
Jeff Mitchell
5bf555cca2
Remove connection idle timeout seconds for now ( #379 )
2020-09-19 14:01:49 -04:00
Jeff Mitchell
0a3f9b8357
Rename connection idle timeout duration -> seconds and sessions max duration -> seconds ( #376 )
2020-09-19 11:32:38 -04:00
Jeff Mitchell and Jim Lambert
62baef1b7e
Add multi connection parameters through targets and into session creation ( #375 )
...
* Update protos and gen
* Add new values to targets CLI command
* Lots more plumbing of new parameters through everything
* allow fields to be set to zero value.
* Disallow set but empty name/description strings in create/update verifiers
Co-authored-by: Jim Lambert <jlambert@hashicorp.com >
2020-09-19 10:31:49 -04:00
Jeff Mitchell
07a7e9750a
Tie together the database-driven session handling with the worker and add relevant CLI comands ( #370 )
2020-09-19 00:18:17 -04:00
Jeff Mitchell
f4ad22b247
Move default port to a TCP target attribute ( #361 )
2020-09-15 15:20:49 -04:00
Jeff Mitchell
eb88d0381a
Fix default port update handling
2020-09-15 02:15:33 -04:00
Jeff Mitchell
f94f21fd97
Update API codes ( #336 )
2020-09-08 23:57:26 -04:00
Todd Knight
1c2c078e0a
Adding Authz checks that support new pathing ( #328 )
2020-09-04 14:48:11 -07:00
Jim
3d944a616f
fix name typo ( #330 )
2020-09-04 17:11:51 -04:00
Todd Knight
544e78b593
Target Handler and SDK CRUDL & add|set|remove-host-sets methods. ( #310 )
2020-09-01 15:05:46 -07:00