Storage Configuration
Understanding Qtap Storage Components
Qtap captures two distinct types of data, each with different storage requirements:
Events (Connection Metadata): Anonymized information about connections, including timestamps, endpoints, and performance metrics
Objects (Payload Content): Actual request and response data including headers and bodies, which may contain sensitive information
Each type has its own dedicated storage configuration in the services
section of your qpoint.yaml
file.
Event Stores
Event stores handle anonymized metadata about network connections. This data is generally not sensitive but is useful for analytics, troubleshooting, and monitoring.
Available Event Store Types
Console Output (stdout)
The simplest option for development and debugging:
This configuration sends all event data to the console where Qtap is running, making it immediately visible but not persistent.
Pulse Service (For Advanced Users)
For self-hosted environments with a Pulse instance:
This connects to a Pulse service for advanced analytics and visualization.
Object Stores
Object stores contain the actual content of requests and responses, which often includes sensitive information. This data requires more careful handling and secure storage.
Console Output (stdout)
For development and debugging:
Sends all object data to the console.
S3-Compatible Storage
For secure, persistent storage:
This configuration:
Stores objects in an S3-compatible storage service
Uses HTTPS for secure transmission (
insecure: false
)Retrieves credentials from environment variables
Provides a template URL for accessing stored objects
S3 Configuration Parameters
endpoint
S3 server hostname and port
minio.example.com:9000
bucket
S3 bucket name
qpoint-objects
region
S3 region name
us-east-1
access_url
URL template for object access
https://storage.example.com/{{BUCKET}}/{{DIGEST}}
insecure
Allow HTTP instead of HTTPS
false
(recommended)
access_key
S3 access key configuration
See credential management
secret_key
S3 secret key configuration
See credential management
URL Template Variables
The access_url
parameter supports these template variables:
{{ENDPOINT}}
: The S3 endpoint{{BUCKET}}
: The bucket name{{DIGEST}}
: The unique file identifier
Credential Management
For security, Qtap supports retrieving credentials from environment variables rather than storing them directly in the configuration file.
Environment Variable Configuration
When running Qtap, ensure these environment variables are set:
For Docker:
For Kubernetes, use secrets:
And reference them in your Helm values:
Storage Configuration Examples
MinIO Configuration
AWS S3 Configuration
For AWS S3:
Google Cloud Storage Configuration
For Google Cloud Storage:
Security Best Practices
When configuring storage, especially for production environments:
Use HTTPS: Always set
insecure: false
to enforce encrypted connectionsEnvironment Variables: Never store credentials in the configuration file
Bucket Policies: Restrict access to your storage bucket with appropriate IAM policies
Encryption: Enable server-side encryption for stored objects
Lifecycle Rules: Configure automatic deletion of old data to comply with retention policies
Audit Logging: Enable access logging for your storage service
Complete Storage Configuration Example
This configuration sends connection metadata to the console for easy monitoring while securely storing the actual request and response content in MinIO.
Last updated