socialweb.computer

Request and provide VMs on an atproto compute market.

lexicons and xrpc

lexicon

com.publicdomainrelay.temp.cluster.listKubeconfigs

query HTTP GET /xrpc/com.publicdomainrelay.temp.cluster.listKubeconfigs

The gateway lists the kubeconfigs issued for the named cluster of the calling account: one ClusterClientCertificate record per kubeconfig, revoked ones included. The account is the verified token's iss. No key or certificate is returned.

definitions: #kubeconfigItem

parameters

parametertypedescription
name *string
The cluster label of the calling account.

output

encoding application/json

fieldtypedescription
kubeconfigs *array of #kubeconfigItem

errors

errordescription
InvalidRequestThe request is malformed.
UnauthorizedMissing or invalid service-auth token.
ClusterNotFoundThis account has no cluster of that name.
ClusterUnavailable503: the gateway could not resolve the token issuer's signing key in time. Retry.
InternalError500: a failure the gateway maps to no named error.

#kubeconfigItem object

fieldtypedescription
serial *string
The client certificate serial, lowercase hex. revokeKubeconfig takes it.
createdAtstring datetime
notAfter *string
The certificate's NotAfter (RFC 3339).
noExpiryboolean
Issued with noExpiry (or ttlSeconds 0): it ends only by revocation.
revokedboolean
revokedAtstring

used in

no page of these docs names it yet.

raw schema: lexicons/com/publicdomainrelay/temp/cluster/listKubeconfigs.json
{
  "lexicon": 1,
  "id": "com.publicdomainrelay.temp.cluster.listKubeconfigs",
  "defs": {
    "main": {
      "type": "query",
      "description": "The gateway lists the kubeconfigs issued for the named cluster of the calling account: one ClusterClientCertificate record per kubeconfig, revoked ones included. The account is the verified token's iss. No key or certificate is returned.",
      "parameters": {
        "type": "params",
        "required": [
          "name"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The cluster label of the calling account."
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "kubeconfigs"
          ],
          "properties": {
            "kubeconfigs": {
              "type": "array",
              "items": {
                "type": "ref",
                "ref": "#kubeconfigItem"
              }
            }
          }
        }
      },
      "errors": [
        {
          "name": "InvalidRequest",
          "description": "The request is malformed."
        },
        {
          "name": "Unauthorized",
          "description": "Missing or invalid service-auth token."
        },
        {
          "name": "ClusterNotFound",
          "description": "This account has no cluster of that name."
        },
        {
          "name": "ClusterUnavailable",
          "description": "503: the gateway could not resolve the token issuer's signing key in time. Retry."
        },
        {
          "name": "InternalError",
          "description": "500: a failure the gateway maps to no named error."
        }
      ]
    },
    "kubeconfigItem": {
      "type": "object",
      "required": [
        "serial",
        "notAfter"
      ],
      "properties": {
        "serial": {
          "type": "string",
          "description": "The client certificate serial, lowercase hex. revokeKubeconfig takes it."
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "notAfter": {
          "type": "string",
          "description": "The certificate's NotAfter (RFC 3339)."
        },
        "noExpiry": {
          "type": "boolean",
          "description": "Issued with noExpiry (or ttlSeconds 0): it ends only by revocation."
        },
        "revoked": {
          "type": "boolean"
        },
        "revokedAt": {
          "type": "string"
        }
      }
    }
  }
}