Skip to content

feat: add TLS support for Microcks HTTP endpoint #1784 - #2038

Merged
lbroudoux merged 2 commits into
microcks:masterfrom
sudheerr937-ai:feature/http-tls-support
Jun 26, 2026
Merged

lbroudoux merged 2 commits into
microcks:masterfrom
sudheerr937-ai:feature/http-tls-support

Conversation

@sudheerr937-ai

Copy link
Copy Markdown
Contributor

Summary:-
Fixes -1784

Changes:-

  • Added httpEnableTLS and httpSecretRef options in values.yaml
  • Added HTTPS port 8443 in deployment.yaml
  • Added conditional volumeMount and volume for HTTP TLS certificate
  • Updated liveness, readiness and startup probes to support HTTPS
  • Added Spring Boot SSL configuration in configmap.yaml

How to use:-
To enable TLS on the HTTP endpoint, set the following values:

microcks:
  httpEnableTLS: true
  httpSecretRef: my-tls-secret

The secret must be of type 'kubernetes.io/tls' containing 'tls.crt' and 'tls.key'.

testing

  • helm lint passed with 0 failures
  • helm template verified all TLS properties are generated correctly

@github-actions

Copy link
Copy Markdown

👋 @sudheerr937-ai

Welcome to the Microcks community! 💖

Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.

Hope you have a great time there!

@dipak0000812 dipak0000812 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition, useful feature.

I had one question while checking the templates: this PR updates the app/probes to use HTTPS on 8443, but the main Service still points to 8080, and the Ingress also seems to use service port 8080.

If enabling httpEnableTLS=true moves Microcks to 8443, should Service/Ingress be updated too? Otherwise traffic may still go to the old port.

Maybe I’m missing another template that already handles this.

@sudheerr937-ai

Copy link
Copy Markdown
Contributor Author

Hi @dipak0000812, good catch!

You're right, the Service and Ingress were still using port 8080 even when 'httpEnableTLS=true'. I've updated both:

service.yaml - port and targetPort now use 8443 when TLS is enabled
ingress.yaml - service port now uses 8443 when TLS is enabled

Tested locally with helm template for both cases and it looks good. Let me know if you spot anything else

@dipak0000812 dipak0000812 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update — just checked the latest changes and the Service/Ingress alignment with httpEnableTLS looks good now 👍

One small note: DCO check is currently failing — I think commits might need a sign-off.

Nice improvement overall.

@sudheerr937-ai
sudheerr937-ai force-pushed the feature/http-tls-support branch from 70d5cca to 22e21c9 Compare April 30, 2026 20:58
@sudheerr937-ai
sudheerr937-ai force-pushed the feature/http-tls-support branch from 22e21c9 to 07881dd Compare April 30, 2026 21:02
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 30 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation.

There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. Microcks is a Cloud Native Computing Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions Bot added the stale State due to inactivity label May 31, 2026
@lbroudoux lbroudoux added keep-open Explicitily keep open and removed stale State due to inactivity labels Jun 1, 2026
@Vaishnav88sk

Copy link
Copy Markdown
Contributor

Fixes #1784

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for pushing this. I added one comment but it's more for future enhancement.

Comment on lines +155 to +156
server.ssl.certificate=/deployments/config/https/tls.crt
server.ssl.certificate-private-key=/deployments/config/https/tls.key

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think those properties are still available for backward compatibility, but the now recommended wya of doing things is to use server.ssl.bundle properties.

@lbroudoux lbroudoux added this to the 1.15.0 milestone Jun 26, 2026
@lbroudoux
lbroudoux merged commit f3f3783 into microcks:master Jun 26, 2026
4 checks passed
@github-actions

Copy link
Copy Markdown

🎉 @sudheerr937-ai

You are now a Microcks community contributor! 💖

Thanks and congrats 🚀 on merging your first pull request! We are delighted and very proud of you! 👏

📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.

If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌"

Kudos and please keep going, we need you 🙌

lbroudoux pushed a commit that referenced this pull request Aug 5, 2026
* feat: add TLS support for Microcks HTTP endpoint #1784

Signed-off-by: sudheerr937-ai <[email protected]>

* fix: update Service and Ingress port when httpEnableTLS is enabled

Signed-off-by: sudheerr937-ai <[email protected]>

---------

Signed-off-by: sudheerr937-ai <[email protected]>
(cherry picked from commit f3f3783)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants