GUAC Configuration Guide
This document provides an overview of the guac.yaml
configuration file used in GUAC deployments. It describes each configuration option, its default value, and scenarios where you might want to change it.
Database Configuration
Ent config
-
db-driver:
postgres
- Description: The driver used for the database connection.
- When to Change: Modify if you need to switch to a different database driver.
-
db-address:
postgres://guac:guac@postgres:5432/guac?sslmode=disable
- Description: The address for connecting to the PostgreSQL database.
- When to Change: Update if your database address changes or if you need to enable/disable SSL.
-
db-migrate:
true
- Description: Indicates whether database migration is enabled.
- When to Change: Set to
false
if you do not want automatic database migration.
Pub/Sub Configuration
-
pubsub-addr:
nats://localhost:4222
- Description: The address of the NATS server for pub/sub messaging.
- When to Change: Update if your NATS server is hosted elsewhere or uses a different port.
-
publish-to-queue:
true
- Description: Whether to publish messages to the queue.
- When to Change: Set to
false
if you do not want to use queue-based messaging.
Blob Store Configuration
- blob-addr:
file:///tmp/blobstore?no_tmp_dir=true
- Description: The address of the blob store.
- When to Change: Change to use a different storage backend, such as AWS S3 or Google Cloud Storage (examples).
Certifier Configuration
-
interval:
20m
- Description: The interval at which the certifier runs.
- When to Change: Adjust based on how frequently you need certification checks.
-
last-scan:
4
- Description: The number of hours since the last scan was run. A value of
0
means the scan will run on all packages/sources. - When to Change: Set to
0
for a full scan or adjust based on your scanning frequency needs.
- Description: The number of hours since the last scan was run. A value of
-
certifier-batch-size:
60000
- Description: The batch size for the package pagination query.
- When to Change: Modify to optimize performance based on your system’s capabilities.
-
certifier-latency:
""
- Description: Artificial latency to throttle the certifier.
- When to Change: Use to introduce delays if needed to manage load.
-
Deps.dev Configuration
- deps-dev-latency:
""
- Description: Artificial latency to throttle deps.dev.
- When to Change: Adjust if you need to manage load on deps.dev queries.
- deps-dev-latency:
Ingestion Configuration
-
add-vuln-on-ingest:
false
- Description: Whether to query vulnerabilities during ingestion.
- When to Change: Set to
true
if you want to automatically check for vulnerabilities during data ingestion.
-
add-license-on-ingest:
false
- Description: Whether to query licenses during ingestion.
- When to Change: Set to
true
if you want to automatically check for licenses during data ingestion.
Collector-Subscriber Configuration
-
csub-addr:
localhost:2782
- Description: The address for the Collector-Subscriber service.
- When to Change: Update if your Collector-Subscriber service is hosted on a different address.
-
csub-listen-port:
2782
- Description: The port on which the Collector-Subscriber service listens.
- When to Change: Change if your Collector-Subscriber service uses a different port.
GraphQL Configuration
-
gql-backend:
keyvalue
- Description: The backend used for the GraphQL server.
- When to Change: Modify if using a different backend for GraphQL.
-
gql-listen-port:
8080
- Description: The port on which the GraphQL server listens.
- When to Change: Change if your GraphQL server uses a different port.
-
gql-debug:
true
- Description: Whether to enable debug mode for the GraphQL server.
- When to Change: Set to
false
in production environments for security.
-
gql-addr:
http://localhost:8080/query
- Description: The address of the GraphQL server.
- When to Change: Update if your GraphQL server is hosted elsewhere.
REST API Configuration
- rest-api-server-port:
8081
- Description: The port on which the API server listens.
- When to Change: Change if your API server uses a different port.
Collector Configuration
-
service-poll:
true
- Description: Whether the collector should poll services.
- When to Change: Set to
false
if polling is not required.
-
use-csub:
true
- Description: Whether to use the Collector-Subscriber service.
- When to Change: Set to
false
if not using Collector-Subscriber.
Logging Configuration
- log-level:
Info
- Description: The logging level for the application.
- When to Change: Adjust to
Debug
for more detailed logs during development or troubleshooting.