MeshIdentities 정책 구성 참조
MeshIdentities 정책 구성 참조 (MeshIdentities Policy Configuration Reference)
이 문서는 Kuma MeshIdentity 정책의 구성 설정을 상세히 설명하는 참조 자료예요. JSON 스키마를 통해 제공자(bundled, Spire 등)와 인증서 설정 방법을 알려주고 있어요. MeshIdentity 정책을 이해하고 설정하는 데 필요한 핵심 내용을 담고 있으니 참고해 보세요.
출처: 문서
본문
구성
{
"description": "Spec is the specification of the Kuma MeshIdentity resource.",
"properties": {
"provider": {
"properties": {
"bundled": {
"description": "Bundled provides information about certificates that are generated by the control plane,\neither autogenerated or provided by the user.",
"properties": {
"autogenerate": {
"description": "Autogenerate configures the control plane to use self-signed certificates.",
"properties": {
"enabled": {
"type": "boolean"
}
},
"type": "object"
},
"ca": {
"description": "CA has configuration related to the CA",
"properties": {
"certificate": {
"description": "Certificate allows the user to specify a custom certificate.",
"properties": {
"envVar": {
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"file": {
"properties": {
"path": {
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
},
"insecureInline": {
"properties": {
"value": {
"type": "string"
}
},
"required": [
"value"
],
"type": "object"
},
"secretRef": {
"properties": {
"kind": {
"enum": [
"Secret"
],
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"kind",
"name"
],
"type": "object"
},
"type": {
"enum": [
"File",
"Secret",
"EnvVar",
"InsecureInline"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"privateKey": {
"description": "PrivateKey allows the user to specify a custom private key.",
"properties": {
"envVar": {
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"file": {
"properties": {
"path": {
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
},
"insecureInline": {
"properties": {
"value": {
"type": "string"
}
},
"required": [
"value"
],
"type": "object"
},
"secretRef": {
"properties": {
"kind": {
"enum": [
"Secret"
],
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"kind",
"name"
],
"type": "object"
},
"type": {
"enum": [
"File",
"Secret",
"EnvVar",
"InsecureInline"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"type": "object"
},
"certificateParameters": {
"description": "CertificateParameters allows users to define certificate generation parameters.",
"properties": {
"expiry": {
"type": "string"
}
},
"type": "object"
},
"insecureAllowSelfSigned": {
"description": "InsecureAllowSelfSigned allows users to enable the use of self-signed certificates.",
"type": "boolean"
},
"meshTrustCreation": {
"description": "MeshTrustCreation defines whether a MeshTrust resource should be automatically created\nfrom an existing MeshIdentity. If not defined, the control plane automatically generates a MeshTrust.",
"enum": [
"Enabled",
"Disabled"
],
"type": "string"
}
},
"type": "object"
},
"extension": {
"description": "Extension indicates that custom provider is used.",
"properties": {
"config": {
"description": "Config is a freeform configuration for the extension.",
"x-kubernetes-preserve-unknown-fields": true
},
"name": {
"description": "Name is the name of the extension provider.",
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"spire": {
"description": "Spire indicates that SPIRE is used for certificate delivery.",
"properties": {
"agent": {
"description": "Spire agent configuration",
"properties": {
"timeout": {
"description": "Connection timeout to the socket exposed by Spire agent\nDefault 1 second.",
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": {
"description": "Type specifies the type of certificate provider.",
"enum": [
"Bundled",
"Spire",
"Extension"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"selector": {
"properties": {
"dataplane": {
"properties": {
"matchLabels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object"
}
},
"type": "object"
},
"spiffeID": {
"properties": {
"path": {
"type": "string"
},
"trustDomain": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
관련 리소스
더 알아보기 (Learn more)
- MeshIdentity 번들 제공자로 신원을 발급하는 방법을 설명해요. — Issue identity with MeshIdentity bundled provider
- MeshIdentity Spire 제공자로 신원을 발급하는 방법을 설명해요. — Issue identity with MeshIdentity Spire provider
- 메시 서비스 리소스에 대한 참조 정보예요. — MeshService
- 메시 TLS 정책 설정에 대한 참조 자료예요. — MeshTLS
- SPIFFE ID 매처를 사용한 메시 트래픽 권한 정책을 설명해요. — MeshTrafficPermission with SPIFFE ID matchers