Connect certificates-cert-manager to a Kubernetes cluster
- graal Agentic Platform
- Version 0.30 (actuelle)
- Open source · Apache 2.0
- Source : graalsystems/tranibor-agents@983db67
For an organisation administrator. Procedure connector.mcp.certificates-cert-manager, version 1, reviewed 2026-11-26 against the vendor’s own pages. It applies to the connector type mcp/certificates-cert-manager.
It ships with the plugin certificates-cert-manager 0.1.0: its source. In the console, once the plugin is installed, it opens with How to set this up on the connector of the plugin’s server, and on Library › Plugins.
Addresses are written <api_url>, <public_url> and <org> here: the console shows the same text with your deployment’s own.
Before you start
Section intitulée « Before you start »- A Kubernetes cluster running cert-manager, and
kubectlwith rights to create a service account, a role and a binding (cluster-admin or equivalent). - The
certificates-cert-managerplugin installed in your organisation (Catalogue, Plugins). Its server runs in the platform; there is nothing to host. A plugin that brings a server needs a second person’s approval. - The API server must be reachable from where the platform runs the server. A public API endpoint works now. A cluster API on a private network does not: it needs the private-network decision of ADR 0224 section 6 (private CIDRs an administrator declares, or an outpost inside the network), which is not available yet. Do not tunnel around it.
- What the server reaches, and nothing else: the Kubernetes API (
kube_api_url, the descriptor’segress). - This plugin was written against the documentation listed above and tested against a seeded fake only. No real cluster was used: see “Test it”.
At the cluster
Section intitulée « At the cluster »The service account only reads: get, list and watch on the six cert-manager kinds, nothing else (no
Secret, no write verb, no core resource). The server itself uses get and list; watch is granted
because the Kubernetes documentation treats the three read verbs together, and is never used.
-
The service account.
Fenêtre de terminal kubectl create namespace certificateskubectl -n certificates create serviceaccount certificates -
Cluster-wide variant (every namespace; the simplest):
apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata:name: certificates-readrules:- apiGroups: ["cert-manager.io"]resources: ["certificates", "certificaterequests", "issuers", "clusterissuers"]verbs: ["get", "list", "watch"]- apiGroups: ["acme.cert-manager.io"]resources: ["orders", "challenges"]verbs: ["get", "list", "watch"]---apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRoleBindingmetadata:name: certificates-readroleRef:apiGroup: rbac.authorization.k8s.iokind: ClusterRolename: certificates-readsubjects:- kind: ServiceAccountname: certificatesnamespace: certificates -
Namespaced variant (only the namespaces you list in
namespaces; repeat the Role and RoleBinding in each).clusterissuersis cluster-scoped and cannot be granted in a Role: without the small ClusterRole at the end, the issuer of a Certificate is reported as “not readable” and everything else still works.apiVersion: rbac.authorization.k8s.io/v1kind: Rolemetadata:name: certificates-readnamespace: shop # one per namespace in `namespaces`rules:- apiGroups: ["cert-manager.io"]resources: ["certificates", "certificaterequests", "issuers"]verbs: ["get", "list", "watch"]- apiGroups: ["acme.cert-manager.io"]resources: ["orders", "challenges"]verbs: ["get", "list", "watch"]---apiVersion: rbac.authorization.k8s.io/v1kind: RoleBindingmetadata:name: certificates-readnamespace: shoproleRef:apiGroup: rbac.authorization.k8s.iokind: Rolename: certificates-readsubjects:- kind: ServiceAccountname: certificatesnamespace: certificates---apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata:name: certificates-read-clusterissuersrules:- apiGroups: ["cert-manager.io"]resources: ["clusterissuers"]verbs: ["get", "list", "watch"]---apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRoleBindingmetadata:name: certificates-read-clusterissuersroleRef:apiGroup: rbac.authorization.k8s.iokind: ClusterRolename: certificates-read-clusterissuerssubjects:- kind: ServiceAccountname: certificatesnamespace: certificates -
Check the rights before going further (each must say
yes, and the last must sayno):Fenêtre de terminal SA=system:serviceaccount:certificates:certificateskubectl auth can-i list certificates.cert-manager.io --all-namespaces --as=$SAkubectl auth can-i list challenges.acme.cert-manager.io --all-namespaces --as=$SAkubectl auth can-i get secrets --all-namespaces --as=$SA # must be "no" -
The token. A bounded token is the safe default; the API server may cap its duration, and the plugin never renews it: put a reminder before it expires, create a new one and update
kube_token.Fenêtre de terminal kubectl -n certificates create token certificates --duration=2160hkubectl create tokenprints the token once; it is not stored in the cluster, and it is bound to the service account (delete the service account and it stops working). A token that does not expire is aSecretof typekubernetes.io/service-account-token(Kubernetes, “Manually create a long-lived API token for a ServiceAccount”): it works until the Secret is deleted, which is why a bounded one is preferred here. -
The API server’s CA, when its certificate does not chain to public roots (most clusters):
Fenêtre de terminal kubectl -n kube-system get configmap kube-root-ca.crt -o jsonpath='{.data.ca\.crt}'Paste the whole PEM text (from
-----BEGIN CERTIFICATE-----to-----END CERTIFICATE-----) intokube_ca_cert. That ConfigMap holds the CA the in-cluster clients use; if your API server is reached through a load balancer with another certificate, use that certificate’s CA instead. -
The API server’s URL:
kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}'gives the one your kubeconfig uses; it must be the address the platform can reach.
Permissions
Section intitulée « Permissions »| What | Where | Why |
|---|---|---|
get, list, watch on certificates, certificaterequests, issuers, clusterissuers (cert-manager.io) |
the cluster, or the listed namespaces | expiry, readiness, renewal time, the issuer’s state |
get, list, watch on orders, challenges (acme.cert-manager.io) |
the same | why an issuance is stuck |
nothing on secrets, no create, update, patch, delete |
the server cannot read a key or change anything |
In Tranibor
Section intitulée « In Tranibor »Open Connectors, add the plugin’s certificates-cert-manager connector and fill the fields above. The
token is sealed and never shown again. Then install the cert-review template of the certificates plugin
in a project and add the schedule its README gives.
- Press Test on the connector, then ask the agent for
list_certificates: it lists your Certificates. A403names the rule that is missing (step 4 of the cluster part checks it). get_providershows the namespaces you allowed (or every namespace), andlist_certificatesshows no others.get_certificateon a Certificate that is renewing lists the request, order and challenge it waits on.
What this page does not confirm:
- No run against a real cluster. The live tests under
server/tests/liveexist and skip withoutTRANIBOR_LIVE_CERTIFICATES_CERT_MANAGER_*variables. - The longest token the API server will mint is its own setting (
--service-account-max-token-expiration); this page does not confirm a default. - Reading the
Eventobjects that explain a stuck issuance is deliberately not done: it needs a rule on a core resource, and the resources’ own conditions carry the failure text.
When it fails
Section intitulée « When it fails »| You see | What it means | What to do |
|---|---|---|
the Kubernetes API refused the token (401) |
the token expired, or the service account was deleted | create a new one (step 5) and update kube_token |
... (403): the service account lacks get/list |
a rule of step 2 or 3 is missing | run the can-i checks of step 4 |
the Kubernetes API did not answer |
the platform cannot reach kube_api_url, or its CA is wrong |
check the URL, the CA, the network path |
is not in the configured allow-list |
the namespace is not in namespaces |
add it, or ask for another |
| Field | What to put in it |
|---|---|
kube_api_url |
https://<kubernetes-api-host>:6443, the API server’s URL as the platform reaches it, without a trailing slash |
kube_ca_cert |
the PEM text of the CA that signed the API server’s certificate; empty when it chains to public roots |
kube_token |
the bearer token of the read-only service account, typed once |
namespaces |
optional: the namespaces to read, comma separated; empty reads every namespace the token may list |
Network egress
Section intitulée « Network egress »Hosts the platform must be allowed to reach:
<kubernetes-api-host>