Git Authentication
Configure Git repository authentication for Porch Server
Version v1.5 of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot. For up-to-date documentation, see the latest version.
The Porch server is the main API server component that handles package operations and Git repository interactions.
args:
- --cache-directory=/cache/porch # Directory for repository and package caches
- --cache-type=CR # Cache type: CR (Custom Resource) or DB (Database)
- --function-runner=function-runner:9445 # Function runner gRPC service address
- --max-request-body-size=6291456 # Max request body size in bytes (6MB)
- --standalone-debug-mode=false # Local debugging mode (dev only)
args:
- --repo-sync-frequency=10m # Repository sync frequency
- --repo-operation-retry-attempts=3 # Retry attempts for repo operations
- --retryable-git-errors=pattern1,pattern2 # Additional retryable git error patterns
- --list-timeout-per-repo=20s # Timeout per repository list request
- --max-parallel-repo-lists=10 # Max concurrent repository lists
- --use-user-cabundle=false # Enable custom CA bundle for Git TLS
args:
- --db-cache-driver=pgx # Database driver (pgx, mysql)
- --db-cache-data-source=connection-string # Database connection string
- --max-concurrent-db-syncs=20 # Max concurrent DB cache repo syncs (0 = no limit)
args:
- --default-image-prefix=ghcr.io/kptdev/krm-functions-catalog # Default function image prefix
env:
- name: DB_DRIVER
value: "pgx" # Database driver
- name: DB_HOST
value: "postgresql.example.com" # Database host
- name: DB_PORT
value: "5432" # Database port
- name: DB_NAME
value: "porch" # Database name
- name: DB_USER
value: "porch_user" # Database user
- name: DB_PASSWORD
value: "your_password" # Database password
- name: DB_SSL_MODE
value: "disable" # SSL mode (optional)
For detailed Git repository authentication configuration, see Git Authentication subsection.
For cert-manager integration with Porch webhooks, see Cert Manager Webhooks subsection.
For Jaeger tracing configuration, see Jaeger Tracing subsection.
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /readyz
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
Configure Git repository authentication for Porch Server
Configure cert-manager for automatic TLS certificate management in Porch webhooks
Configure distributed tracing with Jaeger for debugging and monitoring Porch Server operations