teleport/lib/backend
Trent Clarke 3149d0b953 Enforce valid UTF8 keys on all backends.
The use of non-UTF8 keys with the DynamoDB back-end causes a failure
deep within the AWS request deserialization code, presenting a
non-obvious failure to the user.

This change adds validation to all backends that requires all keys
are valid UTF8 strings. It also adds a warning to the Backend
interface declaration that the keys may be constrained to valid
UTF8.

Other changes include:
 * Updating the `Backend` conformance test suite to not present binary
   keys to the various backend implementations.
 * Adding a `region` value to the DynamoDB configuration test input
 * Adding missing imports to `_test` files.
 * Updating build instructions in README
2021-03-19 17:14:05 -07:00
..
dynamo Enforce valid UTF8 keys on all backends. 2021-03-19 17:14:05 -07:00
etcdbk Include CA cert file path in the error message 2021-03-02 13:20:43 -08:00
firestore Move all utils.InitLoggerForTests calls to TestMain 2021-02-23 18:04:55 -08:00
lite Move all utils.InitLoggerForTests calls to TestMain 2021-02-23 18:04:55 -08:00
memory Move all utils.InitLoggerForTests calls to TestMain 2021-02-23 18:04:55 -08:00
test Enforce valid UTF8 keys on all backends. 2021-03-19 17:14:05 -07:00
backend.go Enforce valid UTF8 keys on all backends. 2021-03-19 17:14:05 -07:00
backend_test.go Implemented backend.NewFunc() for the FS backend 2017-01-15 16:28:18 -08:00
buffer.go errcheck: fix findings in lib/backend, lib/client 2020-06-01 20:16:16 +00:00
buffer_test.go Fix memory leak. 2019-08-02 12:27:14 -07:00
defaults.go Use in-memory cache for the auth server API. 2019-04-12 14:23:09 -07:00
doc.go Implemented backend.NewFunc() for the FS backend 2017-01-15 16:28:18 -08:00
helpers.go Events and GRPC API 2018-12-10 17:20:24 -08:00
report.go Add obfuscation to diagnostic metrics 2021-03-01 22:14:10 +01:00
report_test.go Add obfuscation to diagnostic metrics 2021-03-01 22:14:10 +01:00
sanitize.go Enforce valid UTF8 keys on all backends. 2021-03-19 17:14:05 -07:00
sanitize_test.go Enforce valid UTF8 keys on all backends. 2021-03-19 17:14:05 -07:00
wrap.go Add a Migrate method to backend.Backend 2020-07-02 23:24:49 +00:00