Kelvin Wang
e3acd7f86b
feat(http): add secret service
2020-02-07 15:54:28 -05:00
Johnny Steenbergen
236f52ba62
fix(http): improve error handling and response to api consumer for org service
2020-02-04 09:43:51 -08:00
Johnny Steenbergen
c8aabaf515
chore(http): fixup middleware stack and normalize metrics into same buckets for id fields
2020-01-08 15:05:34 -08:00
Johnny Steenbergen
bf86cce1f1
feat(httpc): extend httpc Client with JSON shorthand methods
...
making most common API calls super easy to get up and running
2019-12-12 07:44:31 -08:00
Johnny Steenbergen
8729cd0959
chore(http): refactor api handler take advantage of route tree instead of switch statement
...
is very much WIP at this point
2019-12-11 09:53:29 -08:00
Johnny Steenbergen
417d25537f
chore(http): refactor org service to use httpc client
2019-12-10 10:49:22 -08:00
Jacob Marble
5f19c6cace
chore: Remove several instances of WithLogger ( #15996 )
...
* chore: Remove several instances of WithLogger
* chore: unexport Logger fields
* chore: unexport some more Logger fields
* chore: go fmt
chore: fix test
chore: s/logger/log
chore: fix test
chore: revert http.Handler.Handler constructor initialization
* refactor: integrate review feedback, fix all test nop loggers
* refactor: capitalize all log messages
* refactor: rename two logger to log
2019-12-04 15:10:23 -08:00
Jakub Bednář
f25fe8c5a2
fix(http): Return an empty array if organization has no secret keys ( #15363 )
...
* fix(http): Return an empty array if organization has no secret keys
* fix(http): Return an empty array if organization has no secret keys instead nil
2019-12-04 13:29:05 -08:00
George
3dbb9c0fd2
feat(tracing): dont trace spans with full request paths as operation name in ExtractFromHTTPRequest ( #15971 )
...
* feat(tracing): dont trace spans with full URL path names in ExtractFromHTTPRequest
* chore(multiple): replace all occurrences of julienschmidt/httprouter with influxdata/httprouter
2019-11-25 15:22:19 +01:00
Deary Hudson III
c04249ec78
fix(http): /api/v2/orgs/:id/owners|members to 404 ( #15504 )
...
ensures that the endpoints:
* /api/v2/orgs/:id/owners
* /api/v2/orgs/:id/members
404 when the organization resource does not exist
2019-10-21 16:37:30 -05:00
Johnny Steenbergen
fc955c5abe
chore(http): remove logging of senstive data
...
after discussion with team, dropping the request logging was decided on.
2019-09-25 09:49:09 -07:00
Jakub Bednář
b6b5befad7
fix(http): The org parameter takes either the ID or Name interchangeably ( #14540 )
2019-08-06 06:20:26 +02:00
Kelvin Wang
f55cf4c8b3
feat(http): add auth debug log
2019-07-15 12:09:59 -04:00
Kelvin Wang
9ecada4dce
feat(http): convert errorEncode to use interface
2019-06-26 21:41:01 -04:00
Chris Goller
14e7daa6e4
fix client tracing propagation from doubly recording ( #14204 )
...
Closes #14203
* chore(vendor): update to opentracing 1.1.0
* fix(http): finish client span
* fix(http): remove extra span injection
2019-06-26 00:48:15 -05:00
Jade McGough
c6a0bf93a7
Merge pull request #13661 from influxdata/no_filter_parameters_provided
...
fix(influxdb): invalid filter error
2019-05-09 15:14:54 -07:00
Christopher M. Wolff
c35c15f54d
refactor(http): move queryd http interface to idpe ( #13862 )
2019-05-09 10:41:14 -07:00
Jade McGough
7855147241
Merge pull request #13636 from influxdata/delete_invalid_org_id
...
fix(http): fix delete bad org id
2019-04-29 10:15:36 -07:00
Kelvin Wang
ea54e2c2c8
fix(kv): fix empty org name
2019-04-26 18:16:28 -04:00
Kelvin Wang
2021321186
fix(influxdb): invalid filter error
2019-04-26 12:22:42 -04:00
Kelvin Wang
9fa35961fd
fix(http): fix delete bad org id
2019-04-25 15:20:28 -04:00
Jade McGough
7bcff2e973
fix(http): remove newPatchLabelHandler, it should not exist
...
This was removed in the labels 2.0 rewrite, and looks like it was added back as a regression
2019-03-27 14:31:04 -07:00
Kelvin Wang
757ea24779
fix(http): fix org secrets delete
2019-03-19 15:03:30 -04:00
Kelvin Wang
44f5adeae7
fix(http): change secrets to match swagger
2019-03-13 11:06:36 -04:00
Chris Goller
83c43e7173
fix(http): log endpoint should be logs
2019-03-11 12:45:25 -05:00
Chris Goller
2011ef7252
Merge pull request #12177 from zhulongcheng/rm-owner-schema
...
docs(http): add members/owners links
2019-03-10 22:39:53 -05:00
Jacob Marble
603a1f26e0
use tracing.StartSpanFromContext
2019-03-07 12:12:31 -07:00
Jacob Marble
9541e861a3
goimports -w -local github.com/influxdata/influxdb
2019-03-07 12:12:31 -07:00
Jacob Marble
92fa813c45
add spans to multiple services
2019-03-07 12:12:31 -07:00
zhulongcheng
111ed7767d
docs(http): add members/owners links
2019-03-07 10:56:36 +08:00
zhulongcheng
ad1bab1a3c
fix(http): return an empty list of operation logs if not found
2019-02-22 14:18:13 +08:00
Chris Goller
1ec7b69d85
fix(kv): error org search if neither name nor id is set
2019-02-21 11:18:08 -08:00
Michael Desa
23f6c4b3fe
fix(http): pass resource type through to label handlers
...
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2019-02-07 19:08:56 -05:00
Michael Desa
5a6a6a94ef
fix(http): rename platform to influxdb in package
...
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2019-02-07 19:08:41 -05:00
zhulongcheng
2d48b85f0a
feat(http): construct label handler by LabelBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
be37e07bea
feat(http): construct member handler by MemberBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
ef308ab9bd
feat(http): construct org handler by OrgBackend
2019-02-06 19:18:23 +01:00
zhulongcheng
e024b13a2e
fix(http): rename desc to descending
2019-02-02 15:11:06 +08:00
Kelvin Wang
875162abd3
update(http): remove check error true
2019-01-25 10:29:27 -08:00
Kelvin Wang
79ce30691e
update(http): remove kerrors, change the default to be influxdb error
2019-01-25 10:29:26 -08:00
Mark Rushakoff
3e1551334f
fix(http): ensure response body always closed
...
This avoids leaking resources.
Found by manually inspecting results of `git grep -A5 -F '= hc.Do'`.
2019-01-18 14:55:48 -08:00
Jade McGough
8a1d7ba1ba
Labels v2 ( #11198 )
...
* WIP first-class endpoint for labels
* WIP
* WIP
* add all the boilerplate
* fix boltdb
* fix http label test
* fix test
* WIP
* fix test failures
* reenable all tests
* add failing test for label mappings
* add label mapping bolt bucket
* implement resource -> label mapping fn
* add inmem label mapping
* delete label mappings
* remove unused stuff
* add missing functions
* add POST endpoint for labels
* add GET route for label
* delete label endpoint
* add label patch endpoint
* remove commented code
* add label service to api handler
* update comment
* add FindLabelByID test
* use platform.Error
* change path name
* formatting
* remove label patch from swagger
* avoid potential orphaned mapping bug
* guard against creating label mappings from nonexistent labels
* update swagger
* update swagger
* update swagger
* fix swagger indentation
* update swagger
2019-01-18 11:03:36 -08:00
Michael Desa
f66774a766
fix(http): use wrapped org/bucket services only when required
...
return reasonable error message for http errors on write
2019-01-16 19:03:08 -05:00
Michael Desa
c60031a6b7
fix(influxdb): change resource to resource type
2019-01-15 12:57:57 -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
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
Michael Desa
4c60eacb58
chore(platform): cleanup, document, and use secret service
...
fix(http): add members/secrets/labels links on org response
fix(http:cmd/influxd): use secret service in api backend
fix(bolt): return empty list if there are no secrets for an org
chore(vault): add description of vault usage
2018-12-28 11:11:21 -05:00
Michael Desa
158be4b599
Merge pull request #1993 from zhulongcheng/fix-user-service
...
fix(http): pass user service to handler New function
2018-12-21 09:37:42 -05:00
Michael Desa
32bd37de9a
fix(http): remove second potention call to w.WriteHeader
...
Multiple calls to w.WriteHeader were possible if there was an error that
was encountered while encoding the response. To resolve this, we simply
log any error that is encountered instead.
2018-12-20 11:11:09 -05:00
Jade McGough
786af8154e
add patch label endpoints
2018-12-18 01:45:49 -08:00