diff --git a/Dockerfile b/Dockerfile index fcedeab..eb33197 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,16 @@ +# Copyright 2024 Docker attest-provider authors +# +# 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 +# +# http://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. ARG BUILDERIMAGE="golang:1.22" ARG BASEIMAGE="gcr.io/distroless/static:nonroot" diff --git a/Makefile b/Makefile index 5523a2c..dc02277 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,16 @@ +# Copyright 2024 Docker attest-provider authors +# +# 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 +# +# http://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. REPOSITORY ?= docker/attest-provider IMG := $(REPOSITORY):dev diff --git a/main.go b/main.go index cc841b0..274b29e 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest-provider authors + + 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 + + http://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. +*/ package main import ( diff --git a/main_test.go b/main_test.go index f7fb812..3a69401 100644 --- a/main_test.go +++ b/main_test.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest-provider authors + + 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 + + http://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. +*/ package main import ( diff --git a/pkg/handler/mutate.go b/pkg/handler/mutate.go index e21ef5a..706b61a 100644 --- a/pkg/handler/mutate.go +++ b/pkg/handler/mutate.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest-provider authors + + 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 + + http://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. +*/ package handler import ( diff --git a/pkg/handler/validate.go b/pkg/handler/validate.go index fa78cf4..dadd06e 100644 --- a/pkg/handler/validate.go +++ b/pkg/handler/validate.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest-provider authors + + 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 + + http://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. +*/ package handler import ( diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index 87fcfa2..6bee4cb 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -1,3 +1,18 @@ +/* + Copyright 2024 Docker attest-provider authors + + 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 + + http://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. +*/ package utils import ( diff --git a/scripts/generate-tls-cert.sh b/scripts/generate-tls-cert.sh index a8586ab..4a165d7 100755 --- a/scripts/generate-tls-cert.sh +++ b/scripts/generate-tls-cert.sh @@ -1,5 +1,20 @@ #!/usr/bin/env bash +# Copyright 2024 Docker attest-provider authors + +# 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 +# +# http://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 set -o pipefail diff --git a/template/bash.txt b/template/bash.txt new file mode 100644 index 0000000..f6d9a61 --- /dev/null +++ b/template/bash.txt @@ -0,0 +1,13 @@ +# Copyright 2024 Docker attest-provider authors + +# 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 +# +# http://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. diff --git a/template/dockerfile.txt b/template/dockerfile.txt new file mode 100644 index 0000000..72a6fa8 --- /dev/null +++ b/template/dockerfile.txt @@ -0,0 +1,13 @@ +# Copyright 2024 Docker attest-provider authors +# +# 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 +# +# http://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. diff --git a/template/go.txt b/template/go.txt new file mode 100644 index 0000000..4752b96 --- /dev/null +++ b/template/go.txt @@ -0,0 +1,15 @@ +/* + Copyright 2024 Docker attest-provider authors + + 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 + + http://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. +*/ diff --git a/template/makefile.txt b/template/makefile.txt new file mode 100644 index 0000000..72a6fa8 --- /dev/null +++ b/template/makefile.txt @@ -0,0 +1,13 @@ +# Copyright 2024 Docker attest-provider authors +# +# 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 +# +# http://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.