influxdb/bolt
Chris Goller 623224614e feat(kv): random ids without comma, space, backslash for org and bucket
At times snowflake id generation would create org and bucket IDs with
characters that had special meaning for the storage engine.

The storage engine concats the org and bucket bytes together into a
single 128 bit value.  That value is used in the old measurement
section.  Measurement was transformed into the tag, _measurement.

However, certain properties of the older measurement data location
are still required for the org/bucket bytes.  We cannot have
commas, spaces, nor backslashes.

This PR puts a specific ID generator in place during the creation of
orgs and buckets.  The IDs are just random numbers but with each
of the restricted chars incremented by one.  While this changes the
entropy distribution somewhat, it does not matter too much for our
purposes.

... because now org and bucket ids are checked for previous existence
transactionally in the key-value stores.  If the ID does already exist
then we try to generate a new key up to 100 times.
2019-09-08 01:50:05 -05:00
..
authorization.go feat(http): find auths by org 2019-04-14 18:06:19 +08:00
authorization_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
bbolt.go feat(http): add audit log 2019-05-16 10:57:28 -04:00
bbolt_test.go feat(telemetry): add initial telemetry metrics 2019-01-21 13:05:58 -06:00
bucket.go feat(influxdb): bucket created and updated time 2019-05-17 11:49:10 -04:00
bucket_test.go fix(kv): mock system buckets (#14884) 2019-08-30 12:47:06 -07:00
dashboard.go fix(kv): updatedAt should be updated as well 2019-05-18 23:36:48 -04:00
dashboard_test.go feat(http): add audit log 2019-05-16 10:57:28 -04:00
id.go feat(telemetry): add initial telemetry metrics 2019-01-21 13:05:58 -06:00
id_test.go feat(telemetry): add initial telemetry metrics 2019-01-21 13:05:58 -06:00
keyvalue_log.go fix(bolt): use named imports for bbolt (#14841) 2019-08-28 12:30:06 -05:00
keyvalue_log_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
kv.go fix(bolt): use named imports for bbolt (#14841) 2019-08-28 12:30:06 -05:00
kv_test.go add spans to multiple services 2019-03-07 12:12:31 -07:00
label.go feat(http): accept label id for template post 2019-04-11 13:16:39 -04:00
lookup_service.go fix(influxdb): change resource to resource type 2019-01-15 12:57:57 -05:00
lookup_service_test.go fix(influxdb): rename telegraf orgID 2019-06-03 16:20:53 -04:00
metrics.go feat(bolt): add scraper and telegraf metric counters 2019-01-18 18:00:10 -06:00
metrics_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
onboarding.go remove org from bucket 2019-04-22 18:39:05 -04:00
onboarding_test.go feat(influxdb): bucket created and updated time 2019-05-17 11:49:10 -04:00
organization.go fix(influxdb): rename telegraf orgID 2019-06-03 16:20:53 -04:00
organization_test.go feat(kv): random ids without comma, space, backslash for org and bucket 2019-09-08 01:50:05 -05:00
passwords.go Minor text updates for password error and default scraper name (#12448) 2019-03-08 09:12:59 -08:00
passwords_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
scraper.go feat(influxdb): add scraper filter 2019-04-25 11:33:34 -04:00
scraper_test.go feat(influxdb): add scraper filter 2019-04-25 11:33:34 -04:00
secret.go chore(bolt): refactor secrets to influxdb ns 2019-01-22 19:23:23 +01:00
secret_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
session.go feat(influxdb): add authorization for user actions 2019-01-17 16:05:24 -05:00
session_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
source.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
source_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
telegraf.go fix(influxdb): rename telegraf orgID 2019-06-03 16:20:53 -04:00
telegraf_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
user.go feat(http): add audit log 2019-05-16 10:57:28 -04:00
user_resource_mapping.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
user_resource_mapping_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
user_test.go feat(kv): implemented key/value store with end-to-end integration tests 2019-02-19 17:47:19 -06:00
variable.go fixed bolt and inmem tests 2019-06-20 16:25:38 -07:00
variable_test.go set va directly and remove comment 2019-06-20 16:30:25 -07:00