From 6d08fa1f645c1ec252d3f60f08abb4403b020958 Mon Sep 17 00:00:00 2001 From: Patrick Zheng Date: Tue, 28 Nov 2023 17:16:39 +0800 Subject: [PATCH] updated comments Signed-off-by: Patrick Zheng --- cmd/notation/internal/plugin/plugin.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/notation/internal/plugin/plugin.go b/cmd/notation/internal/plugin/plugin.go index ae94352c4..498ded339 100644 --- a/cmd/notation/internal/plugin/plugin.go +++ b/cmd/notation/internal/plugin/plugin.go @@ -24,8 +24,11 @@ import ( // MaxPluginSourceBytes specifies the limit on how many bytes are allowed in the // server's response to the download from URL request. +// // It also specifies the limit of a potentail plugin executable file in a // .tar.gz or .zip file. +// +// The plugin source size must be strictly less than this value. var MaxPluginSourceBytes int64 = 256 * 1024 * 1024 // 256 MiB // PluginSourceType is an enum for plugin source