Commit Graph

101 Commits (6096ee2ad4fb0b8de308e23fe7fe0bd0a363de63)

Author SHA1 Message Date
George 1b6d9abc00
chore(bolt): add option to skip fsync for test purposes (#19037) 2020-07-24 10:13:05 +01:00
Bucky Schwarz 88cdf43db1 revert: feat(pkger): add Stack resource type to global list
This reverts commit 99eabf8a44.

A backend change was needed to make this work in Cloud envs, that change is blocked.
2020-07-22 12:48:53 -07:00
Johnny Steenbergen 99eabf8a44 feat(pkger): add Stack resource type to global list
now that Stacks have landed, the resource type can now be included for
any all access tokens, not just the token from setup
2020-07-21 11:16:00 -07:00
George c6967ee7b1
fix(tenant): add support for offset to list urms (#18944)
* fix(tenant): add support for offset to list urms

* fix(urm): treat urm limit 0 and unlimited
2020-07-14 19:40:04 +01:00
Lyon Hill a31b651057
feat(task): Add new permission lookup pattern for executor (#18920)
* feat(task): Add new permission lookup pattern for executor

We can now use the user service to populate task owners permissions.
This should improve the task lookup time and decouple the task system
from the URM system. In the future we will have the ability to better isolate
tenant pieces from the rest of the service.

* feat: add feature flagging
2020-07-13 14:47:58 -06:00
Lyon Hill 42f2a7e6b3
fix: urm list actions when filtering by userID needs to respect page limits (#18919)
We will now respect limits when passed in for user resource mapping lookups for all
request types.
2020-07-10 09:48:11 -06:00
George b8f5604613
revert(tasks): Add new permission lookup pattern for executor (#18869) (#18915)
This reverts commit e9e4d794cf.
2020-07-10 11:05:07 +01:00
Lyon Hill e9e4d794cf
feat(task): Add new permission lookup pattern for executor (#18869)
We can now use the user service to populate task owners permissions.
This should improve the task lookup time and decouple the task system
from the URM system. In the future we will have the ability to better isolate
tenant pieces from the rest of the service.
2020-07-09 14:06:46 -06:00
Alirie Gray e02e950ed0
refactor: add new tenant system struct to consolidate services (#18833) 2020-07-06 10:49:51 -07:00
George 96d84b9126
refactor: migrator and introduce Store.(Create|Delete)Bucket (#18570)
* refactor: migrator and introduce Store.(Create|Delete)Bucket

feat: kvmigration internal utility to create / managing kv store migrations

fix: ensure migrations applied in all test cases

* chore: update kv and migration documentation
2020-07-01 12:08:20 +01:00
Lyon Hill 5776350a53
feat: switch to use the new tenant bucket service (#18738) 2020-06-30 14:48:42 -06:00
Johnny Steenbergen 74b1ab2948 chore(metric): refactor the metric pkg to enable extension of vectors and naming convetions 2020-06-16 12:17:45 -07:00
Lyon Hill 009b8ec98f
feat: start using the new org handler from the tenant service. (#18371)
* feat: start using the new org handler from the tenant service.

The rest of the tenant system is in place except the org http api handler and the
user api handler.

* fix: update the label service in org handler and add links
2020-06-16 12:56:31 -06:00
Lyon Hill 97dc4d18db
feat: use the new tenant user handler (#18190)
Switch to use the new user handler. We have been using the tenant backend for some
time now and just need to switch over to using tenant front to back.
2020-05-27 08:48:27 -06:00
Lyon Hill a1f78ec809
fix: dont add system buckets when filtering by name (#18227)
* fix: dont add system buckets when filtering by name
2020-05-26 15:36:01 -06:00
Lyon Hill 083f72a514
fix: when buckets are looked with a org name and bucket name (#18200)
We needed to look up the org id from the org name before we could
check to confirm we were making the correct function call
2020-05-22 09:30:14 -06:00
Alirie Gray 7f4ddabe8a
refactor: add new label package (#18078) 2020-05-21 11:30:19 -07:00
Ben Johnson 97960a5930 feat(http): Client disconnections should return a HTTP 499 error code.
This commit checks http.Request.Context().Err() to see if the context
has been canceled before writing an error code. It uses the non-standard
Nginx 499 error code for client disconnection.
2020-05-14 14:51:57 -06:00
Lyon Hill 57ed471bbe
fix: tenant findBucket action needs to properly route actions (#18069)
Tenant bucket look up needs route a action to storage to use indexes.
I added an error condtion into the storage code to ensure this was working
but the tests did not exercise this piece of code. Both have been remedied.
2020-05-12 16:00:38 -06:00
Alirie Gray 95efdc25df
fix: change logging level to debug to reduce noise (#18054) 2020-05-12 10:16:00 -07:00
Andrew Watkins 5cd872721d
fix: password length (#18041)
* fix: password length

* chore: go mod tidy

* chore: switch err message

* chore: remove backend validation
2020-05-12 10:14:09 -07:00
Lyon Hill bdc882f6ce
feat(session): Build out a new session service (#17950)
This new session service has the ability to work independant of other systems
it relies on having its own store type which should allow us to be more flexible
then using the built in kv system.

I have included an in mem session store.
2020-05-11 15:04:11 -06:00
Alirie Gray 2c0916addf
refactor: create new token package (#17874) 2020-04-30 07:52:21 -07:00
Lyon Hill d720661e77
feat(tenant): change the tenant services default behavior to enabled (#17872)
We have reached the stage wehre the new tenant service is being used and
is stable but we want to get it in more hands and used as the default service.
2020-04-29 14:04:26 -06:00
Yiqun (Ethan) Zhang a7e3679aaf
refactor: rename the store-side WindowAggregateReader interface to WindowAggregateStore (#17880) 2020-04-28 13:44:46 -05:00
Lyon Hill 29918a45df
fix(tenant): Allow tenant to update user and org with same name (#17833)
This will allow us to match the existing behavior that allows for update requests to go through with the same name.
2020-04-23 08:33:03 -06:00
Lyon Hill 50b51e14b3
fix(delete): fix delete handler to add org filter for bucket lookup (#17834) 2020-04-23 08:32:50 -06:00
Lyon Hill 60c3af7929
fix(tenant): include pagination options in middlewares (#17835) 2020-04-22 14:31:56 -06:00
George e150377f48
revert(tenant): integrate the tenant service as the default backend (#17805) (#17832)
This reverts commit 79e9de93cb.
2020-04-22 17:23:17 +01:00
Lyon Hill 79e9de93cb
feat(tenant): integrate the tenant service as the default backend (#17805) 2020-04-21 13:43:56 -06:00
Lyon Hill c02e83038f
fix: org filtering for both kv and tenant need to match behaviors. (#17758) 2020-04-16 12:22:21 -06:00
Johnny Steenbergen e295d508ac fix: make API type marshal before writing to respone writer to avoid duplicate write header calls on failed encoding
this fix is necessary to avoid the superflour write header error. When the
write fails, we log it, this shoudl never happen unless the connection gets
corrupted. In that case there is nothing for the server to do except log
2020-04-15 14:26:25 -07:00
Johnny Steenbergen c718b676ef chore(pkger): refactor pkger data model to separate parsed and stateful datum 2020-04-14 09:28:09 -07:00
Lyon Hill 4728e36e1b
feat(metrics): allow red metrics to be more generic (#17678) 2020-04-08 12:58:36 -06:00
Lyon Hill 33c39796bd
feat(tenant): update the client to use the new onboarding package (#17659) 2020-04-07 13:51:06 -06:00
Alirie Gray 8975fd2365
refactor(tenant): move bucket and urm auth layers to tenant service (#17474)
Co-authored-by: Lyon Hill <lyondhill@gmail.com>
2020-04-07 11:13:27 -07:00
Lyon Hill 4421a39639
feat(tenant): Build out the onboarding system in tenant and integrate it into launcher (#17558)
We are adding in a setup/user route this is not in swagger at the moment but will be
added once we feel it is stable.
2020-04-06 15:58:15 -06:00
Lorenzo Affetti d8f31bf2e4
fix(tenant): make storage pass tenant tests 2020-04-06 17:13:56 +02:00
Jonathan A. Sternberg 0ae8bebd75
refactor: rewrite imports to include the /v2 suffix for version 2 2020-04-03 12:39:20 -05:00
Alirie Gray c4517a609e
refactor(tenant): change info level logs to debug (#17476) 2020-04-01 12:09:29 -07:00
George 173ded1a10
fix(kv): make index walk use cursor instead of get (#17501) 2020-03-31 17:26:21 +01:00
Lyon Hill 5e018ee3e4
fix(tenant): add system buckets for old orgs that may not have buckets. (#17479) 2020-03-27 15:31:35 -06:00
Alirie Gray 8c61d913b4
refactor(tenant): move user auth layer into tenant service (#17473) 2020-03-27 13:10:43 -07:00
Alirie Gray ca1e8a7359
refactor(tenant): move org auth layer to tenant service (#17468) 2020-03-27 11:47:30 -07:00
Lyon Hill 4e38c4e636
feat(tenant): add urm indexing into the tenant service (#17467) 2020-03-27 12:36:25 -06:00
Lyon Hill 1a66ca3900
feat(tenant): Add in api elements to tenant service (#17447)
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>

Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2020-03-27 08:56:22 -06:00
Lorenzo Affetti 1e36e7b3ad
feat(tenant): add duplicate read service 2020-03-25 12:06:28 +01:00
Alirie Gray 82d88d52c4
feat(logging): add logging middleware to tenant service (#17320) 2020-03-17 15:24:57 -07:00
Lyon Hill 609970c0de
feat(tenant): Add in service functions and business logic (#17296)
* feat(tenant): Add in service functions and business logic

Built on top of the crud layer of the system we should now have additional service logic.
The addition of service layer should allow for us to verify similar functionality to the kv system.
2020-03-17 13:23:00 -06:00
Alirie Gray 4d7dd93627
feat(metrics): add metrics middleware to tenant service (#17301) 2020-03-17 10:43:16 -07:00
Lyon Hill 8e4fdceccb
feat(tenant): Build the crud actions for the new tenant service (#17171)
* feat(tenant): Build the crud actions for the new tenant service

To faciliate the isolation of domain specific systems we need to have a
isolated CRUD action system that we can layer business logic on top.

Co-authored-by: George <me@georgemac.com>
2020-03-11 12:31:33 -06:00