You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## This PR
Removes deprecated `bearerToken` option from all references in code and
in documentation. It also updates some tests, to use authHeader with
`Bearer` type instead.
### Related Issues
Fixes#1687
### Notes
This may be breaking change, as it removes field from Sync struct. I
updated all local tests and resources, but let me know if there are any
other resources that are maintained by flagd community, that might
create Sync struct with that field.
Signed-off-by: Marcin Olko <molko@google.com>
Signed-off-by: m-olko <molko@google.com>
| uri | required `string`| Flag configuration source of the sync |
53
-
| provider | required `string`| Provider type - `file`, `fsnotify`, `fileinfo`, `kubernetes`, `http`, `grpc`, `gcs` or `azblob`|
54
-
| authHeader | optional `string`| Used for http sync; set this to include the complete `Authorization` header value for any authentication scheme (e.g., "Bearer token_here", "Basic base64_credentials", etc.). Cannot be used with `bearerToken`|
55
-
| bearerToken | optional `string`| (Deprecated) Used for http sync; token gets appended to `Authorization` header with [bearer schema](https://www.rfc-editor.org/rfc/rfc6750#section-2.1). Cannot be used with `authHeader`|
56
-
| interval | optional `uint32`| Used for http, gcs and azblob syncs; requests will be made at this interval. Defaults to 5 seconds. |
57
-
| tls | optional `boolean`| Enable/Disable secure TLS connectivity. Currently used only by gRPC sync. Default (ex: if unset) is false, which will use an insecure connection |
58
-
| providerID | optional `string`| Value binds to grpc connection's providerID field. gRPC server implementations may use this to identify connecting flagd instance |
59
-
| selector | optional `string`| Value binds to grpc connection's selector field. gRPC server implementations may use this to filter flag configurations |
60
-
| certPath | optional `string`| Used for grpcs sync when TLS certificate is needed. If not provided, system certificates will be used for TLS connection |
61
-
| maxMsgSize | optional `int`| Used for gRPC sync to set max receive message size (in bytes) e.g. 5242880 for 5MB. If not provided, the default is [4MB](https://pkg.go.dev/google.golang.org#grpc#MaxCallRecvMsgSize)|
| uri | required `string`| Flag configuration source of the sync |
53
+
| provider | required `string`| Provider type - `file`, `fsnotify`, `fileinfo`, `kubernetes`, `http`, `grpc`, `gcs` or `azblob`|
54
+
| authHeader | optional `string`| Used for http sync; set this to include the complete `Authorization` header value for any authentication scheme (e.g., "Bearer token_here", "Basic base64_credentials", etc.). |
55
+
| interval | optional `uint32`| Used for http, gcs and azblob syncs; requests will be made at this interval. Defaults to 5 seconds. |
56
+
| tls | optional `boolean`| Enable/Disable secure TLS connectivity. Currently used only by gRPC sync. Default (ex: if unset) is false, which will use an insecure connection |
57
+
| providerID | optional `string`| Value binds to grpc connection's providerID field. gRPC server implementations may use this to identify connecting flagd instance |
58
+
| selector | optional `string`| Value binds to grpc connection's selector field. gRPC server implementations may use this to filter flag configurations |
59
+
| certPath | optional `string`| Used for grpcs sync when TLS certificate is needed. If not provided, system certificates will be used for TLS connection |
60
+
| maxMsgSize | optional `int`| Used for gRPC sync to set max receive message size (in bytes) e.g. 5242880 for 5MB. If not provided, the default is [4MB](https://pkg.go.dev/google.golang.org#grpc#MaxCallRecvMsgSize)|
62
61
63
62
The `uri` field values **do not** follow the [URI patterns](#uri-patterns). The provider type is instead derived
64
63
from the `provider` field. Only exception is the remote provider where `http(s)://` is expected by default. Incorrect
0 commit comments