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
Copy file name to clipboardExpand all lines: docs/feature_flag_source.md
+48-13Lines changed: 48 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,23 +83,60 @@ sources:
83
83
selector: 'source=database,app=weatherapp' # flag filtering options
84
84
```
85
85
86
-
### Azure Blob Storage
86
+
### Cloud blob storage providers
87
+
88
+
The `azblob`, `gcs`, and `s3` providers use [Go CDK](https://gocloud.dev/howto/blob/)
89
+
to access cloud object storage. Because the underlying SDKs expect their
90
+
native credential env vars (e.g. `AWS_ACCESS_KEY_ID`,
91
+
`GOOGLE_APPLICATION_CREDENTIALS`, `AZURE_STORAGE_ACCOUNT`), the operator
92
+
forwards env vars matching the following prefixes to the flagd sidecar
93
+
**without** applying the configured `envVarPrefix`:
94
+
95
+
| Provider | Passthrough prefix |
96
+
|----------|--------------------|
97
+
| `azblob` | `AZURE_STORAGE_*` |
98
+
| `gcs` | `GOOGLE_*` |
99
+
| `s3` | `AWS_*` |
100
+
101
+
All other env vars are prefixed as usual (e.g. `FLAGD_MY_VAR`).
102
+
103
+
#### Azure Blob Storage
87
104
88
105
Given below is an example configuration with provider type `azblob` and supported options,
89
106
90
107
```yaml
91
108
sources:
92
109
- source: azblob://my-bucket/test.json # my-bucket - container name
93
110
provider: azblob
94
-
envVars:
95
-
- name: AZURE_STORAGE_ACCOUNT
96
-
value: <account_name>
97
-
- name: AZURE_STORAGE_SAS_TOKEN
98
-
value: <SAS token>
111
+
envVars:
112
+
- name: AZURE_STORAGE_ACCOUNT
113
+
value: <account_name>
114
+
- name: AZURE_STORAGE_SAS_TOKEN
115
+
value: <SAS token>
99
116
```
100
-
Other type of credentials for Azure Blob Storage are supported, for details (see [AZ credentials config](https://pkg.go.dev/gocloud.dev/blob/azureblob#hdr-URLs))
101
117
102
-
### Amazon S3
118
+
Other types of credentials for Azure Blob Storage are supported; for details see
0 commit comments