Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions specs/policy/attributes/attributes.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1880,6 +1880,52 @@ components:
- obligationValue
- action
additionalProperties: false
policy.attributes.AttributeValueSubjectMappingRequest:
type: object
properties:
actions:
type: array
items:
$ref: '#/components/schemas/policy.Action'
title: actions
minItems: 1
description: |+
Required. The actions permitted by subjects in this mapping.
Action name or ID must not be empty if provided:
```
this.all(item, item.name != '' || item.id != '')
```

existingSubjectConditionSetId:
type: string
title: existing_subject_condition_set_id
format: uuid
description: Reuse an existing SubjectConditionSet.
newSubjectConditionSet:
title: new_subject_condition_set
description: Create a new SubjectConditionSet.
$ref: '#/components/schemas/policy.subjectmapping.SubjectConditionSetCreate'
namespaceId:
type: string
title: namespace_id
format: uuid
namespaceFqn:
type: string
title: namespace_fqn
minLength: 1
format: uri
metadata:
title: metadata
description: Optional. Common metadata for the subject mapping.
$ref: '#/components/schemas/common.MetadataMutable'
title: AttributeValueSubjectMappingRequest
additionalProperties: false
description: |+
Exactly one of existing_subject_condition_set_id or new_subject_condition_set must be provided:
```
(this.existing_subject_condition_set_id != '') != has(this.new_subject_condition_set)
```

policy.attributes.AttributesSort:
type: object
properties:
Expand Down Expand Up @@ -1981,6 +2027,15 @@ components:
description: |-
Optional
Existing obligation values to trigger for the newly created attribute value.
subjectMappings:
type: array
items:
$ref: '#/components/schemas/policy.attributes.AttributeValueSubjectMappingRequest'
title: subject_mappings
maxItems: 250
description: |-
Optional
Subject mappings to associate with the newly created attribute value.
metadata:
title: metadata
description: |-
Expand Down Expand Up @@ -2632,6 +2687,24 @@ components:
description: Required
title: ValueKeyAccessServer
additionalProperties: false
policy.subjectmapping.SubjectConditionSetCreate:
type: object
properties:
subjectSets:
type: array
items:
$ref: '#/components/schemas/policy.SubjectSet'
title: subject_sets
minItems: 1
description: Required
metadata:
title: metadata
description: |-
Optional
Common metadata
$ref: '#/components/schemas/common.MetadataMutable'
title: SubjectConditionSetCreate
additionalProperties: false
connect-protocol-version:
type: number
title: Connect-Protocol-Version
Expand Down
33 changes: 32 additions & 1 deletion specs/policy/keymanagement/key_management.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -480,16 +480,47 @@ components:
type: string
title: name
minLength: 1
description: |-
DEPRECATED, please use the NameManager and specify manager + name together.
Using this without manager could result in non-deterministic responses.
deprecated: true
title: name
required:
- name
- properties:
nameManager:
title: name_manager
description: Search by name and manager.
$ref: '#/components/schemas/policy.keymanagement.GetProviderConfigRequest.NameManager'
title: name_manager
required:
- nameManager
properties:
manager:
type: string
title: manager
description: Optional - filter by manager type when searching by name
description: |-
DEPRECATED, please use the NameManager and specify manager + name together.
Not populating manager when searching by name could result in non-deterministic responses.
Optional - filter by manager type when searching by name
deprecated: true
title: GetProviderConfigRequest
additionalProperties: false
policy.keymanagement.GetProviderConfigRequest.NameManager:
type: object
properties:
name:
type: string
title: name
minLength: 1
description: The name of the key provider
manager:
type: string
title: manager
minLength: 1
description: The type of key manager.
title: NameManager
additionalProperties: false
policy.keymanagement.GetProviderConfigResponse:
type: object
properties:
Expand Down