forked from google/adk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
192 lines (155 loc) · 6.72 KB
/
.env.example
File metadata and controls
192 lines (155 loc) · 6.72 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# ADK Confluence Documentation Connector Configuration
# Copy this file to .env and fill in your actual values
# =============================================================================
# CONFLUENCE CONFIGURATION
# =============================================================================
# Confluence instance URL (required)
# Example: https://your-company.atlassian.net
CONFLUENCE_BASE_URL=
# Authentication credentials (required)
# Use your Atlassian email and API token (not password)
# Generate API token at: https://id.atlassian.com/manage-profile/security/api-tokens
CONFLUENCE_USERNAME=
CONFLUENCE_API_TOKEN=
# Default space key for searches (optional)
# If set, searches will default to this space when no space is specified
# Example: SEC, DOCS, POLICY
CONFLUENCE_DEFAULT_SPACE=
# Space access list (optional)
# Comma-separated list of space keys the tool can access
# Leave empty to allow access to all spaces the user has permission for
# Example: SEC,POLICY,GCP,COMPLIANCE
CONFLUENCE_ALLOWED_SPACES=
# =============================================================================
# CACHE CONFIGURATION
# =============================================================================
# Cache database path (optional)
# Relative to project root or absolute path
# Default: backend/cache/confluence_cache.db
CONFLUENCE_CACHE_DB_PATH=backend/cache/confluence_cache.db
# Default cache TTL in hours (optional)
# How long to cache search results and document content
# Default: 24 hours for search results, 4 hours for content
CONFLUENCE_CACHE_TTL_SEARCH=24
CONFLUENCE_CACHE_TTL_CONTENT=4
# Enable cache cleanup on startup (optional)
# Removes expired cache entries when tool initializes
# Default: true
CONFLUENCE_CACHE_CLEANUP_ON_START=true
# =============================================================================
# RATE LIMITING CONFIGURATION
# =============================================================================
# API rate limit (calls per minute)
# Confluence Cloud standard limit is 100 requests per minute
# Set lower for conservative usage or higher if you have premium limits
# Default: 90 (conservative)
CONFLUENCE_RATE_LIMIT=90
# Circuit breaker threshold (optional)
# Number of consecutive failures before circuit breaker opens
# Default: 5
CONFLUENCE_CIRCUIT_BREAKER_THRESHOLD=5
# Circuit breaker timeout in minutes (optional)
# How long to wait before attempting to reset the circuit breaker
# Default: 5
CONFLUENCE_CIRCUIT_BREAKER_TIMEOUT=5
# =============================================================================
# SEARCH CONFIGURATION
# =============================================================================
# Default search limit (optional)
# Maximum number of results to return per search
# Default: 10, Maximum: 50
CONFLUENCE_DEFAULT_SEARCH_LIMIT=10
# Content expansion (optional)
# Whether to include full page content in search results by default
# Warning: Including content increases API usage and response time
# Default: false
CONFLUENCE_INCLUDE_CONTENT_DEFAULT=false
# Search timeout in seconds (optional)
# How long to wait for search API responses
# Default: 30
CONFLUENCE_SEARCH_TIMEOUT=30
# =============================================================================
# AUDIT AND LOGGING CONFIGURATION
# =============================================================================
# Audit logging enabled (optional)
# Whether to log all Confluence operations for audit purposes
# Default: true
CONFLUENCE_AUDIT_ENABLED=true
# Audit log level (optional)
# Logging level for Confluence operations: DEBUG, INFO, WARNING, ERROR
# Default: INFO
CONFLUENCE_LOG_LEVEL=INFO
# Audit log format (optional)
# Log format for audit events: json, text
# Default: json
CONFLUENCE_AUDIT_FORMAT=json
# =============================================================================
# SECURITY CONFIGURATION
# =============================================================================
# SSL verification (optional)
# Whether to verify SSL certificates for Confluence requests
# Should only be disabled for development/testing with self-signed certs
# Default: true
CONFLUENCE_SSL_VERIFY=true
# Request timeout in seconds (optional)
# Overall timeout for HTTP requests to Confluence
# Default: 30
CONFLUENCE_REQUEST_TIMEOUT=30
# User agent for API requests (optional)
# Custom user agent string for identification in Confluence logs
# Default: ADK-Confluence-Tool/1.0
CONFLUENCE_USER_AGENT=ADK-Confluence-Tool/1.0
# =============================================================================
# ADK INTEGRATION CONFIGURATION
# =============================================================================
# Tool name for ADK registration (optional)
# Name used when registering the tool with ADK agent
# Default: confluence_search
ADK_TOOL_NAME=confluence_search
# Tool category for ADK classification (optional)
# Category for organizing tools in ADK framework
# Default: documentation
ADK_TOOL_CATEGORY=documentation
# Enable tool in security agent (optional)
# Whether to automatically register this tool with the security agent
# Default: true
ADK_SECURITY_AGENT_ENABLED=true
# =============================================================================
# DEVELOPMENT CONFIGURATION
# =============================================================================
# Debug mode (optional)
# Enable verbose logging and debug features
# Should be false in production
# Default: false
CONFLUENCE_DEBUG=false
# Mock API responses (optional)
# Use mock responses instead of real API calls for testing
# Should be false in production
# Default: false
CONFLUENCE_USE_MOCK=false
# Test space key (optional)
# Space to use for integration tests
# Should be a dedicated test space
CONFLUENCE_TEST_SPACE=
# =============================================================================
# EXAMPLE CONFIGURATION FOR DEVELOPMENT
# =============================================================================
# Example values for a typical development setup:
# CONFLUENCE_BASE_URL=https://mycompany.atlassian.net
# CONFLUENCE_USERNAME=john.doe@mycompany.com
# CONFLUENCE_API_TOKEN=ATATT3xFfGF0T5zTBkTkN9iE8Fv...
# CONFLUENCE_DEFAULT_SPACE=DEV
# CONFLUENCE_ALLOWED_SPACES=DEV,TEST,DOCS
# CONFLUENCE_DEBUG=true
# =============================================================================
# PRODUCTION CHECKLIST
# =============================================================================
# Before deploying to production, ensure:
# ✅ CONFLUENCE_API_TOKEN is properly secured
# ✅ CONFLUENCE_DEBUG is set to false
# ✅ CONFLUENCE_USE_MOCK is set to false
# ✅ CONFLUENCE_SSL_VERIFY is set to true
# ✅ Appropriate rate limits are configured
# ✅ Audit logging is enabled
# ✅ Cache paths are writable by the application
# ✅ Only necessary spaces are in CONFLUENCE_ALLOWED_SPACES