diff --git a/client/client.gen.go b/client/client.gen.go index 14fef4b..c897acf 100644 --- a/client/client.gen.go +++ b/client/client.gen.go @@ -1434,6 +1434,9 @@ type Key struct { // Fingerprint The Key fingerprint (sha256 hash of the DER representation of the key). Fingerprint string `json:"fingerprint"` + // IsAuthorized If this key has been authorized to be used to validate requests coming from an Agent. + IsAuthorized bool `json:"is_authorized"` + // PublicKey A pcks8 RSA ublic key PEM encoded. PublicKey string `json:"public_key"` } diff --git a/docs/openapi.json b/docs/openapi.json index 34efad3..4caaf86 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -2,7 +2,7 @@ "openapi": "3.0.0", "info": { "title": "Humanitec API", - "version": "0.26.23", + "version": "0.26.24", "description": "# Introduction\nThe *Humanitec API* allows you to automate and integrate Humanitec into your developer and operational workflows.\nThe API is a REST based API. It is based around a set of concepts:\n\n* Core\n* External Resources\n* Sets and Deltas\n\n## Authentication\n\nAlmost all requests made to the Humanitec API require Authentication. See our [Developer Docs on API Authentication](https://developer.humanitec.com/platform-orchestrator/reference/api-references/#authentication) for instructions.\n\n## Content Types\nThe Humanitec API, unless explicitly specified, only accepts content types of `application/json` and will always return valid `application/json` or an empty response.\n\n## Response Codes\n### Success\nAny response code in the `2xx` range should be regarded as success.\n\n| **Code** | **Meaning** |\n|----------|-------------------------------------|\n| `200` | Success |\n| `201` | Success, a new resource was created |\n| `204` | Success, but no content in response |\n\n_Note: We plan to simplify the interface by replacing 201 with 200 status codes._\n\n### Failure\nAny response code in the `4xx` range should be regarded as an error that can be rectified by the client. `5xx` error codes indicate errors that cannot be corrected by the client.\n\n| **Code** | **Meaning** |\n|----------|-----------------------------------------------------------------------------------------------------------------------|\n| `400` | General error. (Body will contain details) |\n| `401` | Attempt to access protected resource without `Authorization` Header. |\n| `403` | The `Bearer` or `JWT` does not grant access to the requested resource. |\n| `404` | Resource not found. |\n| `405` | Method not allowed |\n| `409` | Conflict. Usually indicated a resource with that ID already exists. |\n| `422` | Unprocessable Entity. The body was not valid JSON, was empty or contained an object different from what was expected. |\n| `429` | Too many requests - request rate limit has been reached. |\n| `500` | Internal Error. If it occurs repeatedly, contact support. |\n", "contact": { "name": "Humanitec Support", @@ -13183,6 +13183,11 @@ "example": "2022-06-22T09:37:23.523Z", "format": "date-time", "description": "Time when the Key should be replaced (2 years after its creation)." + }, + "is_authorized": { + "type": "boolean", + "description": "If this key has been authorized to be used to validate requests coming from an Agent.", + "example": true } }, "required": [ @@ -13190,7 +13195,8 @@ "public_key", "created_at", "created_by", - "expired_at" + "expired_at", + "is_authorized" ] }, "KeyCreateBody": {