mirror of
https://github.com/gravitational/teleport
synced 2024-10-18 16:24:03 +00:00
784d7ac10c
* Add functions to clone every gRPC method, so they can be passed over the context bridge * Replace `@grpc/grpc-js` interceptors with `@protobuf-ts/runtime-rpc` ones * Replace string check with check on metadata, add missing `AddMetadataToRetryableError` * Add `pin` to sensitive properties It's needed because now we also log a passwordless login stream call. * Add `cloneClient` method to clone the entire gRPC client * Switch tests to `TshdRetryableError` * Improve comments * Move `cloneClient` and `cloneAbortSignal` to the top of the file * Simplify condition * Lowercase logs * Check if the error is `RpcError` using `instanceof` * Log error object instead of `[object Object]` * Do not export call specific types * Wrap gRPC calls in `createClient` to allow passing the errors over the context bridge (#39230) * Regenerate protos with the `protobuf-ts` client * Enable `strictBindCallApply` so `.bind()` results have correct types (instead of `any`) This is needed for wrapping calls in `createClient`. * Use `protobuf-ts` client instead of `grpc-js` one * Convert `createClient` to use `protobuf-ts` response style, clone each call * Switch callsites to `cloneAbortSignal` * Replace `error.message` checks with a proper check on the error status code * Clone the entire client instead of each method separately * Correct the error `cause` in `ResourceSearchError` * Remove `params.sortBy` defaults, always set `startKey` to string * Use a simpler type for `reportUsageEvent` * Fix interceptor test * Ignore TS error in `highbar.ts`
12 lines
409 B
Plaintext
12 lines
409 B
Plaintext
webassets/* linguist-vendored
|
|
docs/theme/js/* linguist-vendored
|
|
docs/theme/js/theme.js linguist-vendored=false
|
|
|
|
# JS protobuf files, not caught by built-in linguist rules.
|
|
# https://github.com/github/linguist/blob/v7.23.0/lib/linguist/generated.rb#L349-L358
|
|
*_pb.js linguist-generated
|
|
*_pb.d.ts linguist-generated
|
|
*_pb.ts linguist-generated
|
|
*_pb.grpc-*.ts linguist-generated
|
|
*_pb.client.ts linguist-generated
|