Rancher Integration API

The Rancher Integration API wires the KubeDB Platform together with a Rancher management cluster. It lets a site administrator sync Rancher users into a Rancher-managed organization, obtain the acerproxy Helm installation command, download the platform CA certificate, and mint Rancher proxy-server tokens. It also exposes an endpoint that returns NATS credentials for the authenticated Rancher user.

All routes live under the /api/v1/rancher prefix and require a valid bearer token.

Auth notes. The /rancher/org/{orgname}/... routes require site-admin privileges and a Rancher-managed organization (an org whose origin is Rancher). On a platform whose organizations are not Rancher-managed these routes return 500 with org isn't a rancher organization. POST /rancher/proxy-token requires site-admin only. GET /rancher/nats-cred requires a token in the Rancher-user context (injected by the server’s injectRancherUserInfo middleware).

/api/v1/rancher (Token)

MethodPathAuthDescription
GET/org/:orgname/sync/usersSite admin + Rancher-managed orgSync Rancher users for an org
GET/org/:orgname/acerproxySite admin + Rancher-managed orgACER proxy installation command
GET/org/:orgname/ca/downloadSite admin + Rancher-managed orgDownload CA certificate
POST/proxy-tokenSite adminCreate a Rancher proxy-server token
GET/nats-credToken (Rancher user)Get NATS credentials

Pages

  • Rancher Integration — user sync, acerproxy install command, CA download, proxy-server token, and NATS credentials.