Add missing profile configs for portainer-automation #134
Labels
No Label
architect:complete
blocked-by:#139
blocks:#140
bug
CI/CD
complexity:low
complexity:medium
complexity:medium
config
depends-on:#124
docker
docs
effort:l
effort:s
effort:xs
epic/development
lead:complete
needs-decision
performance
priority:critical
priority:high
priority:low
priority:medium
security
spike
story-points:1
story-points:3
story-points:5
story-points:8
tech-debt
test
user-story
architect:complete
complexity:high
complexity:low
complexity:medium
cross-repo
cross-repo-dev
dev:in-progress
effort:l
effort:m
effort:s
effort:xl
effort:xs
epic
analytics
epic
development
epic
devops
epic
infra
epic
observability
epic
platform
epic
product
lead:complete
needs-decision
pipeline-complete
pipeline-error
pipeline-running
priority
later
priority
next
priority
now
start-pipeline
status
acceptance
status
blocked
status
done
status
in progress
status
in review
status
in testing
status
ready
status
refine
status
triage
subtask
type
analysis
type
bug
type
hygiene
type
mantainence
type
story
user-story
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Hithomelabs/CFTunnels#134
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When setting up the portainer-automation service in different environments, I want
application-prod.properties,application-ci.properties, and.env.examplefiles to be present, so I can configure and deploy the service consistently across production and CI environments.Acceptance Criteria
application-prod.propertiesexists with production-appropriate defaultsapplication-ci.propertiesexists with CI-appropriate overrides.env.exampleexists with all required environment variables documentedTechnical Notes
.env.exampleshould document every variable with a comment explaining its purposeDependencies
Effort: XS (1-2 days)
Architecture Review — #134
Context Reviewed
I reviewed the full repository, the
testbranch (where Phase 1 lives), and the existing profile config patterns fromcftunnels-service.What Exists vs What's Missing
portainer-automation/src/main/resources/application.propertiestestbranchportainer-automation/src/main/resources/application-local.propertiestestbranchportainer-automation/src/main/resources/application-prod.propertiesportainer-automation/src/main/resources/application-ci.propertiesportainer-automation/.env.example(or root.env.examplefor PA)Existing
testBranch Base Configsapplication.properties(the default):application-local.properties(for local dev via Cloudflare Tunnel):Recommended Content for New Files
1.
application-prod.propertiesFollow the pattern from
cftunnels-service/application-prod.properties— no secrets, all env vars:Key decisions:
https://192.168.0.100:9443(per architecture issue #124 — Portainer Prod CE on:9443)1(matches the default — likely the primary Docker endpoint)2.
application-ci.propertiesFor CI environment — use stub/test endpoints:
Key decisions:
http://portainer-test:9000(HTTP, internal CI network — no SSL needed in CI)3.
.env.example(inportainer-automation/directory)Document every env var used by the module:
Pattern Reference from Existing Module
The
cftunnels-serviceuses the same pattern:application.properties— base config with env-var placeholdersapplication-prod.properties— prod overrides, all secrets via${...}application-ci.properties— CI overrides with H2/test endpointsArchitecture Notes
application-local.propertiesexists butapplication-dev.propertiesdoesn't — If adevprofile is needed later, consider adding it. Currentlylocalserves that purpose.:9443) uses proper SSL certs, so the!localprofile's standardRestTemplate(no trust-all) will work correctly.http://portainer-test:9000(if you set up a test Portainer) would be reachable. If no test Portainer exists, the CI config still validates that property binding works..env.examplelocation: Put it atportainer-automation/.env.examplerather than root, since root already has acftunnels-service-focused.env.example.Summary: Clean XS effort — straightforward, well-scoped. Just be sure to keep secrets out and follow the existing pattern from
cftunnels-service.