Kelvin Wang
79ce30691e
update(http): remove kerrors, change the default to be influxdb error
2019-01-25 10:29:26 -08:00
Chris Goller
49782c3be4
feat(bolt): add metrics for resources stored in boltdb
2019-01-18 17:45:45 -06:00
Michael Desa
c60031a6b7
fix(influxdb): change resource to resource type
2019-01-15 12:57:57 -05:00
Michael Desa
a3541b22d4
feat(http): allow user id to be specified explicitly on authorization
...
test(http): get user off of session in create authz test
fix(http): allow user id to be specified explicitly on authorization
create authorization now allows specifying user id explicitly. If no
user id is specified then we use the user id from the authorizer.
fix(http): use influxdb import
fix(http): use platform error in http auth tests
feat(cmd/influx): allow create auth command to specify user explicitly
feat(http): add org id to permissions
2019-01-14 10:20:20 -05:00
Michael Desa
944de4157a
fix(influxdb): add org id to permissions
...
filter out resources that have mission IDs
fix(influxdb): simplify auth check in PermissionAllowed
review(platform): update as noted in review
fix(influxdb): ensure permission has valid org id
2019-01-11 12:23:28 -05:00
Mark Rushakoff
d73d73c0d4
chore: rename imports from platform to influxdb
...
I did this with a dumb editor macro, so some comments changed too.
Also rename root package from platform to influxdb.
In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.
Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
2019-01-09 20:51:47 -08:00
Kelvin Wang
f392f1bab0
fix(bolt): fix auth status update error
2019-01-04 12:21:34 -05:00
Jade McGough
7562c9a6d2
chore(http): make test diffs more readable ( #2203 )
...
* chore(http): make test diffs more readable
* fixes
* add back telegraf output spacing
* whitespace hell
* jsonEqual2 -> jsonEqual
2019-01-03 14:29:22 -08:00
Andrew Watkins
3429e8d0c6
feat(auth): rewrite authorization service ( #2157 )
...
* feat(view-token-overlay): add view token overlay
* test(tokens): update tests
* chore(auths): rename mock data file
* feat(token-view): clicking on description opens token view modal
* feat(token-view): add ability to close overlay
* feat(token-view): display token permissions with updated permissions shape
* feat(token-view): wip update authorization and permission shapes
* feat(auth): wip refactor auth permissions
* fix(auth): generate permissions via functions
* fix(auth): make Id ID
* chore(types): update generated client
* feat(auth): wip add user and org names to auth
* fix(user): didnt save rebase
* feat(auth): WIP refactor auth
* feat(auth): check for user existence during auth creation
* feat(auth): org must exist during auth creation
* fix(auth): pluralize telegrafs resource type
* docs(http): update swagger definition for the Authorization
* test(auth): fix broken tests
* docs(swagger): update cur_swagger Authrorizations
* fix(api): remove trace from cur_swag
* test(ui/token): update components with new generated type definitions
* feat(http): add lookup service adding names for permissions
* fix(http): remove debugging panics
* chore: go tidy
* fix: unsaved rebase
* test(idpe): add ids to Authorizations for log tests
2018-12-28 15:02:19 -08:00
Leonardo Di Donato
b8153e83d1
feat(http): test an authorization for non-existing user cannot be created
2018-12-21 19:23:12 +01:00
zhulongcheng
94d86186c7
fix(http): rename auths to authorizations
2018-12-18 00:12:16 +08:00
Andrew Watkins
3655947bd1
feat(auth): add description string to Authorization
...
* feat(auth): add description key to Authorization
* chore(swagger): update Authorization definition to include description
2018-12-07 14:22:23 -08:00
Kelvin Wang
8d15d70360
fix(http): convert auth errors
2018-11-16 19:30:34 -05:00
Chris Goller
2bea48f15a
refactor(testing): rename MustIDFromString to MustIDBase16
2018-10-11 09:54:19 -05:00
Leonardo Di Donato
d54fdd51e0
wip(http): porting to uint64 IDs
...
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
2018-10-11 09:54:18 -05:00
Lorenzo Fontana
1a2f606533
Convert everything to /api/v2
...
Signed-off-by: Lorenzo Fontana <lo@linux.com>
2018-09-28 14:23:21 +02:00
Lorenzo Fontana
aa8016feca
Convert tests to v2
...
Signed-off-by: Lorenzo Fontana <lo@linux.com>
2018-09-28 14:20:31 +02:00
Chris Goller
31a2ed1fbb
feat(testing): add service testing helpers
2018-09-14 21:08:49 -05:00
Chris Goller
e0b1f89423
chore(http): remove unneeded function
2018-09-14 19:34:00 -05:00
Chris Goller
01950e9942
fix(http): update tests to use context.Background()
2018-09-14 19:24:32 -05:00
Chris Goller
235836f4c4
fix(http): remove org parameter and add client tests
2018-09-14 18:03:38 -05:00
Chris Goller
29a1eb4714
test(http): add client tests for auth and bucket
2018-09-14 13:18:02 -05:00
Michael Desa
6d083fb8e3
feat(http): add links to auth service response structures
2018-09-12 11:44:44 -04:00