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
*Description:* Configures the cloud authentication module for gRPC- and HTTP-based destinations, enabling OAuth2 authentication using the {{ site.product.short_name }} cloud authentication framework.
4
+
5
+
The following authentication methods are available:
6
+
7
+
### azure()
8
+
9
+
The `azure()` option supports the following parameters:
10
+
-`app_id`
11
+
-`app_secret`
12
+
-`monitor`
13
+
-`tenant_id`
14
+
15
+
### gcp()
16
+
17
+
The `gcp()` option supports the following parameters:
18
+
-`service_account`
19
+
-`audience`
20
+
-`key`
21
+
-`scope`
22
+
-`token_validity_duration`
23
+
-`user_managed_service_account`
24
+
-`metadata_url`
25
+
-`name`
26
+
27
+
### oauth2()
28
+
29
+
Configures OAuth2 authentication for gRPC-based and http destinations. Tokens are automatically injected into gRPC metadata and HTTP headers for each request.
30
+
31
+
The `oauth2()` option supports the following parameters:
Copy file name to clipboardExpand all lines: doc/_admin-guide/070_Destinations/045_Google_bigQuery/README.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,11 @@ description: >-
17
17
18
18
To configure {{ site.product.short_name }}, the name of the project, the dataset, the name and schema of the used table are necessary.
19
19
20
-
The authentication is done through Application Default Credentials.
20
+
Authentication can be configured using either Google Application Default Credentials (ADC) or OAuth2 via the `cloud-auth()` framework.
21
+
22
+
By default, the destination uses Google Application Default Credentials (GoogleDefaultCredentials). In production environments, a service account with Workload Identity is recommended.
23
+
24
+
Alternatively, OAuth2 authentication can be configured explicitly using `cloud-auth(oauth2())`, which injects OAuth2 tokens into gRPC requests.
21
25
22
26
The destination uses `GoogleDefaultCredentials` for authentication, which covers everything listed in as ADC. Within a production environment, use a service account and Workload Identity.
23
27
@@ -45,4 +49,32 @@ destination d_bigquery {
45
49
46
50
```
47
51
52
+
### Example: BigQuery destination configuration with OAuth2 authentication
53
+
54
+
```config
55
+
destination d_bigquery_oauth2 {
56
+
bigquery(
57
+
project("test-project")
58
+
dataset("test-dataset")
59
+
table("test-table")
60
+
61
+
cloud-auth(
62
+
oauth2(
63
+
client_id("client-id")
64
+
client_secret("client-secret")
65
+
token_url("https://auth.example.com/token")
66
+
scope("https://www.googleapis.com/auth/bigquery")
67
+
)
68
+
)
69
+
70
+
schema(
71
+
"message" => "${MESSAGE}"
72
+
"app" STRING => "${PROGRAM}"
73
+
"host" STRING => "${HOST}"
74
+
"time" DATETIME => "${ISODATE}"
75
+
)
76
+
);
77
+
}
78
+
```
79
+
48
80
If not specified, the messages are sent with one worker, one message per batch, and without compression.
Copy file name to clipboardExpand all lines: doc/_admin-guide/070_Destinations/125_Loki/README.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,13 @@ description: >-
8
8
For more information on the message format, see Grafna Loki HTTP endpoint.
9
9
---
10
10
11
-
### Example: loki() destination configuration
11
+
## Authentication
12
+
13
+
The `loki()` destination supports OAuth2 authentication using the `cloud-auth()` framework for gRPC-based communication.
14
+
15
+
When configured, OAuth2 access tokens are automatically injected into gRPC requests. This follows the same authentication model used by other cloud-enabled destinations.
16
+
17
+
## Example: loki() destination configuration
12
18
13
19
```config
14
20
loki(
@@ -23,3 +29,28 @@ loki(
23
29
batch-lines(1000)
24
30
);
25
31
```
32
+
33
+
## Example: loki() destination configuration with OAuth2 authentication
0 commit comments