Connector [accessrequests.alauda.io/v1alpha1]
- 描述
- AccessRequest represents a subject's access application for a specific Connector, scoped to the lifecycle of a context object (Pod). It tracks matched AccessPolicies, approval check states, and authorization status via conditions.
- 类型
object
规格
.spec
- 描述
- AccessRequestSpec defines the desired state of AccessRequest.
- 类型
object- 必填
connectorRefcontextsubject
.spec.connectorRef
- 描述
- ConnectorRef references the target Connector in the same namespace. Only Name is required; Namespace is always the same as the AccessRequest.
- 类型
object
.spec.context
- 描述
- Context provides lifecycle context for this request. Currently only Kind=Pod is supported.
- 类型
object- 必填
objectRef
.spec.context.objectRef
- 描述
- ObjectRef points to the lifecycle object (e.g., a Pod). Currently only Kind=Pod is supported.
- 类型
object
.spec.subject
- 描述
- Subject is the identity requesting access (typically a ServiceAccount).
- 类型
object- 必填
kindname
.status
- 描述
- AccessRequestStatus records the observed state of AccessRequest.
- 类型
object
.status.annotations
- 描述
- Annotations is additional Status fields for the Resource to save some additional State as well as convey more information to the user. This is roughly akin to Annotations on any k8s resource, just the reconciler conveying richer information outwards.
- 类型
object
.status.conditions
- 描述
- Conditions the latest available observations of a resource's current state.
- 类型
array
.status.conditions[]
- 描述
- Condition defines a readiness condition for a Knative resource. See: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties
- 类型
object- 必填
statustype
.status.policies
- 描述
- Policies holds the matched AccessPolicy status list. Full AccessPolicy snapshots are stored to prevent policy changes from affecting in-flight authorization decisions.
- 类型
array
.status.policies[]
- 描述
- AccessPolicyMatchedStatus records a matched AccessPolicy and its check results.
- 类型
object- 必填
namepolicySpec
.status.policies[].matchedChecks
- 描述
- MatchedChecks records the matched Check Duck Type resources and their states.
- 类型
array
.status.policies[].matchedChecks[]
- 描述
- MatchedCheck records one matched Check Duck Type resource instance.
- 类型
object- 必填
conditionnameref
.status.policies[].matchedChecks[].condition
- 描述
- Condition records the computed approval condition of this check.
- 类型
object- 必填
statustype
.status.policies[].matchedChecks[].ref
- 描述
- Ref identifies the matched Check Duck Type resource instance.
- 类型
object
.status.policies[].permissionSync
- 描述
- PermissionSync records policy-level permission synchronization condition.
- 类型
object- 必填
lastTransitionTimemessagereasonstatustype
.status.policies[].policySpec
- 描述
- PolicySpec is the full AccessPolicy spec snapshot at match time.
- 类型
object
.status.policies[].policySpec.checkGrantedPermission
- 描述
- CheckGrantedPermission defines permissions granted only after approval checks pass.
- 类型
object- 必填
spec
.status.policies[].policySpec.checkGrantedPermission.spec
- 描述
- Spec contains the check rules and the permissions to grant after all checks pass.
- 类型
object- 必填
checksroleTemplate
.status.policies[].policySpec.checkGrantedPermission.spec.checks
- 描述
- Checks is the list of approval check rules.
- 类型
array
.status.policies[].policySpec.checkGrantedPermission.spec.checks[]
- 描述
- CheckRule defines a check rule that must pass for a permission to be granted. it contains either a reference to a CheckRuleSpec stored in a ConfigMap or the CheckRuleSpec itself. you can specify either Ref or Spec, but not both.
- 类型
object- 必填
name
.status.policies[].policySpec.checkGrantedPermission.spec.checks[].ref
- 描述
- Ref is a reference to a CheckRuleSpec stored in a ConfigMap.
- 类型
object- 必填
configMap
.status.policies[].policySpec.checkGrantedPermission.spec.checks[].ref.configMap
- 描述
- ConfigMap references the ConfigMap containing the CheckRuleSpec.
- 类型
object
.status.policies[].policySpec.checkGrantedPermission.spec.checks[].spec
- 描述
- Spec contains the check rule specification.
- 类型
object- 必填
selector
.status.policies[].policySpec.checkGrantedPermission.spec.checks[].spec.selector
- 描述
- Selector specifies how to find the Check Duck Type resource.
- 类型
object- 必填
objectRef
.status.policies[].policySpec.checkGrantedPermission.spec.checks[].spec.selector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.status.policies[].policySpec.checkGrantedPermission.spec.checks[].spec.selector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.status.policies[].policySpec.checkGrantedPermission.spec.checks[].spec.selector.matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.status.policies[].policySpec.checkGrantedPermission.spec.checks[].spec.selector.matchExpressions[].values[]
- 类型
string
.status.policies[].policySpec.checkGrantedPermission.spec.checks[].spec.selector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.status.policies[].policySpec.checkGrantedPermission.spec.checks[].spec.selector.objectRef
- 描述
- ObjectRef specifies the reference to the object to check against. kind and apiVersion are required to distinguish different duck types
- 类型
object
.status.policies[].policySpec.checkGrantedPermission.spec.checks[].spec.state
- 描述
- State configures how the check result is computed. If empty, the default duck-type field status.state is used.
- 类型
object
.status.policies[].policySpec.checkGrantedPermission.spec.roleTemplate
- 描述
- RoleTemplate defines the rules for the generated Role.
- 类型
object
.status.policies[].policySpec.checkGrantedPermission.spec.roleTemplate.ref
- 描述
- Ref specifies a reference to a RoleTemplate
- 类型
object
.status.policies[].policySpec.checkGrantedPermission.spec.roleTemplate.ref.configMap
- 描述
- ConfigMap specifies a local reference to a ConfigMap whose data["rules"] contains the YAML-encoded list of rbacv1.PolicyRule entries. Only ConfigMaps in the connectors system namespace are supported.
- 类型
object
.status.policies[].policySpec.connector
- 描述
- Connector specifies which Connectors this policy applies to. If empty, the policy applies to all Connectors in the namespace.
- 类型
object
.status.policies[].policySpec.connector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.status.policies[].policySpec.connector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.status.policies[].policySpec.connector.matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.status.policies[].policySpec.connector.matchExpressions[].values[]
- 类型
string
.status.policies[].policySpec.connector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.status.policies[].policySpec.connector.names
- 描述
- Names is an explicit list of resource names to match.
- 类型
array
.status.policies[].policySpec.connector.names[]
- 类型
string
.status.policies[].policySpec.defaultPermission
- 描述
- DefaultPermission defines the Role and RoleBinding automatically granted without any approval check.
- 类型
object- 必填
bindingTemplateroleTemplate
.status.policies[].policySpec.defaultPermission.bindingTemplate
- 描述
- BindingTemplate defines the subjects for the generated RoleBinding.
- 类型
object
.status.policies[].policySpec.defaultPermission.bindingTemplate.serviceAccounts
- 描述
- ServiceAccounts is the list of service account templates to bind.
- 类型
array
.status.policies[].policySpec.defaultPermission.bindingTemplate.serviceAccounts[]
- 描述
- ServiceAccountTemplate defines a template for binding ServiceAccounts. it extends rbacv1.Subject with dynamic label-based selectors.
- 类型
object
.status.policies[].policySpec.defaultPermission.bindingTemplate.serviceAccounts[].names
- 描述
- Names is the list of service account names to bind.
- 类型
array
.status.policies[].policySpec.defaultPermission.bindingTemplate.serviceAccounts[].names[]
- 类型
string
.status.policies[].policySpec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector
- 描述
- NamespaceSelector selects Namespaces by label and/or name.
- 类型
object
.status.policies[].policySpec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.matchExpressions
- 描述
- matchExpressions is a list of label selector requirements. The requirements are ANDed.
- 类型
array
.status.policies[].policySpec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.matchExpressions[]
- 描述
- A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
- 类型
object- 必填
keyoperator
.status.policies[].policySpec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.matchExpressions[].values
- 描述
- values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
- 类型
array
.status.policies[].policySpec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.matchExpressions[].values[]
- 类型
string
.status.policies[].policySpec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.matchLabels
- 描述
- matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
- 类型
object
.status.policies[].policySpec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.names
- 描述
- Names is an explicit list of resource names to match.
- 类型
array
.status.policies[].policySpec.defaultPermission.bindingTemplate.serviceAccounts[].namespaceSelector.names[]
- 类型
string
.status.policies[].policySpec.defaultPermission.roleTemplate
- 描述
- RoleTemplate defines the rules to include in the generated Role.
- 类型
object
.status.policies[].policySpec.defaultPermission.roleTemplate.ref
- 描述
- Ref specifies a reference to a RoleTemplate
- 类型
object
.status.policies[].policySpec.defaultPermission.roleTemplate.ref.configMap
- 描述
- ConfigMap specifies a local reference to a ConfigMap whose data["rules"] contains the YAML-encoded list of rbacv1.PolicyRule entries. Only ConfigMaps in the connectors system namespace are supported.
- 类型
object
API 端点
可用的 API 端点如下:
/apis/connectors.alauda.io/v1alpha1/namespaces/{namespace}/accessrequestsDELETE: delete collection of AccessRequestGET: list objects of kind AccessRequestPOST: create a new AccessRequest
/apis/connectors.alauda.io/v1alpha1/namespaces/{namespace}/accessrequests/{name}DELETE: delete the specified AccessRequestGET: read the specified AccessRequestPATCH: partially update the specified AccessRequestPUT: replace the specified AccessRequest
/apis/connectors.alauda.io/v1alpha1/namespaces/{namespace}/accessrequests/{name}/statusGET: read status of the specified AccessRequestPATCH: partially update status of the specified AccessRequestPUT: replace status of the specified AccessRequest
/apis/connectors.alauda.io/v1alpha1/namespaces/{namespace}/accessrequests
- HTTP 方法
DELETE- 描述
- delete collection of AccessRequest
- HTTP 响应
- HTTP 方法
GET- 描述
- list objects of kind AccessRequest
- HTTP 响应
- HTTP 方法
POST- 描述
- create a new AccessRequest
- 查询参数
- 请求体参数
- HTTP 响应
/apis/connectors.alauda.io/v1alpha1/namespaces/{namespace}/accessrequests/{name}
- HTTP 方法
DELETE- 描述
- delete the specified AccessRequest
- 查询参数
- HTTP 响应
- HTTP 方法
GET- 描述
- read the specified AccessRequest
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update the specified AccessRequest
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace the specified AccessRequest
- 查询参数
- 请求体参数
- HTTP 响应
/apis/connectors.alauda.io/v1alpha1/namespaces/{namespace}/accessrequests/{name}/status
- HTTP 方法
GET- 描述
- read status of the specified AccessRequest
- HTTP 响应
- HTTP 方法
PATCH- 描述
- partially update status of the specified AccessRequest
- 查询参数
- HTTP 响应
- HTTP 方法
PUT- 描述
- replace status of the specified AccessRequest
- 查询参数
- 请求体参数
- HTTP 响应