You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I deployed infisical with the issuer-controller-manager to integrate with cert-manager in my k8s.
Container images:
infisical/infisical:v0.112.0-postgres
infisical/pki-issuer:v0.1.3
When I deploy this certificate (Using argoCD):
---
# https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpecapiVersion: cert-manager.io/v1kind: Certificatemetadata:
name: skynet-infisical-rah-rsa2048namespace: infisical-systemspec:
dnsNames:
- skynet-infisical-rah-rsa2048commonName: skynet-infisical-rah-rsa2048 # the common name for the certificatesecretName: skynet-infisical-rah-rsa2048-tls # the name of the Kubernetes Secret to create and store the certificate and private key inissuerRef:
name: issuer-infisical-rah-rsa2048group: infisical-issuer.infisical.comkind: Issuernamespace: infisical-systemprivateKey: # the algorithm and key size to usealgorithm: RSA#size: 256size: 2048duration: 48h# the ttl for the certificaterenewBefore: 12h# the time before the certificate expiry that the certificate should be automatically renewed
Using this PKI-issuer I was trying certificateTemplateId & caId, root & Intermediate CA:
apiVersion: infisical-issuer.infisical.com/v1alpha1kind: Issuer#kind: ClusterIssuermetadata:
#name: issuer-infisical-clustername: issuer-infisical-rah-rsa2048namespace: infisical-systemspec:
#url: "https://infisical.mywebsite.co" # the URL of your Infisical instanceurl: "http://infisical-infisical.infisical-system.svc.cluster.local:8080"# the URL of your Infisical instance# you should only fill in the caId or the certificateTemplateId field but not both!!!!caId: e4630169# the ID of the CA you want to use to issue certificates# you should only fill in the caId or the certificateTemplateId field but not both!!!!# https://infisical.mywebsite.co/cert-mgr/e7a786c/ca/b0479d93#certificateTemplateId: cfa567c8 # the ID of the certificate template you want to use to issue certificates againstauthentication:
universalAuth:
# https://infisical.mywebsite.co/organization/identities/351f9800clientId: 54267ea # the Client ID from step 1secretRef: # reference to the Secret created in step 4name: "issuer-infisical-client-secret"key: "clientSecret"
In the issuer controller's logs, I see the strange message CertificateRequest has not been approved yet, and my certificate never gets to the ready status.
"CertificateRequest has not been approved yet. Ignoring.","controller":"certificaterequest","controllerGroup":"cert-manager.io","controllerKind":"CertificateRequest","CertificateRequest":{"name":"skynet-infisical-rta-rsa2048-1","namespace":"infisical-system"},"namespace":"infisical-system","name":"skynet-infisical-rta-rsa2048-1","reconcileID":"bfb7cad9-d867-45b5-b3a3-0139e731b7a6"}
In the infisical UI I have:
Created CA and Intermediate CA certificates and installed Intermediate with my root CA.
Created a template for the root & Intermediate CA.
I tried both Intermediate & root CA in my Issuer resource using their templates as well as just root and intermediate CA IDs without templates.
The template for intermediate CA has both common name (CN) and Alternative Names (SAN) set to .* with Max TTL 1y, and in the Key Usage, I have selected all possible checkboxes to be checked (including CRL Sign, Certificate Sign and all others).
Also I have created a Machine identity cert-manager in the Organization Access Control with the Organization Role Admin
In the identity I have set Authentication: Universal Auth, with both Access Token Trusted IPs and Client Secret Trusted IPs set to 0.0.0.0, ::
Then I copied the Client ID & created Client Secrets saved into my secret issuer-infisical-client-secret and the Issuer resource.
Then I assigned the identity cert-manager to my cert-manager project k8s-so with my root & intermediate CAs with the Project role Admin
In the Identity I have also added Project Additional Privileges: Certificate AuthoritiesActions: Read, Certificates: Actions: Read, Create, Modify, Remove and Certificate Templates: Actions: Read.
Why does the certificate never get approved by the infisical's PKI issuer?
I was following this pki-issuer guide. FYI I think PKI issuer documentation is too generic and lacks Insifical's RBAC settings and explanations specific to the PKI Issuer.
The text was updated successfully, but these errors were encountered:
qdrddr
changed the title
Why my certificate request is not automatically approved?
Why my certificate request is not automatically approved? Documentation is too generic and lacks Insifical RBAC settings and explanations specific to the PKI Issuer.
Feb 20, 2025
qdrddr
changed the title
Why my certificate request is not automatically approved? Documentation is too generic and lacks Insifical RBAC settings and explanations specific to the PKI Issuer.
Why my certificate request is not automatically approved? Generic docs lacks Insifical's RBAC settings specific to the PKI Issuer.
Feb 20, 2025
When I deployed infisical with the issuer-controller-manager to integrate with cert-manager in my k8s.
Container images:
When I deploy this certificate (Using argoCD):
Using this PKI-issuer I was trying certificateTemplateId & caId, root & Intermediate CA:
In the issuer controller's logs, I see the strange message
CertificateRequest has not been approved yet,
and my certificate never gets to the ready status.In the infisical UI I have:
.*
withMax TTL 1y
, and in theKey Usage
, I have selected all possible checkboxes to be checked (includingCRL Sign
,Certificate Sign
and all others).cert-manager
in theOrganization Access Control
with the Organization RoleAdmin
Authentication
:Universal Auth
, with bothAccess Token Trusted IPs
andClient Secret Trusted IPs
set to0.0.0.0, ::
Client ID
& createdClient Secrets
saved into my secretissuer-infisical-client-secret
and the Issuer resource.cert-manager
to my cert-manager projectk8s-so
with my root & intermediate CAs with the Project role AdminProject Additional Privileges
:Certificate Authorities
Actions: Read
,Certificates
:Actions: Read, Create, Modify, Remove
andCertificate Templates
:Actions: Read
.Why does the certificate never get approved by the infisical's PKI issuer?
I was following this pki-issuer guide. FYI I think PKI issuer documentation is too generic and lacks Insifical's RBAC settings and explanations specific to the PKI Issuer.
The text was updated successfully, but these errors were encountered: