Commit Graph

101 Commits (6096ee2ad4fb0b8de308e23fe7fe0bd0a363de63)

Author SHA1 Message Date
Daniel Moran 58139c47b2
feat: add auth to remotes & replications APIs (#22744) 2021-10-26 11:32:35 -04:00
Daniel Moran a6d4dc250c
feat: list-bucket API supports pagination when filtering by org (#22674) 2021-10-14 15:09:28 -07:00
Sam Arnold 5015297d40
fix: more expressive errors (#22448)
* fix: more expressive errors

Closes #22446

* fix: server only logging for untyped errors

* chore: fix formatting
2021-09-13 15:12:35 -04:00
Daniel Moran 12c8fd28d2
feat: implement metadata management for replications (#22302) 2021-09-01 12:01:41 -04:00
Daniel Moran 01355a068c
refactor: move helper functions for setting up test stores into testing package (#22347)
* Move tenant.Service unit tests into its package
* Delete the top-level TenantService interface now that it's not used.
* Move helper funcs for setting up test stores into testing pkg
* Delete duplicate implementations scattered through the codebase
* Move error assertions into store-creation helpers
2021-08-31 16:43:45 -04:00
Daniel Moran ba8f91f1d9
fix: improve error message when onboarding requests are missing data (#21849) 2021-07-14 15:52:19 -04:00
Daniel Moran ab589cc326
chore: delete deprecated PostSetupUser API (#21709) 2021-06-22 09:09:52 -04:00
William Baker 8ee59f4bf4
feat(annotations): authorization service (#21665)
* feat(annotations): added authz service for annotations and streams

* fix: tests and adjustments

* chore: misc cleanup

* chore: update number in authz comment

Co-authored-by: Daniel Moran <danxmoran@gmail.com>

* chore: update number in authz comment

Co-authored-by: Daniel Moran <danxmoran@gmail.com>

* chore: update number in authz comment

Co-authored-by: Daniel Moran <danxmoran@gmail.com>

* fix: address review comments

* feat: added post-list filter for fine-grained auth

Co-authored-by: Daniel Moran <danxmoran@gmail.com>
2021-06-11 17:39:51 -04:00
William Baker 40897b9a98
feat(notebooks): authorization for notebooks (#21490)
* feat(notebooks): auth changes to top-level authz

* feat(notebooks): added authorization

* chore(notebooks): added tests for authz
2021-05-17 19:01:27 -04:00
Jakub Bednář 4becb6d01a
feat(users): list users via the API now supports `offset`, `limit` or `after` parameter (#21367) 2021-05-12 14:09:52 +02:00
Daniel Moran d448b54e73
fix: send empty array of retention rules when no parameters are set (#21179) 2021-04-09 16:54:08 -04:00
Daniel Moran 00afd95cb7
refactor: automated move of errors and id from root to kit (#21101)
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-03-30 14:10:02 -04:00
Daniel Moran ba4099ddb9
feat(cmd/influx): allow setting shard-group durations for buckets via API and CLI (#20911)
Co-authored-by: Alexander Savinykh <asavinykh@nbrx.de>
2021-03-11 14:51:03 -05:00
Daniel Moran d4a0c34c39
fix(onboarding): deprecate misleading `retentionPeriodHrs` key (#20798) 2021-03-01 09:55:39 -05:00
Sam Arnold 781fa0e846 chore: add goimports 2021-01-29 14:06:52 -05:00
Daniel Moran b5bbc503a0
fix(onboarding): don't ignore failures to set initial password (#20317) 2020-12-16 06:43:43 -08:00
George MacRorie 16d916a952 refactor(kv): delete deprecated kv service code
This includes removal of a lot of kv.Service responsibilities. However,
it does not finish the re-wiring. It removes documents, telegrafs,
notification rules + endpoints, checks, orgs, users, buckets, passwords,
urms, labels and authorizations. There are some oustanding pieces that
are needed to get kv service compiling (dashboard service urm
dependency). Then all the call sites for kv service need updating and
the new implementations of telegraf and notification rules + endpoints
needed installing (along with any necessary migrations).
2020-11-16 12:41:26 +00:00
Daniel Moran 15b9531273
fix: correct various typos (#19987)
Co-authored-by: kumakichi <xyesan@gmail.com>
2020-11-11 13:54:21 -05:00
George 8ca2989717 feat(dashboards): isolate service in own package (#19852)
feat(dashboard): add owner ID to dashboard model

This adds the explicit OwnerID field to Dashboard and also adds a
migration which populates dashboard owners IDs based on dashboard owner
URMs.

feat(dashboards): isolate service in own package

This change isolates the dashboards service into its own package. It
also updates the API to no longer interface with user resource mappings.
Instead it defines new handlers which rely on the newly populated owner
ID field.

chore(dashboards): port tests from http package into new service transport package

chore(launcher): use dashboard transport package client in launcher tests

chore(kv): remove now defunkt dashboard service implementations
2020-11-04 15:53:02 +00:00
George MacRorie b274e15eac fix(telegraf): support pagination parameters when listing 2020-11-04 15:53:02 +00:00
Dan Moran d3dd440c5f test: fix expected RP in existing test. 2020-11-03 12:37:50 -05:00
Dan Moran 64ef556c2b fix(onboard): remove extra multiplication of RP to avoid overflow
Fixes #19884.
2020-11-03 12:37:50 -05:00
Lyon Hill c523fd22f7
chore: clean old feature flags (#19692) 2020-10-06 13:43:32 -06:00
Yoofi Quansah 2099b64578 chore: total removal of references to hardcoded IDs 2020-09-11 12:29:00 -07:00
Yoofi Quansah 48f72e0dfd chore: remove hardcoded constants for ids 2020-09-10 12:35:25 -07:00
Lyon Hill d965225136
fix: Add me permission to onboarded auth token (#19501)
When a new user is onboarded the new auth token can now have access to
create auth tokens
2020-09-10 11:59:11 -06:00
Stuart Carnie f9b058772b
Merge remote-tracking branch 'origin/master' into sgc/tsm1 2020-09-02 11:11:28 -07:00
Lyon Hill 46d4f7d7bb
chore(tenant): point tests to new tenant service (#19477)
Now that the tenant service is complete we should be using it for all
test instead of the kv.Service.
2020-09-02 11:50:26 -06:00
Lyon Hill d2b645c595
fix(onboard): onboarding no longer add admin user (#19478)
The admin user should no longer be added to the new user created by
setup.
2020-09-02 10:15:57 -06:00
Stuart Carnie d20440a09f
fix: go fmt to satisfy go linter 2020-08-26 10:28:35 -07:00
Stuart Carnie fccaf74954
fix(tenant): Fix FindBuckets to no longer returns hard-coded buckets
Closes #19189
2020-08-25 14:50:15 -07:00
Stuart Carnie 0e0b2a3d87
Merge remote-tracking branch 'origin/master' into sgc/tsm1 2020-08-25 09:03:07 -07:00
George 45a3f2e87c
feat(paging): add support for after id parameter in find options (#19219)
* feat(paging): add support for after id parameter in find options

* chore(http): update swagger to reflect after query parameter in list buckets

* chore(changelog): update changelog to reflect after query parameter in list buckets

* chore(tenant): update tenant storage tests for paginating with after
2020-08-25 14:59:59 +01:00
Stuart Carnie ca77c4f4b7
Merge remote-tracking branch 'origin/master' into sgc/tsm1 2020-08-21 13:06:45 -07:00
KevinSmile 887f88bd5a fix(api/orgs): (API-design-issue) FindOptions for orgs 2020-08-20 16:55:30 -06:00
Stuart Carnie b3734695c5
Merge remote-tracking branch 'origin/master' into sgc/tsm1 2020-08-14 12:37:41 -07:00
Lyon Hill eccdabf3ea
fix: restrict urm listing of a resource to members of org owning said resource (#19251)
* fix: restrict urm listing of a resource to members of org owning said resource

* chore: add testing around new urm behavior

* fix: add feature flagging

* fix: ensure we are returning the correct error

Co-authored-by: greg linton <greg@influxdata.com>
2020-08-14 12:34:07 -04:00
Stuart Carnie 56e27b8893
Merge remote-tracking branch 'origin/master' into sgc/tsm1
# Conflicts:
#	go.mod
#	go.sum
#	query/promql/internal/promqltests/go.mod
2020-08-12 09:07:30 -07:00
George 5c9d6baf5d
revert(urm): Sanitize urm response output (#19242) (#19296)
This reverts commit 6d61c3cd73.
2020-08-12 15:08:49 +01:00
Stuart Carnie 057285e23a
Merge remote-tracking branch 'origin/master' into sgc/tsm1
# Conflicts:
#	query/logging.go
#	query/logging_test.go
#	query/stdlib/influxdata/influxdb/rules.go
#	query/stdlib/influxdata/influxdb/rules_test.go
#	query/stdlib/testing/testing.go
#	storage/flux/reader.go
#	storage/flux/table.gen.go
#	storage/flux/table.gen.go.tmpl
#	storage/flux/table.go
#	storage/flux/table_test.go
2020-08-11 10:25:01 -07:00
George 5cbe74630e
chore(tenant): make tenant and kv both conform with harness (#19266) 2020-08-11 15:56:42 +01:00
Lyon Hill 6d61c3cd73
fix(urm): Sanitize urm response output (#19242)
We would like to clean and sanitize the data being return from the urm
response to exclude user names as well as oauthID's
2020-08-10 15:33:29 -06:00
Alirie Gray dd85de0e78
fix: add quotation marks to bucket name validation (#19222) 2020-08-05 13:30:45 -07:00
Lyon Hill 1891479780
feat(onboard): allow optional password (#19225)
* feat(onboard): allow optional password

We can now allow passwords as an optional arguement. This facilitates
api only users.
2020-08-05 12:42:17 -06:00
Alirie Gray e82f2d9e0c
feat: add urm client to tenant package (#19198) 2020-08-05 08:46:26 -07:00
Stuart Carnie 49067de49f
fix(launcher): Fix launcher tests 2020-08-03 15:17:37 -07:00
Lyon Hill 0a9e8fdb4a
chore: update task tests to use the tenant service (#19169)
* chore: update task tests to use the tenant service

After the introduction of the tenant system we need to switch the testing frameworks
to use it instead of the old kv system

* chore: update onboarding to allow injected middleware
2020-08-03 09:33:46 -06:00
Lyon Hill a0d7f9c41b
feat(tenant): Allow tenant to be composable and still maintain access across services (#19164)
Tenant services often need to make function calls to other services inside the tenant system. This can cause a problem when a external system needs to inject middleware into the call stack for the secondary system call. For instance when a bucket is created we may need to alert the storage system of the change. To accomplish this we need a way for the org svc to call a middleware influxdb.BucketService that is a tenant type service wrapped with a middleware piece. This is accomplished by allowing the individual services access to the tenant system that was generated. If a middleware is wrapping one of the systems the embedded system can still make internal calls
2020-07-30 15:55:25 -06:00
Alirie Gray d1b8e98798
refactor: remove nested orgs labels route (#19104) 2020-07-30 10:53:14 -07:00
George 47b7226e3c
fix(tenant): use rand org bucket id generator over snowflake in tenant service (#19021)
* fix(tenant): use rand org bucket id generator over snowflake in tenant service

* fix(tenant): update bucket test harness to create org via store instead of service
2020-07-24 11:35:41 +01:00