1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# =============================================================================
# HTTP Authentication Example
# =============================================================================
#
# This example demonstrates the various authentication methods supported by
# the http_client source and sink.
#
# Supported Auth Types:
# - basic: Username/Password (standard Basic Auth)
# - bearer: Bearer Token (e.g., JWT)
# - api_key: Custom header key-value pair
# - header: Generic header key-value pair
#
# Usage:
# pipeflow run examples/http_auth.yaml
#
# =============================================================================
pipeline:
sources:
# Example 1: Source with Basic Auth
- id: basic_auth_source
type: http_client
config:
url: "https://httpbin.org/basic-auth/user/pass"
interval: "60s"
auth:
type: basic
username: "user"
password: "pass"
# Example 2: Source with Bearer Token
- id: bearer_auth_source
type: http_client
config:
url: "https://httpbin.org/bearer"
interval: "60s"
auth:
type: bearer
token: "my-secret-token"
transforms:
# Pass-through transform
- id: merge_streams
inputs:
outputs:
sinks:
# Example 3: Sink with API Key
- id: api_key_sink
type: http_client
config:
url: "https://httpbin.org/post"
method: "POST"
auth:
type: api_key
header: "X-API-Key"
key: "demo-api-key-123"
# Example 4: Sink with Custom Header Auth
- id: custom_header_sink
type: http_client
config:
url: "https://httpbin.org/post"
method: "POST"
auth:
type: header
name: "X-Custom-Auth"
value: "custom-auth-value"