-
Notifications
You must be signed in to change notification settings - Fork 0
Examples
This directory contains example test configurations for the GitLab crawler.
Configuration files containing sensitive data (access tokens) are encrypted using SOPS with age encryption.
-
Ensure SOPS is installed:
brew install sops
-
Set the age key file location (add to your shell profile):
export SOPS_AGE_KEY_FILE=$HOME/.config/sops/age/keys.txt
Note: The project includes a
.sops.yamlconfiguration, but SOPS still requires theSOPS_AGE_KEY_FILEenvironment variable to locate your private key for decryption.
Decrypt a config file:
sops -d examples/unified-config.enc.yaml > examples/unified-config.yamlEdit encrypted config directly:
sops examples/unified-config.enc.yamlEncrypt a new config file:
sops -e examples/unified-config.yaml > examples/unified-config.enc.yaml-
unified-config.enc.yaml - Basic E2E test with PAT authentication
- Tests: areas + users steps
- Instance: git.hnnl.eu
- Encrypted with SOPS
-
test-configs/dry-run-test.yaml - Mock execution without API calls
- Tests: areas + users + resources steps
- Auth: Mock token (no real API calls)
- No encryption needed
-
test-configs/template-test.yaml - Full configuration example
- Tests: All steps with comprehensive validation
- Shows: All available configuration options
- Replace token placeholder with your token
-
test-configs/test-suite.yaml - Test suite orchestration
- Runs: Multiple tests sequentially
- Replace token placeholder with your token
- Never commit unencrypted config files with real tokens to Git
- The
.gitignoreis configured to excludeexamples/unified-config.yaml - Always use the encrypted
.enc.yamlversions for files with secrets - Replace
YOUR_GITLAB_TOKEN_HEREplaceholders with your actual tokens