Weird issue today, any reason why i can’t enable a...
# general
c
Weird issue today, any reason why i can’t enable auto rotate on my ACME cert , this is critical
👀 1
✅ 1
s
If you're using an ACME client, renewal should be handled by the ACME client you're using rather than by Infisical @Christophe Jauffret. Is that how you've currently set it up?
c
There is no ACME client involved ,initial acme request has been made by infisical and I’m using infisical sync feature to push the cert to an endpoint who don’t support ACME So I clearly need the ability to have infisical rotate the certificate
There is already a rotate now feature on this kind of certificates but don’t want to launch it manually of course
s
Just to make sure I understand your setup, how did you issue this certificate that you're trying to enable auto-renewal for @Christophe Jauffret?
c
Directly inside infisical using request certificate
I use infisical as an acme client to generate certs for endpoints who don’t support ACME and next I use infisical sync to push them to these endpoints
@Sheen Santos Capadngan i think there is wider issue/bugs even when i try to renew the certificate i have this error which is definitively not expected
for info this certificate have been generated from an API enrollment method
s
This looks like a bug. Will try to get it patched by today.
c
👍🏻
for info the issue is only if your profile have auto renew disable
s
Ok. Is this a profile that was created before we introduced “applications”?
c
yes this is strongly possible
s
Earlier profiles had only one enrollment method, and I’m assuming this one internally stayed as ACME.
c
in my case in the app
but i don’t know what was the config before app
don’t remember
s
Ok, is this on US cloud? app.infisical.com?
c
on prem instance sorry
but i can collect some info if you want just ask
s
Sure, I’ll get back to you if I need anything.
c
OK
s
Copy code
SELECT
  c."commonName",
  p."enrollmentType"      AS profile_label,
  cr."enrollmentType"     AS issued_via,
  cs."certId" IS NOT NULL AS has_key
FROM certificates c
JOIN pki_certificate_profiles p ON p.id = c."profileId"
LEFT JOIN LATERAL (
  SELECT "enrollmentType" FROM certificate_requests
  WHERE "certificateId" = c.id ORDER BY "createdAt" ASC LIMIT 1
) cr ON true
LEFT JOIN certificate_secrets cs ON cs."certId" = c.id
WHERE p.slug = 'public-cloudnative-nvdlab';
@Christophe Jauffret can you run this query and share the result?
c
Copy code
commonName                    | profile_label | issued_via | has_key
-------------------------------------------------+---------------+------------+---------
 <http://nai.qa-1.gpu-farm.cloudnative.nvdlab.net|nai.qa-1.gpu-farm.cloudnative.nvdlab.net>        | acme          | acme       | f
                                                 | acme          | acme       | f
                                                 | acme          | acme       | f
                                                 | acme          | acme       | f
                                                 | acme          | acme       | f
                                                 | acme          | acme       | f
 <http://nai.dev-1.gpu-farm.cloudnative.nvdlab.net|nai.dev-1.gpu-farm.cloudnative.nvdlab.net>       | acme          | acme       | f
                                                 | acme          | acme       | f
                                                 | acme          | acme       | f
 <http://nai.nai-gateway.gpu-farm.cloudnative.nvdlab.net|nai.nai-gateway.gpu-farm.cloudnative.nvdlab.net> | acme          | acme       | f
 <http://nkp-mgmt.nai-nvd.cloudnative.nvdlab.net|nkp-mgmt.nai-nvd.cloudnative.nvdlab.net>         | acme          | acme       | f
 <http://nai.nai-gateway.nai-nvd.cloudnative.nvdlab.net|nai.nai-gateway.nai-nvd.cloudnative.nvdlab.net>  | acme          | acme       | f
 <http://nai.nai-prod.nai-nvd.cloudnative.nvdlab.net|nai.nai-prod.nai-nvd.cloudnative.nvdlab.net>     | acme          | acme       | f
                                                 | acme          | acme       | f
 <http://nai.qa-1.gpu-farm.cloudnative.nvdlab.net|nai.qa-1.gpu-farm.cloudnative.nvdlab.net>        | acme          | acme       | f
                                                 | acme          | acme       | f
                                                 | acme          | acme       | f
                                                 | acme          | acme       | f
 <http://nai.nai-stage-1.gpu-farm.cloudnative.nvdlab.net|nai.nai-stage-1.gpu-farm.cloudnative.nvdlab.net> | acme          | acme       | f
 <http://nai.qa-1.gpu-farm.cloudnative.nvdlab.net|nai.qa-1.gpu-farm.cloudnative.nvdlab.net>        | acme          | acme       | f
                                                 | acme          | acme       | f
                                                 | acme          | acme       | f
                                                 | acme          | acme       | f
 <http://nai.dev-2.gpu-farm.cloudnative.nvdlab.net|nai.dev-2.gpu-farm.cloudnative.nvdlab.net>       | acme          | acme       | f
                                                 | acme          | acme       | f
                                                 | acme          | acme       | f
 <http://nai.nai-prod-1.gpu-farm.cloudnative.nvdlab.net|nai.nai-prod-1.gpu-farm.cloudnative.nvdlab.net>  | acme          | acme       | f
 <http://nai.qa-1.gpu-farm.cloudnative.nvdlab.net|nai.qa-1.gpu-farm.cloudnative.nvdlab.net>        | acme          | acme       | f
                                                 | acme          | acme       | f
                                                 | acme          | acme       | f
 <http://nkp-mgmt.nai-nvd.cloudnative.nvdlab.net|nkp-mgmt.nai-nvd.cloudnative.nvdlab.net>         | acme          | acme       | f
 <http://nai.qa-1.gpu-farm.cloudnative.nvdlab.net|nai.qa-1.gpu-farm.cloudnative.nvdlab.net>        | acme          | acme       | f
                                                 | acme          | acme       | f
 <http://nai.dev-2.gpu-farm.cloudnative.nvdlab.net|nai.dev-2.gpu-farm.cloudnative.nvdlab.net>       | acme          | api        | t
                                                 | acme          | acme       | f
 <http://pc.dragon-lab.cloudnative.nvdlab.net|pc.dragon-lab.cloudnative.nvdlab.net>            | acme          | api        | t
 <http://pc.romanticism-lab.cloudnative.nvdlab.net|pc.romanticism-lab.cloudnative.nvdlab.net>       | acme          | api        | t
 <http://pc.solengcnai-lab.cloudnative.nvdlab.net|pc.solengcnai-lab.cloudnative.nvdlab.net>        | acme          | api        | t
(38 rows)
@Saif Rahman is it helpful ?
s
Oh yea, super helpful. I’m assuming you’re having issues with these ones:
Copy code
commonName                                   | profile_label | issued_via | has_key
---------------------------------------------+---------------+------------+--------
<http://nai.dev-2.gpu-farm.cloudnative.nvdlab.net|nai.dev-2.gpu-farm.cloudnative.nvdlab.net>    | acme          | api        | t
<http://pc.dragon-lab.cloudnative.nvdlab.net|pc.dragon-lab.cloudnative.nvdlab.net>         | acme          | api        | t
<http://pc.romanticism-lab.cloudnative.nvdlab.net|pc.romanticism-lab.cloudnative.nvdlab.net>    | acme          | api        | t
<http://pc.solengcnai-lab.cloudnative.nvdlab.net|pc.solengcnai-lab.cloudnative.nvdlab.net>     | acme          | api        | t
I’ve raised a PR and it will be merged soon. github.com/Infisical/infisical/pull/7376
@Christophe Jauffret Try v0.162.12, released a fix
c
@Saif Rahman problem perfectly fixed, thanks a lot
🙌 2