server: validate labels size to avoid dos
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
befd719812
commit
33f699bad4
3 changed files with 22 additions and 0 deletions
|
@ -720,6 +720,10 @@ func (s *Server) createSandboxContainer(ctx context.Context, containerID string,
|
|||
|
||||
labels := containerConfig.GetLabels()
|
||||
|
||||
if err := validateLabels(labels); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
metadata := containerConfig.GetMetadata()
|
||||
|
||||
kubeAnnotations := containerConfig.GetAnnotations()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue