Class FieldSelectorAttributes
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.authorization.v1.FieldSelectorAttributes
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<FieldSelectorAttributesBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class FieldSelectorAttributes extends Object implements io.fabric8.kubernetes.api.builder.Editable<FieldSelectorAttributesBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FieldSelectorAttributes()No args constructor for use in serializationFieldSelectorAttributes(String rawSelector, List<io.fabric8.kubernetes.api.model.FieldSelectorRequirement> requirements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldSelectorAttributesBuilderedit()Map<String,Object>getAdditionalProperties()StringgetRawSelector()rawSelector is the serialization of a field selector that would be included in a query parameter.List<io.fabric8.kubernetes.api.model.FieldSelectorRequirement>getRequirements()requirements is the parsed interpretation of a field selector.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetRawSelector(String rawSelector)rawSelector is the serialization of a field selector that would be included in a query parameter.voidsetRequirements(List<io.fabric8.kubernetes.api.model.FieldSelectorRequirement> requirements)requirements is the parsed interpretation of a field selector.FieldSelectorAttributesBuildertoBuilder()
-
-
-
Method Detail
-
getRawSelector
public String getRawSelector()
rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.
-
setRawSelector
public void setRawSelector(String rawSelector)
rawSelector is the serialization of a field selector that would be included in a query parameter. Webhook implementations are encouraged to ignore rawSelector. The kube-apiserver's *SubjectAccessReview will parse the rawSelector as long as the requirements are not present.
-
getRequirements
public List<io.fabric8.kubernetes.api.model.FieldSelectorRequirement> getRequirements()
requirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.
-
setRequirements
public void setRequirements(List<io.fabric8.kubernetes.api.model.FieldSelectorRequirement> requirements)
requirements is the parsed interpretation of a field selector. All requirements must be met for a resource instance to match the selector. Webhook implementations should handle requirements, but how to handle them is up to the webhook. Since requirements can only limit the request, it is safe to authorize as unlimited request if the requirements are not understood.
-
edit
public FieldSelectorAttributesBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<FieldSelectorAttributesBuilder>
-
toBuilder
public FieldSelectorAttributesBuilder toBuilder()
-
-