Skip to content

Commit

Permalink
addresses openziti/ziti#2474 addds a generic network JWT for enrollment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpmartinez committed Oct 9, 2024
1 parent 26b4368 commit bfa1c60
Show file tree
Hide file tree
Showing 29 changed files with 3,130 additions and 0 deletions.
106 changes: 106 additions & 0 deletions client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2358,6 +2358,84 @@ paths:
meta:
apiEnrollmentVersion: 0.0.1
apiVersion: 0.0.1
/network-jwts:
get:
description: Returns a list of JWTs for trusting a network
tags:
- Enrollment
summary: Returns a list of JWTs suitable for bootstrapping network trust.
operationId: listNetworkJWTs
responses:
"200":
description: A list of network JWTs
schema:
$ref: '#/definitions/listNetworkJWTsEnvelope'
"400":
description: The supplied request contains invalid fields or could not be
parsed (json and non-json bodies). The error's code, message, and cause
fields can be inspected for further information
schema:
$ref: '#/definitions/apiErrorEnvelope'
examples:
application/json:
error:
args:
urlVars: {}
cause:
details:
context: (root)
field: (root)
property: fooField3
field: (root)
message: '(root): fooField3 is required'
type: required
value:
fooField: abc
fooField2: def
causeMessage: schema validation failed
code: COULD_NOT_VALIDATE
message: The supplied request contains an invalid document
requestId: ac6766d6-3a09-44b3-8d8a-1b541d97fdd9
meta:
apiEnrollmentVersion: 0.0.1
apiVersion: 0.0.1
"401":
description: The supplied session does not have the correct access rights
to request this resource
schema:
$ref: '#/definitions/apiErrorEnvelope'
examples:
application/json:
error:
args:
urlVars: {}
cause: ""
causeMessage: ""
code: UNAUTHORIZED
message: The request could not be completed. The session is not authorized
or the credentials are invalid
requestId: 0bfe7a04-9229-4b7a-812c-9eb3cc0eac0f
meta:
apiEnrollmentVersion: 0.0.1
apiVersion: 0.0.1
"429":
description: The resource requested is rate limited and the rate limit has
been exceeded
schema:
$ref: '#/definitions/apiErrorEnvelope'
examples:
application/json:
error:
args:
urlVars: {}
causeMessage: you have hit a rate limit in the requested operation
code: RATE_LIMITED
message: The resource is rate limited and the rate limit has been
exceeded. Please try again later
requestId: 270908d6-f2ef-4577-b973-67bec18ae376
meta:
apiEnrollmentVersion: 0.0.1
apiVersion: 0.0.1
/posture-response:
post:
security:
Expand Down Expand Up @@ -4774,6 +4852,16 @@ definitions:
$ref: '#/definitions/capabilities'
meta:
$ref: '#/definitions/meta'
listNetworkJWTsEnvelope:
type: object
required:
- meta
- data
properties:
data:
$ref: '#/definitions/networkJWTList'
meta:
$ref: '#/definitions/meta'
listProtocols:
type: object
additionalProperties:
Expand Down Expand Up @@ -4870,6 +4958,24 @@ definitions:
enum:
- ziti
- url
networkJWT:
description: A network JWT
type: object
allOf:
- type: object
required:
- name
- token
properties:
name:
type: string
token:
type: string
networkJWTList:
description: An array of network JWTs
type: array
items:
$ref: '#/definitions/networkJWT'
nonceChallenge:
type: object
required:
Expand Down
106 changes: 106 additions & 0 deletions management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10105,6 +10105,84 @@ paths:
name: id
in: path
required: true
/network-jwts:
get:
description: Returns a list of JWTs for trusting a network
tags:
- Enrollment
summary: Returns a list of JWTs suitable for bootstrapping network trust.
operationId: listNetworkJWTs
responses:
"200":
description: A list of network JWTs
schema:
$ref: '#/definitions/listNetworkJWTsEnvelope'
"400":
description: The supplied request contains invalid fields or could not be
parsed (json and non-json bodies). The error's code, message, and cause
fields can be inspected for further information
schema:
$ref: '#/definitions/apiErrorEnvelope'
examples:
application/json:
error:
args:
urlVars: {}
cause:
details:
context: (root)
field: (root)
property: fooField3
field: (root)
message: '(root): fooField3 is required'
type: required
value:
fooField: abc
fooField2: def
causeMessage: schema validation failed
code: COULD_NOT_VALIDATE
message: The supplied request contains an invalid document
requestId: ac6766d6-3a09-44b3-8d8a-1b541d97fdd9
meta:
apiEnrollmentVersion: 0.0.1
apiVersion: 0.0.1
"401":
description: The supplied session does not have the correct access rights
to request this resource
schema:
$ref: '#/definitions/apiErrorEnvelope'
examples:
application/json:
error:
args:
urlVars: {}
cause: ""
causeMessage: ""
code: UNAUTHORIZED
message: The request could not be completed. The session is not authorized
or the credentials are invalid
requestId: 0bfe7a04-9229-4b7a-812c-9eb3cc0eac0f
meta:
apiEnrollmentVersion: 0.0.1
apiVersion: 0.0.1
"429":
description: The resource requested is rate limited and the rate limit has
been exceeded
schema:
$ref: '#/definitions/apiErrorEnvelope'
examples:
application/json:
error:
args:
urlVars: {}
causeMessage: you have hit a rate limit in the requested operation
code: RATE_LIMITED
message: The resource is rate limited and the rate limit has been
exceeded. Please try again later
requestId: 270908d6-f2ef-4577-b973-67bec18ae376
meta:
apiEnrollmentVersion: 0.0.1
apiVersion: 0.0.1
/posture-check-role-attributes:
get:
security:
Expand Down Expand Up @@ -18454,6 +18532,16 @@ definitions:
$ref: '#/definitions/identityTypeList'
meta:
$ref: '#/definitions/meta'
listNetworkJWTsEnvelope:
type: object
required:
- meta
- data
properties:
data:
$ref: '#/definitions/networkJWTList'
meta:
$ref: '#/definitions/meta'
listPostureCheckEnvelope:
type: object
required:
Expand Down Expand Up @@ -18634,6 +18722,24 @@ definitions:
items:
$ref: '#/definitions/namedRole'
x-omitempty: false
networkJWT:
description: A network JWT
type: object
allOf:
- type: object
required:
- name
- token
properties:
name:
type: string
token:
type: string
networkJWTList:
description: An array of network JWTs
type: array
items:
$ref: '#/definitions/networkJWT'
operatingSystem:
type: object
required:
Expand Down
105 changes: 105 additions & 0 deletions rest_client_api_client/enrollment/enrollment_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bfa1c60

Please sign in to comment.