Files
ca/internal/config/testdata/test_config.yaml
dissoupovandGitHub 27e411997c Added integration tests (#16)
* Refactor Backend service

* Added integration tests
2026-10-23 18:02:39 -05:00

120 lines
3.1 KiB
YAML

---
service:
name: trustyca
region: local
cluster: ${NODENAME}
environment: test
log_levels:
- repo: "*"
level: TRACE
- repo: github.com/effective-security/trustyca
package: "*"
level: TRACE
- repo: github.com/effective-security/trustyca/health
package: xhttp
level: ERROR
- repo: github.com/effective-security/trustyca/server/service
package: "*"
level: DEBUG
metrics:
# specifies if the metrics provider is disabled
disabled: true
# the metrics provider: prometeus|inmem
provider: inmem
sql:
# specifies the connection string. It can be prefixed with file:// or env:// to load the source from a file or environment variable.
data_source: file://../../etc/dev/sql-conn-trustycadb.txt
# the directory that contains migrations.
migrations_dir: ../../sql/trustycadb/migrations
servers:
wfe:
listen_urls:
- http://0.0.0.0:8880
services:
- status
timeout:
request: 3s
keep_alive:
min_time: 60s
interval: 30s
timeout: 180s
#swagger:
# enabled: true
# files:
# cis: ${TRUSTYCA_CONFIG_DIR}/../../../Documentation/dev-guide/apispec/swagger/cis.swagger.json
# status: ${TRUSTYCA_CONFIG_DIR}/../../../Documentation/dev-guide/apispec/swagger/status.swagger.json
cors: &cors
enabled: true
max_age: 600
allow_credentials: true
allowed_origins:
- http://localhost:4200
allowed_methods:
- HEAD
- OPTIONS
- GET
- POST
- DELETE
allowed_headers:
- Accept
- Content-Type
- Content-Length
- Accept-Encoding
- Authorization
- User-Agent
- Referer
- X-Device-ID
- sec-ch-ua
- sec-ch-ua-mobile
# configuration for the authorization module
authz:
&authz # allow any non-authenticated request access to this path and its children
allow_any:
- /v1/auth
- /v1/status
- /pb.Status
# allow any authenticated request that includes a non empty role
allow_any_role:
# allow the specified roles access to this path and its children, in format: ${path}:${role},${role}
allow:
# specifies to log allowed access to Any role
log_allowed_any: true
# specifies to log allowed access
log_allowed: true
# specifies to log denied access
log_denied: true
wfe2:
listen_urls:
- https://0.0.0.0:7891
server_tls:
cert: ${HOME}/.trustyca/certs/trustyca_peer_wfe.pem
key: ${HOME}/.trustyca/certs/trustyca_peer_wfe.pem
trusted_ca: ${HOME}/.trustyca/certs/trustyca_root.pem
services:
- adviser
- status
timeout:
request: 3s
keep_alive:
min_time: 60s
interval: 30s
timeout: 180s
cors: *cors
authz: *authz
clients:
- name: aia
client_tls:
cert: ${HOME}/.trustyca/certs/trustyca_client.pem
key: ${HOME}/.trustyca/certs/trustyca_client.pem
trusted_ca: ${HOME}/.trustyca/certs/trustyca_root.pem
server_url:
cis: http://localhost:8880
wfe: https://localhost:7891
ca: https://localhost:7892