Add trust-all SSL RestTemplate for prod profile in portainer-automation #157

Merged
hitanshu merged 1 commits from Dave/CFTunnels:main into main 2026-07-09 20:58:59 +00:00
Member

Summary

Extract the trust-all SSL logic from portainerRestTemplateLocal() into a shared buildTrustAllRestTemplate() helper. Add a new @Profile("prod") bean so the prod Portainer (at https://192.168.0.100:9443) with a self-signed certificate is trusted. Change the strict-SSL profile condition to !local & !prod so it only applies to CI/test profiles.

Changes

  • Extracted trust-all SSL logic into buildTrustAllRestTemplate() private static helper
  • portainerRestTemplateLocal() now delegates to buildTrustAllRestTemplate()
  • Added portainerRestTemplateProd() with @Profile("prod") that also delegates to buildTrustAllRestTemplate()
  • Changed @Profile("!local") to @Profile("!local & !prod")
  • Renamed portainerRestTemplate() to portainerRestTemplateDefault()

Issues

## Summary Extract the trust-all SSL logic from `portainerRestTemplateLocal()` into a shared `buildTrustAllRestTemplate()` helper. Add a new `@Profile("prod")` bean so the prod Portainer (at `https://192.168.0.100:9443`) with a self-signed certificate is trusted. Change the strict-SSL profile condition to `!local & !prod` so it only applies to CI/test profiles. ## Changes - Extracted trust-all SSL logic into `buildTrustAllRestTemplate()` private static helper - `portainerRestTemplateLocal()` now delegates to `buildTrustAllRestTemplate()` - Added `portainerRestTemplateProd()` with `@Profile("prod")` that also delegates to `buildTrustAllRestTemplate()` - Changed `@Profile("!local")` to `@Profile("!local & !prod")` - Renamed `portainerRestTemplate()` to `portainerRestTemplateDefault()` ## Issues - Hithomelabs/CFTunnels#122 - SSL certificate trust fix for portainer-automation
Dave added 1 commit 2026-07-09 20:57:16 +00:00
Hithomelabs/CFTunnels#122: Add trust-all SSL RestTemplate for prod profile
All checks were successful
Daily cloudflare API integration test / cloudflare-api-test (push) Successful in 1m50s
sample gradle build and test / build (pull_request) Successful in 1m58s
Build & Push Portainer Automation / version (push) Successful in 7s
Build & Push Portainer Automation / build-and-push (push) Successful in 2m6s
Build & Push CFTunnels / version (push) Successful in 7s
Build & Push CFTunnels / build-and-push (push) Successful in 2m24s
52f40e3d92
Extract trust-all SSL logic into buildTrustAllRestTemplate() helper.
Add @Profile("prod") bean that also trusts self-signed certs.
Change @Profile("!local") to @Profile("!local & !prod") so standard
strict SSL is only used for CI/test profiles.
Rename portainerRestTemplate() to portainerRestTemplateDefault().
hitanshu approved these changes 2026-07-09 20:58:43 +00:00
hitanshu merged commit 52f40e3d92 into main 2026-07-09 20:58:59 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Hithomelabs/CFTunnels#157
No description provided.