diff --git a/.golangci.yml b/.golangci.yml
index 6194bf2dc..1b9eaa9b0 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -19,9 +19,17 @@ linters:
- unparam
- unused
- structcheck
+ - goheader
+
+linters-settings:
+ goheader:
+ values:
+ regexp:
+ copyright-holder: Copyright \(c\) (20\d\d\-20\d\d)|2021|({{year}})
+ template-path: .license.tmpl
service:
- golangci-lint-version: 1.27.0 # use the fixed version to not introduce new linters unexpectedly
+ golangci-lint-version: 1.43.0 # use the fixed version to not introduce new linters unexpectedly
issues:
exclude-use-default: false
@@ -36,3 +44,4 @@ issues:
run:
skip-dirs:
- pkg/clientgen
+ - pkg/apis/networking.gke.io
diff --git a/.license.tmpl b/.license.tmpl
new file mode 100644
index 000000000..7e540df15
--- /dev/null
+++ b/.license.tmpl
@@ -0,0 +1,15 @@
+This file is part of MinIO Console Server
+{{copyright-holder}} MinIO, Inc.
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
diff --git a/Makefile b/Makefile
index 6d9e637ab..4b306626d 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ k8sdev:
getdeps:
@mkdir -p ${GOPATH}/bin
- @which golangci-lint 1>/dev/null || (echo "Installing golangci-lint" && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.40.1)
+ @which golangci-lint 1>/dev/null || (echo "Installing golangci-lint" && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.43.0)
verifiers: getdeps fmt lint
diff --git a/cluster/cluster.go b/cluster/cluster.go
index 63aeff413..3b09bfebb 100644
--- a/cluster/cluster.go
+++ b/cluster/cluster.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/cluster/config.go b/cluster/config.go
index cbac5c167..7c4e09dbf 100644
--- a/cluster/config.go
+++ b/cluster/config.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/cluster/const.go b/cluster/const.go
index d686f119f..a4fe77fa4 100644
--- a/cluster/const.go
+++ b/cluster/const.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/cluster/http_client.go b/cluster/http_client.go
index 98394492a..1eca14aca 100644
--- a/cluster/http_client.go
+++ b/cluster/http_client.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/cmd/console/app_commands_noop.go b/cmd/console/app_commands_noop.go
index 17b422386..576dea507 100644
--- a/cmd/console/app_commands_noop.go
+++ b/cmd/console/app_commands_noop.go
@@ -1,6 +1,3 @@
-//go:build !operator
-// +build !operator
-
// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
@@ -17,6 +14,9 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
+//go:build !operator
+// +build !operator
+
package main
import (
diff --git a/hack/header.go.txt b/hack/header.go.txt
new file mode 100644
index 000000000..6611a5f69
--- /dev/null
+++ b/hack/header.go.txt
@@ -0,0 +1,15 @@
+// This file is part of MinIO Console Server
+// Copyright (c) 2021 MinIO, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh
index 7c51a116d..524063c2d 100755
--- a/hack/update-codegen.sh
+++ b/hack/update-codegen.sh
@@ -1,18 +1,4 @@
#!/bin/bash
-#
-# Copyright 2020 Google LLC
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
set -o errexit
set -o nounset
@@ -20,10 +6,7 @@ set -o pipefail
SCRIPT_ROOT=$(dirname ${BASH_SOURCE})/..
-go get -d k8s.io/code-generator/...
-
-# Checkout code-generator to compatible version
-#(cd $GOPATH/src/k8s.io/code-generator && git checkout origin/release-1.14 -B release-1.14)
+GO111MODULE=off go get -d k8s.io/code-generator/...
REPOSITORY=github.com/minio/console
$GOPATH/src/k8s.io/code-generator/generate-groups.sh all \
diff --git a/k8s/tools.go b/k8s/tools.go
index 6d4895005..7b177b008 100644
--- a/k8s/tools.go
+++ b/k8s/tools.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/operatorapi/auth/operator_test.go b/operatorapi/auth/operator_test.go
index c2533e1ad..f6e6b296d 100644
--- a/operatorapi/auth/operator_test.go
+++ b/operatorapi/auth/operator_test.go
@@ -1,3 +1,19 @@
+// This file is part of MinIO Console Server
+// Copyright (c) 2021 MinIO, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+
package auth
import (
diff --git a/operatorapi/configure_operator.go b/operatorapi/configure_operator.go
index 490d7fedc..1298c462c 100644
--- a/operatorapi/configure_operator.go
+++ b/operatorapi/configure_operator.go
@@ -1,5 +1,3 @@
-// This file is safe to edit. Once it exists it will not be overwritten
-
// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
diff --git a/operatorapi/error.go b/operatorapi/error.go
index 99f9cf276..cf3e89bbe 100644
--- a/operatorapi/error.go
+++ b/operatorapi/error.go
@@ -1,3 +1,19 @@
+// This file is part of MinIO Console Server
+// Copyright (c) 2021 MinIO, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+
package operatorapi
import (
diff --git a/operatorapi/k8s_client.go b/operatorapi/k8s_client.go
index 7b68c6026..62f76e454 100644
--- a/operatorapi/k8s_client.go
+++ b/operatorapi/k8s_client.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/operatorapi/operator_client.go b/operatorapi/operator_client.go
index b9fbab3ce..92f6fb50c 100644
--- a/operatorapi/operator_client.go
+++ b/operatorapi/operator_client.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/operatorapi/operator_namespaces.go b/operatorapi/operator_namespaces.go
index f5bbaf7d2..4f6362c50 100644
--- a/operatorapi/operator_namespaces.go
+++ b/operatorapi/operator_namespaces.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/operatorapi/operator_tenants.go b/operatorapi/operator_tenants.go
index 08020399e..9ea591c34 100644
--- a/operatorapi/operator_tenants.go
+++ b/operatorapi/operator_tenants.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/operatorapi/operator_tenants_helper.go b/operatorapi/operator_tenants_helper.go
index 4c6a75a7d..77fb592f3 100644
--- a/operatorapi/operator_tenants_helper.go
+++ b/operatorapi/operator_tenants_helper.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/operatorapi/operator_volumes.go b/operatorapi/operator_volumes.go
index 56f80cd83..41c73cbf5 100644
--- a/operatorapi/operator_volumes.go
+++ b/operatorapi/operator_volumes.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/operatorapi/resource_quota.go b/operatorapi/resource_quota.go
index c58d3df74..4aae5b658 100644
--- a/operatorapi/resource_quota.go
+++ b/operatorapi/resource_quota.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/operatorapi/resource_quota_test.go b/operatorapi/resource_quota_test.go
index a3429d7aa..28de95a6e 100644
--- a/operatorapi/resource_quota_test.go
+++ b/operatorapi/resource_quota_test.go
@@ -1,3 +1,19 @@
+// This file is part of MinIO Console Server
+// Copyright (c) 2021 MinIO, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+
package operatorapi
import (
diff --git a/pkg/kes/kes.go b/pkg/kes/kes.go
index e9fff1b83..8b6e38642 100644
--- a/pkg/kes/kes.go
+++ b/pkg/kes/kes.go
@@ -1,3 +1,19 @@
+// This file is part of MinIO Console Server
+// Copyright (c) 2021 MinIO, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+
package kes
import (
diff --git a/pkg/subnet/config.go b/pkg/subnet/config.go
index 94a087c48..cce3becb7 100644
--- a/pkg/subnet/config.go
+++ b/pkg/subnet/config.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/pkg/subnet/config_test.go b/pkg/subnet/config_test.go
index 83d20582f..348bfb622 100644
--- a/pkg/subnet/config_test.go
+++ b/pkg/subnet/config_test.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/pkg/subnet/const.go b/pkg/subnet/const.go
index aabe6953c..881248232 100644
--- a/pkg/subnet/const.go
+++ b/pkg/subnet/const.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/pkg/subnet/subnet.go b/pkg/subnet/subnet.go
index 75c91dc4f..0ffd4be3c 100644
--- a/pkg/subnet/subnet.go
+++ b/pkg/subnet/subnet.go
@@ -160,7 +160,6 @@ func ParseLicense(client cluster.HTTPClientI, license string) (*licverifier.Lice
licenseInfo, err := GetLicenseInfoFromJWT(license, publicKeys)
if err != nil {
- fmt.Println(err)
return nil, err
}
diff --git a/pkg/subnet/utils.go b/pkg/subnet/utils.go
index 74367e052..fa9796a94 100644
--- a/pkg/subnet/utils.go
+++ b/pkg/subnet/utils.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/pkg/utils/parity_test.go b/pkg/utils/parity_test.go
index 60f0215e9..4cd98b0c9 100644
--- a/pkg/utils/parity_test.go
+++ b/pkg/utils/parity_test.go
@@ -1,7 +1,18 @@
// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
-// All rights reserved
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
package utils
diff --git a/portal-ui/assets.go b/portal-ui/assets.go
index 4129052b1..b2ec25dc0 100644
--- a/portal-ui/assets.go
+++ b/portal-ui/assets.go
@@ -1,3 +1,19 @@
+// This file is part of MinIO Console Server
+// Copyright (c) 2021 MinIO, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+
package portalui
import "embed"
diff --git a/portal-ui/src/screens/Console/DirectCSI/FormatDrives.tsx b/portal-ui/src/screens/Console/DirectCSI/FormatDrives.tsx
index 2b84922ed..4726284da 100644
--- a/portal-ui/src/screens/Console/DirectCSI/FormatDrives.tsx
+++ b/portal-ui/src/screens/Console/DirectCSI/FormatDrives.tsx
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/portal-ui/src/screens/Console/DirectCSI/FormatErrorsResult.tsx b/portal-ui/src/screens/Console/DirectCSI/FormatErrorsResult.tsx
index 8bba1133a..ee9833315 100644
--- a/portal-ui/src/screens/Console/DirectCSI/FormatErrorsResult.tsx
+++ b/portal-ui/src/screens/Console/DirectCSI/FormatErrorsResult.tsx
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/portal-ui/src/screens/Console/Policies/AddPolicy.tsx b/portal-ui/src/screens/Console/Policies/AddPolicy.tsx
index 177e60fcb..82f2c78f9 100644
--- a/portal-ui/src/screens/Console/Policies/AddPolicy.tsx
+++ b/portal-ui/src/screens/Console/Policies/AddPolicy.tsx
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/portal-ui/src/screens/Console/Policies/DeletePolicy.tsx b/portal-ui/src/screens/Console/Policies/DeletePolicy.tsx
index 5270be462..2c8f74f1b 100644
--- a/portal-ui/src/screens/Console/Policies/DeletePolicy.tsx
+++ b/portal-ui/src/screens/Console/Policies/DeletePolicy.tsx
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/portal-ui/src/screens/Console/Policies/ListPolicies.tsx b/portal-ui/src/screens/Console/Policies/ListPolicies.tsx
index dbaa4a8e4..5b90fe454 100644
--- a/portal-ui/src/screens/Console/Policies/ListPolicies.tsx
+++ b/portal-ui/src/screens/Console/Policies/ListPolicies.tsx
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/portal-ui/src/screens/Console/Policies/PolicySelectors.tsx b/portal-ui/src/screens/Console/Policies/PolicySelectors.tsx
index 9a9c79bd7..8e2dfd8ce 100644
--- a/portal-ui/src/screens/Console/Policies/PolicySelectors.tsx
+++ b/portal-ui/src/screens/Console/Policies/PolicySelectors.tsx
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/portal-ui/src/screens/Console/Policies/types.ts b/portal-ui/src/screens/Console/Policies/types.ts
index cf09a01cc..69d42c207 100644
--- a/portal-ui/src/screens/Console/Policies/types.ts
+++ b/portal-ui/src/screens/Console/Policies/types.ts
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantYAML.tsx b/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantYAML.tsx
index b17adbbdd..9e564ebe6 100644
--- a/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantYAML.tsx
+++ b/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantYAML.tsx
@@ -1,4 +1,4 @@
-// This file is part of MinIO Kubernetes Cloud
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/restapi/admin_subnet.go b/restapi/admin_subnet.go
index b78126a94..e079e01f1 100644
--- a/restapi/admin_subnet.go
+++ b/restapi/admin_subnet.go
@@ -257,7 +257,7 @@ func GetSubnetInfoResponse(session *models.Principal, client cluster.HTTPClientI
}
licenseInfo, err := subnet.ParseLicense(client, subnetTokens.License)
if err != nil {
- fmt.Println(err)
+ return nil, prepareError(err)
}
license := &models.License{
Email: licenseInfo.Email,
diff --git a/restapi/client-admin.go b/restapi/client-admin.go
index 8f97ff0e4..4c1da2ed0 100644
--- a/restapi/client-admin.go
+++ b/restapi/client-admin.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Orchestrator
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/restapi/client.go b/restapi/client.go
index f561c2cc3..c448741da 100644
--- a/restapi/client.go
+++ b/restapi/client.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Orchestrator
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/restapi/client_test.go b/restapi/client_test.go
index ffd24c66a..5f61cb80e 100644
--- a/restapi/client_test.go
+++ b/restapi/client_test.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Orchestrator
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify
diff --git a/restapi/error.go b/restapi/error.go
index 03971d4d1..2d181ef53 100644
--- a/restapi/error.go
+++ b/restapi/error.go
@@ -1,3 +1,19 @@
+// This file is part of MinIO Console Server
+// Copyright (c) 2021 MinIO, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see .
+
package restapi
import (
diff --git a/restapi/tls.go b/restapi/tls.go
index 2e95dd962..a8a6db9ab 100644
--- a/restapi/tls.go
+++ b/restapi/tls.go
@@ -1,4 +1,4 @@
-// This file is part of MinIO Orchestrator
+// This file is part of MinIO Console Server
// Copyright (c) 2021 MinIO, Inc.
//
// This program is free software: you can redistribute it and/or modify