Skip to content

Conversation

@nyagamunene
Copy link
Contributor

What type of PR is this?

What does this do?

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

Did you document any new/modified feature?

Notes

@nyagamunene nyagamunene moved this to 🚧 In Progress in SuperMQ Sep 18, 2025
@nyagamunene nyagamunene self-assigned this Sep 18, 2025
@nyagamunene nyagamunene force-pushed the unify_certs branch 2 times, most recently from 8108137 to b5c335a Compare September 22, 2025 07:41
@codecov
Copy link

codecov bot commented Sep 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.09%. Comparing base (b031dc0) to head (0d95f14).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #3146       +/-   ##
===========================================
+ Coverage   35.47%   46.09%   +10.61%     
===========================================
  Files         319      231       -88     
  Lines       48061    35267    -12794     
===========================================
- Hits        17052    16255      -797     
+ Misses      30154    18192    -11962     
+ Partials      855      820       -35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nyagamunene nyagamunene marked this pull request as ready for review September 22, 2025 10:50
@nyagamunene nyagamunene requested a review from a team as a code owner September 22, 2025 10:50
@nyagamunene nyagamunene moved this from 🚧 In Progress to 🩺 Review and testing in SuperMQ Sep 22, 2025
@arvindh123 arvindh123 moved this from 🩺 Review and testing to 🚀 Ready for merge in SuperMQ Sep 25, 2025
@arvindh123 arvindh123 moved this from 🚀 Ready for merge to 🩺 Review and testing in SuperMQ Sep 25, 2025
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>

FROM scratch

# Required for billing service
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# Required for billing service
# Required for certs service

ARG SVC
COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY ./build/$SVC /exe
ENTRYPOINT ["/exe"] No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

Add empty line

- openbao
- certs-db
restart: on-failure
restart: always
Copy link
Contributor

Choose a reason for hiding this comment

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

Why restart always here?

Copy link
Contributor

Choose a reason for hiding this comment

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

remove if unused

"github.com/stretchr/testify/mock"
)

var clientID = "fe6b4e92-cc98-425e-b0aa-000000000001"
Copy link
Contributor

Choose a reason for hiding this comment

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

is this used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is used in multiple places in the code

@github-project-automation github-project-automation bot moved this from 🩺 Review and testing to 🚧 In Progress in SuperMQ Sep 30, 2025
@@ -0,0 +1,42 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to use the same docker compose?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I agree, this is probably not needed. We can just put a simple compose file that uses absmach/certs to docker/addons.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What about when we update certs and we need the changes reflected on supermq will it not be alot of work making the changes on superMQ side?

Copy link
Collaborator

@dborovcanin dborovcanin Oct 1, 2025

Choose a reason for hiding this comment

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

I don't think so. SMQ is only using Compose from Certs. However, now that we're working on integrations service, I'm thinking that Certs service will become even more important and I'm afraid we can't avoid coupling between Certs and core service. Anyways, let's keep this as is, and we'll revisit the approach during this sprint as we progress with integrations.

@dborovcanin dborovcanin merged commit ae7c930 into absmach:main Oct 1, 2025
8 of 9 checks passed
@github-project-automation github-project-automation bot moved this from 🚧 In Progress to ✅ Done in SuperMQ Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Unify SMQ certs with Absmach Certs

4 participants