Calls SPIRE server `spire-server entry create`

Changed on

Create registration entries

post/api/v1/spire/entries

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

Example request

{
  "entries": [
    {
      "id": "858da-34-50-b7-cacd98",
      "spiffe_id": {
        "path": "/ns/default",
        "trust_domain": "example.org"
      },
      "parent_id": {
        "path": "/ns/default",
        "trust_domain": "example.org"
      },
      "selectors": [
        {
          "type": "k8s_psat",
          "value": "agent_ns:spire"
        }
      ],
      "x509_svid_ttl": 12345,
      "created_at": 1725556278,
      "dns_names": [
        "example1.org"
      ],
      "expires_at": 12345,
      "federates_with": [
        "example1.org"
      ]
    }
  ]
}

Response

OK

Example response

{
  "results": [
    {
      "status": {
        "message": "OK"
      },
      "entry": {
        "id": "858da-34-50-b7-cacd98",
        "spiffe_id": {
          "path": "/ns/default",
          "trust_domain": "example.org"
        },
        "parent_id": {
          "path": "/ns/default",
          "trust_domain": "example.org"
        },
        "selectors": [
          {
            "type": "k8s_psat",
            "value": "agent_ns:spire"
          }
        ],
        "x509_svid_ttl": 12345,
        "created_at": 1725556278,
        "dns_names": [
          "example1.org"
        ],
        "expires_at": 12345,
        "federates_with": [
          "example1.org"
        ]
      }
    }
  ]
}

Changes

    • breaking

      the request's body type changed from no type to object

    • warning

      removed subschema #2 from the request body allOf list

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • info

      added the new optional request property

    • info

      added subschema #2 to the / response property allOf list for the response status

    • breaking

      added subschema #2 to the request body allOf list

    • breaking

      the request's body type changed from object to no type

    • warning

      removed the request property

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      removed subschema #2 from the / response property allOf list for the response status