diff --git a/.copywrite.hcl b/.copywrite.hcl index 5f27fbf8a9f..58f59c4ef7c 100644 --- a/.copywrite.hcl +++ b/.copywrite.hcl @@ -12,5 +12,12 @@ project { "ui/packages/consul-ui/app/utils/dom/event-target/**", "ui/packages/consul-ui/lib/rehype-prism/**", "ui/packages/consul-ui/lib/block-slots/**", + + # ignore specific test data files + "agent/uiserver/testdata/**" + + # generated files + "agent/structs/structs.deepcopy.go" + "agent/proxycfg/proxycfg.deepcopy.go" ] } diff --git a/agent/acl.go b/agent/acl.go index f3ba50cf4b7..381f2c028e4 100644 --- a/agent/acl.go +++ b/agent/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/acl_endpoint.go b/agent/acl_endpoint.go index af9f3a15d90..da838b1a646 100644 --- a/agent/acl_endpoint.go +++ b/agent/acl_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/acl_endpoint_test.go b/agent/acl_endpoint_test.go index d2822e39e9a..20c982492a7 100644 --- a/agent/acl_endpoint_test.go +++ b/agent/acl_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/acl_oss.go b/agent/acl_oss.go index 0a50dcda12a..aa505da1ef4 100644 --- a/agent/acl_oss.go +++ b/agent/acl_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/acl_test.go b/agent/acl_test.go index cc2249c6750..40662231ac3 100644 --- a/agent/acl_test.go +++ b/agent/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/ae/ae.go b/agent/ae/ae.go index 9b2841cc5bb..8c4d8c99729 100644 --- a/agent/ae/ae.go +++ b/agent/ae/ae.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package ae provides tools to synchronize state between local and remote consul servers. package ae diff --git a/agent/ae/ae_test.go b/agent/ae/ae_test.go index c719f1951c1..873cd4128db 100644 --- a/agent/ae/ae_test.go +++ b/agent/ae/ae_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ae import ( diff --git a/agent/ae/trigger.go b/agent/ae/trigger.go index 1aa5f458627..a320bda526d 100644 --- a/agent/ae/trigger.go +++ b/agent/ae/trigger.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ae // Trigger implements a non-blocking event notifier. Events can be diff --git a/agent/agent.go b/agent/agent.go index aa8422bdc23..d7963152851 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/agent_endpoint.go b/agent/agent_endpoint.go index 5f9d82cd446..bc35535194c 100644 --- a/agent/agent_endpoint.go +++ b/agent/agent_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/agent_endpoint_oss.go b/agent/agent_endpoint_oss.go index b54b9df99fa..48b9c439cac 100644 --- a/agent/agent_endpoint_oss.go +++ b/agent/agent_endpoint_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/agent_endpoint_oss_test.go b/agent/agent_endpoint_oss_test.go index d815bb45810..763a5a00604 100644 --- a/agent/agent_endpoint_oss_test.go +++ b/agent/agent_endpoint_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/agent_endpoint_test.go b/agent/agent_endpoint_test.go index 2c5ee9f3727..fad7f7d7e44 100644 --- a/agent/agent_endpoint_test.go +++ b/agent/agent_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/agent_oss.go b/agent/agent_oss.go index 39adbef81e6..4153c66a0bd 100644 --- a/agent/agent_oss.go +++ b/agent/agent_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/agent_test.go b/agent/agent_test.go index 90e14c795f4..441b939668f 100644 --- a/agent/agent_test.go +++ b/agent/agent_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/apiserver.go b/agent/apiserver.go index 044bf604125..a45e16a630b 100644 --- a/agent/apiserver.go +++ b/agent/apiserver.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/apiserver_test.go b/agent/apiserver_test.go index 72f8c6d6512..69188c42481 100644 --- a/agent/apiserver_test.go +++ b/agent/apiserver_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/auto-config/auto_config.go b/agent/auto-config/auto_config.go index 022240c19ad..b73951df70d 100644 --- a/agent/auto-config/auto_config.go +++ b/agent/auto-config/auto_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/auto-config/auto_config_oss.go b/agent/auto-config/auto_config_oss.go index 95b38aa056f..7944ea5d2d6 100644 --- a/agent/auto-config/auto_config_oss.go +++ b/agent/auto-config/auto_config_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/auto-config/auto_config_oss_test.go b/agent/auto-config/auto_config_oss_test.go index 6a318644fb2..b075ca7686b 100644 --- a/agent/auto-config/auto_config_oss_test.go +++ b/agent/auto-config/auto_config_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/auto-config/auto_config_test.go b/agent/auto-config/auto_config_test.go index b364a4fbd1f..dcb06741f5f 100644 --- a/agent/auto-config/auto_config_test.go +++ b/agent/auto-config/auto_config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/auto-config/auto_encrypt.go b/agent/auto-config/auto_encrypt.go index 8118d1312ce..59af662ee03 100644 --- a/agent/auto-config/auto_encrypt.go +++ b/agent/auto-config/auto_encrypt.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/auto-config/auto_encrypt_test.go b/agent/auto-config/auto_encrypt_test.go index 2036d7f2006..e4a01d0b217 100644 --- a/agent/auto-config/auto_encrypt_test.go +++ b/agent/auto-config/auto_encrypt_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/auto-config/config.go b/agent/auto-config/config.go index 94f45d1fc64..5845ec70df0 100644 --- a/agent/auto-config/config.go +++ b/agent/auto-config/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/auto-config/config_oss.go b/agent/auto-config/config_oss.go index a8048954a18..a51d30c6cb2 100644 --- a/agent/auto-config/config_oss.go +++ b/agent/auto-config/config_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/auto-config/config_translate.go b/agent/auto-config/config_translate.go index b5cb759b813..31aeb7cbdb2 100644 --- a/agent/auto-config/config_translate.go +++ b/agent/auto-config/config_translate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/auto-config/config_translate_test.go b/agent/auto-config/config_translate_test.go index ce73e3b71d8..9b37c9870e3 100644 --- a/agent/auto-config/config_translate_test.go +++ b/agent/auto-config/config_translate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/auto-config/mock_oss_test.go b/agent/auto-config/mock_oss_test.go index 0518753bbbe..6f10f99726e 100644 --- a/agent/auto-config/mock_oss_test.go +++ b/agent/auto-config/mock_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/auto-config/mock_test.go b/agent/auto-config/mock_test.go index 8c2f2f7ecba..6cefb92245d 100644 --- a/agent/auto-config/mock_test.go +++ b/agent/auto-config/mock_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/auto-config/persist.go b/agent/auto-config/persist.go index fcfd8cdb857..0abaa235451 100644 --- a/agent/auto-config/persist.go +++ b/agent/auto-config/persist.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/auto-config/run.go b/agent/auto-config/run.go index 136d4a8ae52..74a78fde9f0 100644 --- a/agent/auto-config/run.go +++ b/agent/auto-config/run.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/auto-config/server_addr.go b/agent/auto-config/server_addr.go index 98af4ae55ab..c70a6431fb3 100644 --- a/agent/auto-config/server_addr.go +++ b/agent/auto-config/server_addr.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/auto-config/tls.go b/agent/auto-config/tls.go index a26f7aaa6a0..67bdc027653 100644 --- a/agent/auto-config/tls.go +++ b/agent/auto-config/tls.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/auto-config/tls_test.go b/agent/auto-config/tls_test.go index bad66ba700e..b09ee295e60 100644 --- a/agent/auto-config/tls_test.go +++ b/agent/auto-config/tls_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autoconf import ( diff --git a/agent/cache-types/catalog_datacenters.go b/agent/cache-types/catalog_datacenters.go index b84d2a933a8..12da6e9878e 100644 --- a/agent/cache-types/catalog_datacenters.go +++ b/agent/cache-types/catalog_datacenters.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/catalog_datacenters_test.go b/agent/cache-types/catalog_datacenters_test.go index 23b923afc93..bef374d131c 100644 --- a/agent/cache-types/catalog_datacenters_test.go +++ b/agent/cache-types/catalog_datacenters_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/catalog_list_services.go b/agent/cache-types/catalog_list_services.go index 0324d4a6e1a..a605c743138 100644 --- a/agent/cache-types/catalog_list_services.go +++ b/agent/cache-types/catalog_list_services.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/catalog_list_services_test.go b/agent/cache-types/catalog_list_services_test.go index 90ea7be81aa..b5da270f962 100644 --- a/agent/cache-types/catalog_list_services_test.go +++ b/agent/cache-types/catalog_list_services_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/catalog_service_list.go b/agent/cache-types/catalog_service_list.go index 7e417cd2c28..521ed1d3b1a 100644 --- a/agent/cache-types/catalog_service_list.go +++ b/agent/cache-types/catalog_service_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/catalog_service_list_test.go b/agent/cache-types/catalog_service_list_test.go index 9eef36bbc5e..995f7e8b6c8 100644 --- a/agent/cache-types/catalog_service_list_test.go +++ b/agent/cache-types/catalog_service_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/catalog_services.go b/agent/cache-types/catalog_services.go index 0f5f7f8aa0e..21b472ba312 100644 --- a/agent/cache-types/catalog_services.go +++ b/agent/cache-types/catalog_services.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/catalog_services_test.go b/agent/cache-types/catalog_services_test.go index c28aa2a012c..8723b9015d7 100644 --- a/agent/cache-types/catalog_services_test.go +++ b/agent/cache-types/catalog_services_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/config_entry.go b/agent/cache-types/config_entry.go index 3c434c24f62..9748c176d10 100644 --- a/agent/cache-types/config_entry.go +++ b/agent/cache-types/config_entry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/config_entry_test.go b/agent/cache-types/config_entry_test.go index 50954f35cff..11b109d6634 100644 --- a/agent/cache-types/config_entry_test.go +++ b/agent/cache-types/config_entry_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/connect_ca_leaf.go b/agent/cache-types/connect_ca_leaf.go index 9bee39af7d7..fb5811042b6 100644 --- a/agent/cache-types/connect_ca_leaf.go +++ b/agent/cache-types/connect_ca_leaf.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/connect_ca_leaf_oss.go b/agent/cache-types/connect_ca_leaf_oss.go index 07de1e79355..949d4a1bc6a 100644 --- a/agent/cache-types/connect_ca_leaf_oss.go +++ b/agent/cache-types/connect_ca_leaf_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/cache-types/connect_ca_leaf_test.go b/agent/cache-types/connect_ca_leaf_test.go index 48e5a179246..ea1219fcfcc 100644 --- a/agent/cache-types/connect_ca_leaf_test.go +++ b/agent/cache-types/connect_ca_leaf_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/connect_ca_root.go b/agent/cache-types/connect_ca_root.go index deca68e31c2..0d6c8b700ca 100644 --- a/agent/cache-types/connect_ca_root.go +++ b/agent/cache-types/connect_ca_root.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/connect_ca_root_test.go b/agent/cache-types/connect_ca_root_test.go index 7fd23264cad..c1e906a8b81 100644 --- a/agent/cache-types/connect_ca_root_test.go +++ b/agent/cache-types/connect_ca_root_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/discovery_chain.go b/agent/cache-types/discovery_chain.go index 2d8cd1bea64..8f0f1779148 100644 --- a/agent/cache-types/discovery_chain.go +++ b/agent/cache-types/discovery_chain.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/discovery_chain_test.go b/agent/cache-types/discovery_chain_test.go index 62fe634e82e..13855987add 100644 --- a/agent/cache-types/discovery_chain_test.go +++ b/agent/cache-types/discovery_chain_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/exported_peered_services.go b/agent/cache-types/exported_peered_services.go index 21ff779f561..3e8f3362814 100644 --- a/agent/cache-types/exported_peered_services.go +++ b/agent/cache-types/exported_peered_services.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/exported_peered_services_test.go b/agent/cache-types/exported_peered_services_test.go index a946c329605..4848c2fce9d 100644 --- a/agent/cache-types/exported_peered_services_test.go +++ b/agent/cache-types/exported_peered_services_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/federation_state_list_gateways.go b/agent/cache-types/federation_state_list_gateways.go index c28ad3700d4..50658777b8d 100644 --- a/agent/cache-types/federation_state_list_gateways.go +++ b/agent/cache-types/federation_state_list_gateways.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/federation_state_list_gateways_test.go b/agent/cache-types/federation_state_list_gateways_test.go index 3be25f69afc..7aaad80ed3b 100644 --- a/agent/cache-types/federation_state_list_gateways_test.go +++ b/agent/cache-types/federation_state_list_gateways_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/gateway_services.go b/agent/cache-types/gateway_services.go index 02ae60b080b..030cec59ef8 100644 --- a/agent/cache-types/gateway_services.go +++ b/agent/cache-types/gateway_services.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/gateway_services_test.go b/agent/cache-types/gateway_services_test.go index e3c399cd244..babc30ead3c 100644 --- a/agent/cache-types/gateway_services_test.go +++ b/agent/cache-types/gateway_services_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/health_services.go b/agent/cache-types/health_services.go index 63e52470a10..dc1a5e6648a 100644 --- a/agent/cache-types/health_services.go +++ b/agent/cache-types/health_services.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/health_services_test.go b/agent/cache-types/health_services_test.go index d1524ca2c56..e3680eb2d5a 100644 --- a/agent/cache-types/health_services_test.go +++ b/agent/cache-types/health_services_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/intention_match.go b/agent/cache-types/intention_match.go index 3b4b519c72a..16671328fd2 100644 --- a/agent/cache-types/intention_match.go +++ b/agent/cache-types/intention_match.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/intention_match_test.go b/agent/cache-types/intention_match_test.go index ec313013f07..68a467a29d5 100644 --- a/agent/cache-types/intention_match_test.go +++ b/agent/cache-types/intention_match_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/intention_upstreams.go b/agent/cache-types/intention_upstreams.go index 80d657ebb88..b918a553526 100644 --- a/agent/cache-types/intention_upstreams.go +++ b/agent/cache-types/intention_upstreams.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/intention_upstreams_destination.go b/agent/cache-types/intention_upstreams_destination.go index 95130033641..8adba2d7e74 100644 --- a/agent/cache-types/intention_upstreams_destination.go +++ b/agent/cache-types/intention_upstreams_destination.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/intention_upstreams_destination_test.go b/agent/cache-types/intention_upstreams_destination_test.go index 660cdb6b419..d4f8602c7d7 100644 --- a/agent/cache-types/intention_upstreams_destination_test.go +++ b/agent/cache-types/intention_upstreams_destination_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/intention_upstreams_test.go b/agent/cache-types/intention_upstreams_test.go index a6f2e3aa096..6f695576d06 100644 --- a/agent/cache-types/intention_upstreams_test.go +++ b/agent/cache-types/intention_upstreams_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/node_services.go b/agent/cache-types/node_services.go index 9856b50180c..2b51de9f62f 100644 --- a/agent/cache-types/node_services.go +++ b/agent/cache-types/node_services.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/node_services_test.go b/agent/cache-types/node_services_test.go index 049ac3c249c..a1412bbe935 100644 --- a/agent/cache-types/node_services_test.go +++ b/agent/cache-types/node_services_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/norace_test.go b/agent/cache-types/norace_test.go index 93645410d1b..3f316d5d3ff 100644 --- a/agent/cache-types/norace_test.go +++ b/agent/cache-types/norace_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !race // +build !race diff --git a/agent/cache-types/options.go b/agent/cache-types/options.go index 5eb6cdd9b62..cbfa2ff178e 100644 --- a/agent/cache-types/options.go +++ b/agent/cache-types/options.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/peered_upstreams.go b/agent/cache-types/peered_upstreams.go index 6aa8a3e34a6..49997ecdf96 100644 --- a/agent/cache-types/peered_upstreams.go +++ b/agent/cache-types/peered_upstreams.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/peered_upstreams_test.go b/agent/cache-types/peered_upstreams_test.go index 7f8481ffc5e..1e9dc29fdf4 100644 --- a/agent/cache-types/peered_upstreams_test.go +++ b/agent/cache-types/peered_upstreams_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/peerings.go b/agent/cache-types/peerings.go index ebff1e90ccb..5a8e1a685d7 100644 --- a/agent/cache-types/peerings.go +++ b/agent/cache-types/peerings.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/peerings_test.go b/agent/cache-types/peerings_test.go index 6def5badd9d..954addfe52a 100644 --- a/agent/cache-types/peerings_test.go +++ b/agent/cache-types/peerings_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/prepared_query.go b/agent/cache-types/prepared_query.go index 5a5230c7c23..995214a1b45 100644 --- a/agent/cache-types/prepared_query.go +++ b/agent/cache-types/prepared_query.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/prepared_query_test.go b/agent/cache-types/prepared_query_test.go index c45386bd7ec..26ea4d4c0b0 100644 --- a/agent/cache-types/prepared_query_test.go +++ b/agent/cache-types/prepared_query_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/race_test.go b/agent/cache-types/race_test.go index 7848991f213..88dcf82a4c4 100644 --- a/agent/cache-types/race_test.go +++ b/agent/cache-types/race_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build race // +build race diff --git a/agent/cache-types/resolved_service_config.go b/agent/cache-types/resolved_service_config.go index 3065ab4eb3b..589afbcc6bd 100644 --- a/agent/cache-types/resolved_service_config.go +++ b/agent/cache-types/resolved_service_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/resolved_service_config_test.go b/agent/cache-types/resolved_service_config_test.go index a945597e101..4c8376447ad 100644 --- a/agent/cache-types/resolved_service_config_test.go +++ b/agent/cache-types/resolved_service_config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/rpc.go b/agent/cache-types/rpc.go index 750e5058bcb..905547d20fe 100644 --- a/agent/cache-types/rpc.go +++ b/agent/cache-types/rpc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import "context" diff --git a/agent/cache-types/service_checks.go b/agent/cache-types/service_checks.go index 3688db7e2ba..88a065c94b8 100644 --- a/agent/cache-types/service_checks.go +++ b/agent/cache-types/service_checks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/service_checks_test.go b/agent/cache-types/service_checks_test.go index f6b5a594de3..b936990d91a 100644 --- a/agent/cache-types/service_checks_test.go +++ b/agent/cache-types/service_checks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/service_dump.go b/agent/cache-types/service_dump.go index fccd4da8aec..3bab11239f0 100644 --- a/agent/cache-types/service_dump.go +++ b/agent/cache-types/service_dump.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/service_dump_test.go b/agent/cache-types/service_dump_test.go index b261a504609..8fe39e63b26 100644 --- a/agent/cache-types/service_dump_test.go +++ b/agent/cache-types/service_dump_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/service_gateways.go b/agent/cache-types/service_gateways.go index 54ba2694978..d096d136fa2 100644 --- a/agent/cache-types/service_gateways.go +++ b/agent/cache-types/service_gateways.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/service_gateways_test.go b/agent/cache-types/service_gateways_test.go index 27333d68d9a..c8c62e7c9ad 100644 --- a/agent/cache-types/service_gateways_test.go +++ b/agent/cache-types/service_gateways_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/testing.go b/agent/cache-types/testing.go index c033a022d96..459feaba9fa 100644 --- a/agent/cache-types/testing.go +++ b/agent/cache-types/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/trust_bundle.go b/agent/cache-types/trust_bundle.go index f63d60889b0..fda4cd9587b 100644 --- a/agent/cache-types/trust_bundle.go +++ b/agent/cache-types/trust_bundle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/trust_bundle_test.go b/agent/cache-types/trust_bundle_test.go index 67cf7d5b4dc..67df2496cb7 100644 --- a/agent/cache-types/trust_bundle_test.go +++ b/agent/cache-types/trust_bundle_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/trust_bundles.go b/agent/cache-types/trust_bundles.go index 49a1dfde0b6..a123145a4df 100644 --- a/agent/cache-types/trust_bundles.go +++ b/agent/cache-types/trust_bundles.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache-types/trust_bundles_test.go b/agent/cache-types/trust_bundles_test.go index ed177f8b990..861beed2fc2 100644 --- a/agent/cache-types/trust_bundles_test.go +++ b/agent/cache-types/trust_bundles_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cachetype import ( diff --git a/agent/cache/cache.go b/agent/cache/cache.go index 55b1654af26..4d9ed01fbf1 100644 --- a/agent/cache/cache.go +++ b/agent/cache/cache.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package cache provides caching features for data from a Consul server. // // While this is similar in some ways to the "agent/ae" package, a key diff --git a/agent/cache/cache_test.go b/agent/cache/cache_test.go index 98b04ee9a48..56413e2d50a 100644 --- a/agent/cache/cache_test.go +++ b/agent/cache/cache_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cache import ( diff --git a/agent/cache/entry.go b/agent/cache/entry.go index 7130381dea4..b17c008fedf 100644 --- a/agent/cache/entry.go +++ b/agent/cache/entry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cache import ( diff --git a/agent/cache/request.go b/agent/cache/request.go index 3dc4ea86f8a..7f66f4ce588 100644 --- a/agent/cache/request.go +++ b/agent/cache/request.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cache import ( diff --git a/agent/cache/testing.go b/agent/cache/testing.go index bbcee6b272a..7f0df113bc8 100644 --- a/agent/cache/testing.go +++ b/agent/cache/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cache import ( diff --git a/agent/cache/type.go b/agent/cache/type.go index fbe6978aa2f..d58362fd470 100644 --- a/agent/cache/type.go +++ b/agent/cache/type.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cache import ( diff --git a/agent/cache/watch.go b/agent/cache/watch.go index d87bca38a54..5bea14d903b 100644 --- a/agent/cache/watch.go +++ b/agent/cache/watch.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cache import ( diff --git a/agent/cache/watch_test.go b/agent/cache/watch_test.go index ecd1cc9f3b3..e6a5848f4cc 100644 --- a/agent/cache/watch_test.go +++ b/agent/cache/watch_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package cache import ( diff --git a/agent/catalog_endpoint.go b/agent/catalog_endpoint.go index 3e722e28605..4fbee8460ad 100644 --- a/agent/catalog_endpoint.go +++ b/agent/catalog_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/catalog_endpoint_oss.go b/agent/catalog_endpoint_oss.go index da27ab476a7..fcd8311356d 100644 --- a/agent/catalog_endpoint_oss.go +++ b/agent/catalog_endpoint_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/catalog_endpoint_test.go b/agent/catalog_endpoint_test.go index b0a5922e0f9..b18d23a5be8 100644 --- a/agent/catalog_endpoint_test.go +++ b/agent/catalog_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/check.go b/agent/check.go index da70a80053e..79c030d9324 100644 --- a/agent/check.go +++ b/agent/check.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/checks/alias.go b/agent/checks/alias.go index a301daa4fa0..5e394105cf1 100644 --- a/agent/checks/alias.go +++ b/agent/checks/alias.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks import ( diff --git a/agent/checks/alias_test.go b/agent/checks/alias_test.go index 4f77e7495ee..70a301d1180 100644 --- a/agent/checks/alias_test.go +++ b/agent/checks/alias_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks import ( diff --git a/agent/checks/check.go b/agent/checks/check.go index 2eb200dd851..3d8b5848965 100644 --- a/agent/checks/check.go +++ b/agent/checks/check.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks import ( diff --git a/agent/checks/check_test.go b/agent/checks/check_test.go index 495fc1472bb..c485b837e4c 100644 --- a/agent/checks/check_test.go +++ b/agent/checks/check_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks import ( diff --git a/agent/checks/check_windows_test.go b/agent/checks/check_windows_test.go index c0f59a3fc9d..b7c14dd18e8 100644 --- a/agent/checks/check_windows_test.go +++ b/agent/checks/check_windows_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows // +build windows diff --git a/agent/checks/docker.go b/agent/checks/docker.go index 17974b96822..11bcac7e01c 100644 --- a/agent/checks/docker.go +++ b/agent/checks/docker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks import ( diff --git a/agent/checks/docker_unix.go b/agent/checks/docker_unix.go index 528cb7d851a..33c8a2b8172 100644 --- a/agent/checks/docker_unix.go +++ b/agent/checks/docker_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/agent/checks/docker_windows.go b/agent/checks/docker_windows.go index c2b1e173d44..edcb4f380a9 100644 --- a/agent/checks/docker_windows.go +++ b/agent/checks/docker_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks const DefaultDockerHost = "npipe:////./pipe/docker_engine" diff --git a/agent/checks/grpc.go b/agent/checks/grpc.go index 578b496f55e..87378521c9d 100644 --- a/agent/checks/grpc.go +++ b/agent/checks/grpc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks import ( diff --git a/agent/checks/grpc_test.go b/agent/checks/grpc_test.go index 6db78bfa5a0..4500bcd67f3 100644 --- a/agent/checks/grpc_test.go +++ b/agent/checks/grpc_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks import ( diff --git a/agent/checks/os_service.go b/agent/checks/os_service.go index 4473c2c23a7..af4e9b03ee8 100644 --- a/agent/checks/os_service.go +++ b/agent/checks/os_service.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package checks import ( diff --git a/agent/checks/os_service_unix.go b/agent/checks/os_service_unix.go index dfb4a6509ec..ab004e29fd9 100644 --- a/agent/checks/os_service_unix.go +++ b/agent/checks/os_service_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/agent/checks/os_service_windows.go b/agent/checks/os_service_windows.go index 1587133812a..8b73ce4ad20 100644 --- a/agent/checks/os_service_windows.go +++ b/agent/checks/os_service_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows // +build windows diff --git a/agent/config/agent_limits.go b/agent/config/agent_limits.go index 71924f7e7b7..fff5e267f20 100644 --- a/agent/config/agent_limits.go +++ b/agent/config/agent_limits.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/builder.go b/agent/config/builder.go index af59e9b5b4e..2ead17543e8 100644 --- a/agent/config/builder.go +++ b/agent/config/builder.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/builder_oss.go b/agent/config/builder_oss.go index ce6e8d44ce0..f8d56df082a 100644 --- a/agent/config/builder_oss.go +++ b/agent/config/builder_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/config/builder_oss_test.go b/agent/config/builder_oss_test.go index 2fd5f50ad7c..15d706a1208 100644 --- a/agent/config/builder_oss_test.go +++ b/agent/config/builder_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/config/builder_test.go b/agent/config/builder_test.go index 9fdd085b1d8..3fe6573ba0c 100644 --- a/agent/config/builder_test.go +++ b/agent/config/builder_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/config.go b/agent/config/config.go index 7278e4f9164..95d1b36777f 100644 --- a/agent/config/config.go +++ b/agent/config/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/config_oss.go b/agent/config/config_oss.go index 5a297cacccf..2fc8da58e6d 100644 --- a/agent/config/config_oss.go +++ b/agent/config/config_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/config/default.go b/agent/config/default.go index bff8ddf8380..4c88c2ac3d8 100644 --- a/agent/config/default.go +++ b/agent/config/default.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/default_oss.go b/agent/config/default_oss.go index d98e27bcb29..f91bb9c7d36 100644 --- a/agent/config/default_oss.go +++ b/agent/config/default_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/config/deprecated.go b/agent/config/deprecated.go index 1b4b32e248f..597095f8e26 100644 --- a/agent/config/deprecated.go +++ b/agent/config/deprecated.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/deprecated_test.go b/agent/config/deprecated_test.go index 3e773593dfe..785c9555084 100644 --- a/agent/config/deprecated_test.go +++ b/agent/config/deprecated_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/doc.go b/agent/config/doc.go index b695c1c7698..4cbc2c41cfd 100644 --- a/agent/config/doc.go +++ b/agent/config/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package config contains the command line and config file code for the // consul agent. // diff --git a/agent/config/file_watcher.go b/agent/config/file_watcher.go index f0458af5f55..c91bb1dd50c 100644 --- a/agent/config/file_watcher.go +++ b/agent/config/file_watcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/file_watcher_test.go b/agent/config/file_watcher_test.go index 52abb1328de..02b1cd14117 100644 --- a/agent/config/file_watcher_test.go +++ b/agent/config/file_watcher_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/flags.go b/agent/config/flags.go index f6cb131d7ee..21e1ac612a5 100644 --- a/agent/config/flags.go +++ b/agent/config/flags.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/flags_test.go b/agent/config/flags_test.go index ebefa6806be..10df0d6d7f0 100644 --- a/agent/config/flags_test.go +++ b/agent/config/flags_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/flagset.go b/agent/config/flagset.go index 2b56dfd423b..3b2abe6fdf9 100644 --- a/agent/config/flagset.go +++ b/agent/config/flagset.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/golden_test.go b/agent/config/golden_test.go index da49f3fce4d..fb4401efbf4 100644 --- a/agent/config/golden_test.go +++ b/agent/config/golden_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/limits.go b/agent/config/limits.go index f1ff5e7f5b0..6b5d466ab63 100644 --- a/agent/config/limits.go +++ b/agent/config/limits.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/agent/config/limits_windows.go b/agent/config/limits_windows.go index 1e6e1822fb9..d9d3499397b 100644 --- a/agent/config/limits_windows.go +++ b/agent/config/limits_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows // +build windows diff --git a/agent/config/merge.go b/agent/config/merge.go index a743891f4a2..f40efdaa877 100644 --- a/agent/config/merge.go +++ b/agent/config/merge.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/merge_test.go b/agent/config/merge_test.go index 4de92a24fa8..13e3cbb186e 100644 --- a/agent/config/merge_test.go +++ b/agent/config/merge_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/ratelimited_file_watcher.go b/agent/config/ratelimited_file_watcher.go index a47f9733d8c..33de08cf2b6 100644 --- a/agent/config/ratelimited_file_watcher.go +++ b/agent/config/ratelimited_file_watcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/ratelimited_file_watcher_test.go b/agent/config/ratelimited_file_watcher_test.go index ee1ecb8bb02..d6a43b6be82 100644 --- a/agent/config/ratelimited_file_watcher_test.go +++ b/agent/config/ratelimited_file_watcher_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/runtime.go b/agent/config/runtime.go index e8616759f2a..9abcb612f5d 100644 --- a/agent/config/runtime.go +++ b/agent/config/runtime.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/runtime_oss.go b/agent/config/runtime_oss.go index 0cec03ccdb8..94a6b7fa6a6 100644 --- a/agent/config/runtime_oss.go +++ b/agent/config/runtime_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/config/runtime_oss_test.go b/agent/config/runtime_oss_test.go index 6274511bc03..39c1ba38c26 100644 --- a/agent/config/runtime_oss_test.go +++ b/agent/config/runtime_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/config/runtime_test.go b/agent/config/runtime_test.go index c892fe38d76..cd1a83cbb96 100644 --- a/agent/config/runtime_test.go +++ b/agent/config/runtime_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/config/segment_oss.go b/agent/config/segment_oss.go index d7a80c71ea9..5f8e8cff7d8 100644 --- a/agent/config/segment_oss.go +++ b/agent/config/segment_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/config/segment_oss_test.go b/agent/config/segment_oss_test.go index 52b4a0964cd..6dbb60645af 100644 --- a/agent/config/segment_oss_test.go +++ b/agent/config/segment_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/config/testdata/full-config.hcl b/agent/config/testdata/full-config.hcl index dced4781c91..6d46c4fd6ea 100644 --- a/agent/config/testdata/full-config.hcl +++ b/agent/config/testdata/full-config.hcl @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + acl_agent_master_token = "furuQD0b" acl_agent_token = "cOshLOQ2" acl_datacenter = "m3urck3z" diff --git a/agent/config_endpoint.go b/agent/config_endpoint.go index fbcac83ce3b..396215d78d9 100644 --- a/agent/config_endpoint.go +++ b/agent/config_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/config_endpoint_test.go b/agent/config_endpoint_test.go index f3c1c172017..f8c0c01e329 100644 --- a/agent/config_endpoint_test.go +++ b/agent/config_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/configentry/config_entry.go b/agent/configentry/config_entry.go index 7bf308c36f1..a4ebb254e04 100644 --- a/agent/configentry/config_entry.go +++ b/agent/configentry/config_entry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package configentry import ( diff --git a/agent/configentry/discoverychain.go b/agent/configentry/discoverychain.go index 2a4aecb0726..b11b53f757f 100644 --- a/agent/configentry/discoverychain.go +++ b/agent/configentry/discoverychain.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package configentry import ( diff --git a/agent/configentry/doc.go b/agent/configentry/doc.go index b7da03fcd03..18fd1405ab1 100644 --- a/agent/configentry/doc.go +++ b/agent/configentry/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package configentry contains structs and logic related to the Configuration // Entry subsystem. Currently this is restricted to structs used during // runtime, but which are not serialized to the network or disk. diff --git a/agent/configentry/merge_service_config.go b/agent/configentry/merge_service_config.go index 458cab012fe..ace4f461745 100644 --- a/agent/configentry/merge_service_config.go +++ b/agent/configentry/merge_service_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package configentry import ( diff --git a/agent/configentry/merge_service_config_test.go b/agent/configentry/merge_service_config_test.go index fa29bbdfa99..8b927733da6 100644 --- a/agent/configentry/merge_service_config_test.go +++ b/agent/configentry/merge_service_config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package configentry import ( diff --git a/agent/configentry/resolve.go b/agent/configentry/resolve.go index 4484fa42e0f..da877279e36 100644 --- a/agent/configentry/resolve.go +++ b/agent/configentry/resolve.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package configentry import ( diff --git a/agent/configentry/resolve_test.go b/agent/configentry/resolve_test.go index 052e489196d..35927d6d519 100644 --- a/agent/configentry/resolve_test.go +++ b/agent/configentry/resolve_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package configentry import ( diff --git a/agent/configentry/service_config.go b/agent/configentry/service_config.go index 5cc6e740a40..4b7e5e2a27c 100644 --- a/agent/configentry/service_config.go +++ b/agent/configentry/service_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package configentry import ( diff --git a/agent/connect/authz.go b/agent/connect/authz.go index f3beb1be60d..dd836a5763a 100644 --- a/agent/connect/authz.go +++ b/agent/connect/authz.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/authz_test.go b/agent/connect/authz_test.go index cad97646d82..4b84958698d 100644 --- a/agent/connect/authz_test.go +++ b/agent/connect/authz_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/ca/common.go b/agent/connect/ca/common.go index 848a4fa7b17..b83a196a8a2 100644 --- a/agent/connect/ca/common.go +++ b/agent/connect/ca/common.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider.go b/agent/connect/ca/provider.go index c80ccd82be9..6d84c2dc1e5 100644 --- a/agent/connect/ca/provider.go +++ b/agent/connect/ca/provider.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_aws.go b/agent/connect/ca/provider_aws.go index 97e075b114a..c35aeb22974 100644 --- a/agent/connect/ca/provider_aws.go +++ b/agent/connect/ca/provider_aws.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_aws_test.go b/agent/connect/ca/provider_aws_test.go index f6105d3dc83..8fb76fa3d20 100644 --- a/agent/connect/ca/provider_aws_test.go +++ b/agent/connect/ca/provider_aws_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_consul.go b/agent/connect/ca/provider_consul.go index 0493fffe75a..8000ea51e02 100644 --- a/agent/connect/ca/provider_consul.go +++ b/agent/connect/ca/provider_consul.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_consul_config.go b/agent/connect/ca/provider_consul_config.go index eb04ce9a7f7..b0998a0aa11 100644 --- a/agent/connect/ca/provider_consul_config.go +++ b/agent/connect/ca/provider_consul_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_consul_test.go b/agent/connect/ca/provider_consul_test.go index 9845eea74c9..a69cf056df4 100644 --- a/agent/connect/ca/provider_consul_test.go +++ b/agent/connect/ca/provider_consul_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_test.go b/agent/connect/ca/provider_test.go index c8cd6577823..b7ed9e29b41 100644 --- a/agent/connect/ca/provider_test.go +++ b/agent/connect/ca/provider_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_vault.go b/agent/connect/ca/provider_vault.go index 6103c1c7fa9..19d88d79b48 100644 --- a/agent/connect/ca/provider_vault.go +++ b/agent/connect/ca/provider_vault.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_vault_auth.go b/agent/connect/ca/provider_vault_auth.go index f00e90b7298..ddfbde34070 100644 --- a/agent/connect/ca/provider_vault_auth.go +++ b/agent/connect/ca/provider_vault_auth.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_vault_auth_alicloud.go b/agent/connect/ca/provider_vault_auth_alicloud.go index 88027903a7c..1c305831792 100644 --- a/agent/connect/ca/provider_vault_auth_alicloud.go +++ b/agent/connect/ca/provider_vault_auth_alicloud.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_vault_auth_approle.go b/agent/connect/ca/provider_vault_auth_approle.go index fad6011fcb3..150c463aea9 100644 --- a/agent/connect/ca/provider_vault_auth_approle.go +++ b/agent/connect/ca/provider_vault_auth_approle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_vault_auth_aws.go b/agent/connect/ca/provider_vault_auth_aws.go index 6ef19f72791..59f1c98035a 100644 --- a/agent/connect/ca/provider_vault_auth_aws.go +++ b/agent/connect/ca/provider_vault_auth_aws.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_vault_auth_azure.go b/agent/connect/ca/provider_vault_auth_azure.go index e7f7853884e..8025977007f 100644 --- a/agent/connect/ca/provider_vault_auth_azure.go +++ b/agent/connect/ca/provider_vault_auth_azure.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_vault_auth_gcp.go b/agent/connect/ca/provider_vault_auth_gcp.go index d498a9830d5..5eefc714366 100644 --- a/agent/connect/ca/provider_vault_auth_gcp.go +++ b/agent/connect/ca/provider_vault_auth_gcp.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_vault_auth_jwt.go b/agent/connect/ca/provider_vault_auth_jwt.go index e95481b55c8..2560f856d82 100644 --- a/agent/connect/ca/provider_vault_auth_jwt.go +++ b/agent/connect/ca/provider_vault_auth_jwt.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_vault_auth_k8s.go b/agent/connect/ca/provider_vault_auth_k8s.go index 983750cd54d..c3a69c6ccd4 100644 --- a/agent/connect/ca/provider_vault_auth_k8s.go +++ b/agent/connect/ca/provider_vault_auth_k8s.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_vault_auth_test.go b/agent/connect/ca/provider_vault_auth_test.go index 3598c930bc3..c6979dbbe50 100644 --- a/agent/connect/ca/provider_vault_auth_test.go +++ b/agent/connect/ca/provider_vault_auth_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/provider_vault_test.go b/agent/connect/ca/provider_vault_test.go index d0c33b3bca0..946b9c1347f 100644 --- a/agent/connect/ca/provider_vault_test.go +++ b/agent/connect/ca/provider_vault_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/ca/testing.go b/agent/connect/ca/testing.go index 70c297732b8..39654c3c746 100644 --- a/agent/connect/ca/testing.go +++ b/agent/connect/ca/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ca import ( diff --git a/agent/connect/common_names.go b/agent/connect/common_names.go index 641831b24f3..3c4c30633d5 100644 --- a/agent/connect/common_names.go +++ b/agent/connect/common_names.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/csr.go b/agent/connect/csr.go index 63ba59476bf..9cf0d884dea 100644 --- a/agent/connect/csr.go +++ b/agent/connect/csr.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/csr_test.go b/agent/connect/csr_test.go index 322585840eb..6aef985f006 100644 --- a/agent/connect/csr_test.go +++ b/agent/connect/csr_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/generate.go b/agent/connect/generate.go index 8c40faf9a6d..819428d147a 100644 --- a/agent/connect/generate.go +++ b/agent/connect/generate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/generate_test.go b/agent/connect/generate_test.go index b6234a49709..67be6081fe0 100644 --- a/agent/connect/generate_test.go +++ b/agent/connect/generate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/parsing.go b/agent/connect/parsing.go index d5919265032..a89544532fb 100644 --- a/agent/connect/parsing.go +++ b/agent/connect/parsing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/sni.go b/agent/connect/sni.go index e60740e4b12..b9eb8a14b2e 100644 --- a/agent/connect/sni.go +++ b/agent/connect/sni.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/sni_test.go b/agent/connect/sni_test.go index 59e9f41fcdc..acbfd49ce02 100644 --- a/agent/connect/sni_test.go +++ b/agent/connect/sni_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/testing_ca.go b/agent/connect/testing_ca.go index aa44859b376..7b30d851764 100644 --- a/agent/connect/testing_ca.go +++ b/agent/connect/testing_ca.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/testing_ca_test.go b/agent/connect/testing_ca_test.go index 7d3cb95798a..492ca9e32d9 100644 --- a/agent/connect/testing_ca_test.go +++ b/agent/connect/testing_ca_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/testing_spiffe.go b/agent/connect/testing_spiffe.go index 4a0577880c9..f48222c443f 100644 --- a/agent/connect/testing_spiffe.go +++ b/agent/connect/testing_spiffe.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/uri.go b/agent/connect/uri.go index 6d64be3b473..ce44967432f 100644 --- a/agent/connect/uri.go +++ b/agent/connect/uri.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/uri_agent.go b/agent/connect/uri_agent.go index fb86614cd83..c3d3a86bf11 100644 --- a/agent/connect/uri_agent.go +++ b/agent/connect/uri_agent.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/uri_agent_oss.go b/agent/connect/uri_agent_oss.go index e24f9b56098..e7d4262346a 100644 --- a/agent/connect/uri_agent_oss.go +++ b/agent/connect/uri_agent_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/connect/uri_agent_oss_test.go b/agent/connect/uri_agent_oss_test.go index 37ebc0bf3e3..57f1286fd1e 100644 --- a/agent/connect/uri_agent_oss_test.go +++ b/agent/connect/uri_agent_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/connect/uri_mesh_gateway.go b/agent/connect/uri_mesh_gateway.go index 9358f7eaf6b..ec474efa408 100644 --- a/agent/connect/uri_mesh_gateway.go +++ b/agent/connect/uri_mesh_gateway.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/uri_mesh_gateway_oss.go b/agent/connect/uri_mesh_gateway_oss.go index 8865b97f94f..6ac369ddd83 100644 --- a/agent/connect/uri_mesh_gateway_oss.go +++ b/agent/connect/uri_mesh_gateway_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/connect/uri_mesh_gateway_oss_test.go b/agent/connect/uri_mesh_gateway_oss_test.go index 6ab1ede1fd5..593de8ef310 100644 --- a/agent/connect/uri_mesh_gateway_oss_test.go +++ b/agent/connect/uri_mesh_gateway_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/connect/uri_server.go b/agent/connect/uri_server.go index e6d71105141..894ad63784b 100644 --- a/agent/connect/uri_server.go +++ b/agent/connect/uri_server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/uri_service.go b/agent/connect/uri_service.go index 685498b1afb..5f5f5c9bc8a 100644 --- a/agent/connect/uri_service.go +++ b/agent/connect/uri_service.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/uri_service_oss.go b/agent/connect/uri_service_oss.go index 63a51bf7003..7323055ad8d 100644 --- a/agent/connect/uri_service_oss.go +++ b/agent/connect/uri_service_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/connect/uri_service_oss_test.go b/agent/connect/uri_service_oss_test.go index 31b504150b5..7d73151edc0 100644 --- a/agent/connect/uri_service_oss_test.go +++ b/agent/connect/uri_service_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/connect/uri_signing.go b/agent/connect/uri_signing.go index 67ef7ecea79..24330a3d70b 100644 --- a/agent/connect/uri_signing.go +++ b/agent/connect/uri_signing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/uri_signing_test.go b/agent/connect/uri_signing_test.go index 6fef1f811f5..ba426173160 100644 --- a/agent/connect/uri_signing_test.go +++ b/agent/connect/uri_signing_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/uri_test.go b/agent/connect/uri_test.go index b57f3ffe84d..2ea439f5366 100644 --- a/agent/connect/uri_test.go +++ b/agent/connect/uri_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/x509_patch.go b/agent/connect/x509_patch.go index 9dcd12de1ce..f448154f8d9 100644 --- a/agent/connect/x509_patch.go +++ b/agent/connect/x509_patch.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect/x509_patch_test.go b/agent/connect/x509_patch_test.go index 61278b359c9..1447802a5b8 100644 --- a/agent/connect/x509_patch_test.go +++ b/agent/connect/x509_patch_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connect import ( diff --git a/agent/connect_auth.go b/agent/connect_auth.go index 80fa6d42ea7..0e4b577fd1f 100644 --- a/agent/connect_auth.go +++ b/agent/connect_auth.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/connect_ca_endpoint.go b/agent/connect_ca_endpoint.go index bb2ec637c48..913836f8c87 100644 --- a/agent/connect_ca_endpoint.go +++ b/agent/connect_ca_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/connect_ca_endpoint_test.go b/agent/connect_ca_endpoint_test.go index 1296ab31755..575250de4ca 100644 --- a/agent/connect_ca_endpoint_test.go +++ b/agent/connect_ca_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/consul/acl.go b/agent/consul/acl.go index 40df5d3ff7b..c0107a6aa5a 100644 --- a/agent/consul/acl.go +++ b/agent/consul/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/acl_authmethod.go b/agent/consul/acl_authmethod.go index f7826c7bd33..42f5b6e2404 100644 --- a/agent/consul/acl_authmethod.go +++ b/agent/consul/acl_authmethod.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/acl_authmethod_oss.go b/agent/consul/acl_authmethod_oss.go index b2f28da9ab3..94bf78bd256 100644 --- a/agent/consul/acl_authmethod_oss.go +++ b/agent/consul/acl_authmethod_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/acl_client.go b/agent/consul/acl_client.go index d93923e6548..d133807604b 100644 --- a/agent/consul/acl_client.go +++ b/agent/consul/acl_client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/acl_endpoint.go b/agent/consul/acl_endpoint.go index 790bd71a5b5..cc1632cf49a 100644 --- a/agent/consul/acl_endpoint.go +++ b/agent/consul/acl_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/acl_endpoint_oss.go b/agent/consul/acl_endpoint_oss.go index da2890fde0d..9d45f0fd7d8 100644 --- a/agent/consul/acl_endpoint_oss.go +++ b/agent/consul/acl_endpoint_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/acl_endpoint_test.go b/agent/consul/acl_endpoint_test.go index 8bbf8379b53..9507f9c6200 100644 --- a/agent/consul/acl_endpoint_test.go +++ b/agent/consul/acl_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/acl_oss.go b/agent/consul/acl_oss.go index 1fe4fbbf817..496b6cb553a 100644 --- a/agent/consul/acl_oss.go +++ b/agent/consul/acl_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/acl_oss_test.go b/agent/consul/acl_oss_test.go index df2165e1c52..69660f9da80 100644 --- a/agent/consul/acl_oss_test.go +++ b/agent/consul/acl_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/acl_replication.go b/agent/consul/acl_replication.go index 3b41a3eec79..849e81adf69 100644 --- a/agent/consul/acl_replication.go +++ b/agent/consul/acl_replication.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/acl_replication_test.go b/agent/consul/acl_replication_test.go index c3c564fedd2..a81bfca0391 100644 --- a/agent/consul/acl_replication_test.go +++ b/agent/consul/acl_replication_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/acl_replication_types.go b/agent/consul/acl_replication_types.go index a395270d6e1..c5aeaaead29 100644 --- a/agent/consul/acl_replication_types.go +++ b/agent/consul/acl_replication_types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/acl_server.go b/agent/consul/acl_server.go index 48e80191e38..f068bd5b293 100644 --- a/agent/consul/acl_server.go +++ b/agent/consul/acl_server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/acl_server_oss.go b/agent/consul/acl_server_oss.go index 6d281c22551..f2de1486a28 100644 --- a/agent/consul/acl_server_oss.go +++ b/agent/consul/acl_server_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/acl_test.go b/agent/consul/acl_test.go index b7b28123ebd..386c60e38e3 100644 --- a/agent/consul/acl_test.go +++ b/agent/consul/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/acl_token_exp.go b/agent/consul/acl_token_exp.go index e373e0cdd6d..7f5de395c7a 100644 --- a/agent/consul/acl_token_exp.go +++ b/agent/consul/acl_token_exp.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/acl_token_exp_test.go b/agent/consul/acl_token_exp_test.go index c4f0c768d0b..949d54510ba 100644 --- a/agent/consul/acl_token_exp_test.go +++ b/agent/consul/acl_token_exp_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/auth/binder.go b/agent/consul/auth/binder.go index f1eec01410a..354fedc8f18 100644 --- a/agent/consul/auth/binder.go +++ b/agent/consul/auth/binder.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth import ( diff --git a/agent/consul/auth/binder_oss.go b/agent/consul/auth/binder_oss.go index bbd34090ee5..f6fa5e5e841 100644 --- a/agent/consul/auth/binder_oss.go +++ b/agent/consul/auth/binder_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/auth/binder_test.go b/agent/consul/auth/binder_test.go index 240131dfdb5..b86d4526dd0 100644 --- a/agent/consul/auth/binder_test.go +++ b/agent/consul/auth/binder_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth import ( diff --git a/agent/consul/auth/login.go b/agent/consul/auth/login.go index 3848fb8c8c4..9592e5a841d 100644 --- a/agent/consul/auth/login.go +++ b/agent/consul/auth/login.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth import ( diff --git a/agent/consul/auth/token_writer.go b/agent/consul/auth/token_writer.go index 957d34fada8..ab99eeb3702 100644 --- a/agent/consul/auth/token_writer.go +++ b/agent/consul/auth/token_writer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth import ( diff --git a/agent/consul/auth/token_writer_oss.go b/agent/consul/auth/token_writer_oss.go index 57365610efd..b0ad9e833bb 100644 --- a/agent/consul/auth/token_writer_oss.go +++ b/agent/consul/auth/token_writer_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/auth/token_writer_test.go b/agent/consul/auth/token_writer_test.go index 499c10ab573..e4fbf04db8c 100644 --- a/agent/consul/auth/token_writer_test.go +++ b/agent/consul/auth/token_writer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package auth import ( diff --git a/agent/consul/authmethod/authmethods.go b/agent/consul/authmethod/authmethods.go index fbcd27e0150..946fce927e6 100644 --- a/agent/consul/authmethod/authmethods.go +++ b/agent/consul/authmethod/authmethods.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package authmethod import ( diff --git a/agent/consul/authmethod/authmethods_oss.go b/agent/consul/authmethod/authmethods_oss.go index 0e5cc5a7f43..0839b4aba5a 100644 --- a/agent/consul/authmethod/authmethods_oss.go +++ b/agent/consul/authmethod/authmethods_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/authmethod/awsauth/aws.go b/agent/consul/authmethod/awsauth/aws.go index 7c7758476cc..d2cd73482cd 100644 --- a/agent/consul/authmethod/awsauth/aws.go +++ b/agent/consul/authmethod/awsauth/aws.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package awsauth import ( diff --git a/agent/consul/authmethod/awsauth/aws_test.go b/agent/consul/authmethod/awsauth/aws_test.go index 031cd035b71..7a894cc2178 100644 --- a/agent/consul/authmethod/awsauth/aws_test.go +++ b/agent/consul/authmethod/awsauth/aws_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package awsauth import ( diff --git a/agent/consul/authmethod/kubeauth/k8s.go b/agent/consul/authmethod/kubeauth/k8s.go index a976664a69d..f71157cbecc 100644 --- a/agent/consul/authmethod/kubeauth/k8s.go +++ b/agent/consul/authmethod/kubeauth/k8s.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package kubeauth import ( diff --git a/agent/consul/authmethod/kubeauth/k8s_oss.go b/agent/consul/authmethod/kubeauth/k8s_oss.go index a023c24e7ce..b2b7e8a2d87 100644 --- a/agent/consul/authmethod/kubeauth/k8s_oss.go +++ b/agent/consul/authmethod/kubeauth/k8s_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/authmethod/kubeauth/k8s_test.go b/agent/consul/authmethod/kubeauth/k8s_test.go index e8c1abe1ba7..95decce1159 100644 --- a/agent/consul/authmethod/kubeauth/k8s_test.go +++ b/agent/consul/authmethod/kubeauth/k8s_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package kubeauth import ( diff --git a/agent/consul/authmethod/kubeauth/testing.go b/agent/consul/authmethod/kubeauth/testing.go index 83e5d4fa29d..e5538bb9099 100644 --- a/agent/consul/authmethod/kubeauth/testing.go +++ b/agent/consul/authmethod/kubeauth/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package kubeauth import ( diff --git a/agent/consul/authmethod/ssoauth/sso.go b/agent/consul/authmethod/ssoauth/sso.go index ee8fff4bd87..6215c0eafe7 100644 --- a/agent/consul/authmethod/ssoauth/sso.go +++ b/agent/consul/authmethod/ssoauth/sso.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ssoauth import ( diff --git a/agent/consul/authmethod/ssoauth/sso_oss.go b/agent/consul/authmethod/ssoauth/sso_oss.go index 495ce482b21..74e3be3082c 100644 --- a/agent/consul/authmethod/ssoauth/sso_oss.go +++ b/agent/consul/authmethod/ssoauth/sso_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/authmethod/ssoauth/sso_test.go b/agent/consul/authmethod/ssoauth/sso_test.go index 39501b026cb..840e37b86fd 100644 --- a/agent/consul/authmethod/ssoauth/sso_test.go +++ b/agent/consul/authmethod/ssoauth/sso_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package ssoauth import ( diff --git a/agent/consul/authmethod/testauth/testing.go b/agent/consul/authmethod/testauth/testing.go index 5ad0f1e4909..9f6c85ae23d 100644 --- a/agent/consul/authmethod/testauth/testing.go +++ b/agent/consul/authmethod/testauth/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testauth import ( diff --git a/agent/consul/authmethod/testauth/testing_oss.go b/agent/consul/authmethod/testauth/testing_oss.go index d03a6ad876f..f4b909b4b81 100644 --- a/agent/consul/authmethod/testauth/testing_oss.go +++ b/agent/consul/authmethod/testauth/testing_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/authmethod/testing.go b/agent/consul/authmethod/testing.go index d367f64767d..933082a5b42 100644 --- a/agent/consul/authmethod/testing.go +++ b/agent/consul/authmethod/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package authmethod import ( diff --git a/agent/consul/auto_config_backend.go b/agent/consul/auto_config_backend.go index e77093d5ea3..78413fe0121 100644 --- a/agent/consul/auto_config_backend.go +++ b/agent/consul/auto_config_backend.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/auto_config_backend_test.go b/agent/consul/auto_config_backend_test.go index b4a8a2c6cd1..6a4a202fceb 100644 --- a/agent/consul/auto_config_backend_test.go +++ b/agent/consul/auto_config_backend_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/auto_config_endpoint.go b/agent/consul/auto_config_endpoint.go index c44206e6768..808aa63304d 100644 --- a/agent/consul/auto_config_endpoint.go +++ b/agent/consul/auto_config_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/auto_config_endpoint_test.go b/agent/consul/auto_config_endpoint_test.go index 12b99282dec..a3f485ee60c 100644 --- a/agent/consul/auto_config_endpoint_test.go +++ b/agent/consul/auto_config_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/auto_encrypt_endpoint.go b/agent/consul/auto_encrypt_endpoint.go index 3adfad8ecd2..b893e783215 100644 --- a/agent/consul/auto_encrypt_endpoint.go +++ b/agent/consul/auto_encrypt_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/auto_encrypt_endpoint_test.go b/agent/consul/auto_encrypt_endpoint_test.go index 50d356d9f86..d8124f9fb36 100644 --- a/agent/consul/auto_encrypt_endpoint_test.go +++ b/agent/consul/auto_encrypt_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/autopilot.go b/agent/consul/autopilot.go index a41febb0581..f682ffed6f1 100644 --- a/agent/consul/autopilot.go +++ b/agent/consul/autopilot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/autopilot_oss.go b/agent/consul/autopilot_oss.go index d84cd2fdfb9..92f9b4ccae4 100644 --- a/agent/consul/autopilot_oss.go +++ b/agent/consul/autopilot_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/autopilot_test.go b/agent/consul/autopilot_test.go index 2ebd5806b47..4429340eda5 100644 --- a/agent/consul/autopilot_test.go +++ b/agent/consul/autopilot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/autopilotevents/ready_servers_events.go b/agent/consul/autopilotevents/ready_servers_events.go index 9b4e2af2a80..404276f3ec2 100644 --- a/agent/consul/autopilotevents/ready_servers_events.go +++ b/agent/consul/autopilotevents/ready_servers_events.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autopilotevents import ( diff --git a/agent/consul/autopilotevents/ready_servers_events_test.go b/agent/consul/autopilotevents/ready_servers_events_test.go index 6944177e473..994020c290c 100644 --- a/agent/consul/autopilotevents/ready_servers_events_test.go +++ b/agent/consul/autopilotevents/ready_servers_events_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package autopilotevents import ( diff --git a/agent/consul/catalog_endpoint.go b/agent/consul/catalog_endpoint.go index bacafa688ae..32b8067e5a1 100644 --- a/agent/consul/catalog_endpoint.go +++ b/agent/consul/catalog_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/catalog_endpoint_test.go b/agent/consul/catalog_endpoint_test.go index e4c6cd7deeb..192a3d6d7d2 100644 --- a/agent/consul/catalog_endpoint_test.go +++ b/agent/consul/catalog_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/client.go b/agent/consul/client.go index c1ea41f8996..e4a3f83324a 100644 --- a/agent/consul/client.go +++ b/agent/consul/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/client_serf.go b/agent/consul/client_serf.go index 50a0844485a..7d68b50395e 100644 --- a/agent/consul/client_serf.go +++ b/agent/consul/client_serf.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/client_test.go b/agent/consul/client_test.go index 982eb80ab8f..419867a4eba 100644 --- a/agent/consul/client_test.go +++ b/agent/consul/client_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/cluster_test.go b/agent/consul/cluster_test.go index bf2c63a2e8e..925d32a6106 100644 --- a/agent/consul/cluster_test.go +++ b/agent/consul/cluster_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/config.go b/agent/consul/config.go index 1ba42c129c6..6fa63750463 100644 --- a/agent/consul/config.go +++ b/agent/consul/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/config_endpoint.go b/agent/consul/config_endpoint.go index f6ec3b3ba6a..4ed7c450aad 100644 --- a/agent/consul/config_endpoint.go +++ b/agent/consul/config_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/config_endpoint_test.go b/agent/consul/config_endpoint_test.go index e836db9977e..85170378ab7 100644 --- a/agent/consul/config_endpoint_test.go +++ b/agent/consul/config_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/config_oss.go b/agent/consul/config_oss.go index bae469eaf87..e91d0981e86 100644 --- a/agent/consul/config_oss.go +++ b/agent/consul/config_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/config_replication.go b/agent/consul/config_replication.go index 902f92a6afe..a7bb714be24 100644 --- a/agent/consul/config_replication.go +++ b/agent/consul/config_replication.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/config_replication_test.go b/agent/consul/config_replication_test.go index 24d51de884a..9e3d236d82f 100644 --- a/agent/consul/config_replication_test.go +++ b/agent/consul/config_replication_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/config_test.go b/agent/consul/config_test.go index 8e6c7055ddd..e2706e00b40 100644 --- a/agent/consul/config_test.go +++ b/agent/consul/config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/connect_ca_endpoint.go b/agent/consul/connect_ca_endpoint.go index 29cfc38bec0..771eae2464b 100644 --- a/agent/consul/connect_ca_endpoint.go +++ b/agent/consul/connect_ca_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/connect_ca_endpoint_test.go b/agent/consul/connect_ca_endpoint_test.go index 8e0cd6d3739..3911db19231 100644 --- a/agent/consul/connect_ca_endpoint_test.go +++ b/agent/consul/connect_ca_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/context.go b/agent/consul/context.go index ecf782911d8..7de4157d8f4 100644 --- a/agent/consul/context.go +++ b/agent/consul/context.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/context_test.go b/agent/consul/context_test.go index b6e136fea70..264dcdd9886 100644 --- a/agent/consul/context_test.go +++ b/agent/consul/context_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/controller/controller.go b/agent/consul/controller/controller.go index 3dec902a528..ddd99ea6576 100644 --- a/agent/consul/controller/controller.go +++ b/agent/consul/controller/controller.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package controller import ( diff --git a/agent/consul/controller/controller_test.go b/agent/consul/controller/controller_test.go index ea42ed87cdf..443a3fcfd89 100644 --- a/agent/consul/controller/controller_test.go +++ b/agent/consul/controller/controller_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package controller import ( diff --git a/agent/consul/controller/defer.go b/agent/consul/controller/defer.go index 398373b0bdd..f0c5af5f3af 100644 --- a/agent/consul/controller/defer.go +++ b/agent/consul/controller/defer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package controller import ( diff --git a/agent/consul/controller/doc.go b/agent/consul/controller/doc.go index ca40814e3c5..638eb5c5d9a 100644 --- a/agent/consul/controller/doc.go +++ b/agent/consul/controller/doc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package controller contains a re-implementation of the Kubernetes // [controller-runtime](https://github.com/kubernetes-sigs/controller-runtime) // with the core using Consul's event publishing pipeline rather than diff --git a/agent/consul/controller/queue.go b/agent/consul/controller/queue.go index d86c5c671b9..ede7a00c0f8 100644 --- a/agent/consul/controller/queue.go +++ b/agent/consul/controller/queue.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package controller import ( diff --git a/agent/consul/controller/queue_test.go b/agent/consul/controller/queue_test.go index 8bfc00312b3..63571511def 100644 --- a/agent/consul/controller/queue_test.go +++ b/agent/consul/controller/queue_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package controller import ( diff --git a/agent/consul/controller/rate.go b/agent/consul/controller/rate.go index 829b39705d3..76bc48f31c3 100644 --- a/agent/consul/controller/rate.go +++ b/agent/consul/controller/rate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package controller import ( diff --git a/agent/consul/controller/rate_test.go b/agent/consul/controller/rate_test.go index 8d128eee11c..676a28ee602 100644 --- a/agent/consul/controller/rate_test.go +++ b/agent/consul/controller/rate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package controller import ( diff --git a/agent/consul/controller/reconciler.go b/agent/consul/controller/reconciler.go index 530c17ccbd9..ce0c6e97a3a 100644 --- a/agent/consul/controller/reconciler.go +++ b/agent/consul/controller/reconciler.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package controller import ( diff --git a/agent/consul/controller/reconciler_test.go b/agent/consul/controller/reconciler_test.go index 5b08494ae6e..56ae022ea26 100644 --- a/agent/consul/controller/reconciler_test.go +++ b/agent/consul/controller/reconciler_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package controller import ( diff --git a/agent/consul/coordinate_endpoint.go b/agent/consul/coordinate_endpoint.go index 886df889e16..28bf63b0bfd 100644 --- a/agent/consul/coordinate_endpoint.go +++ b/agent/consul/coordinate_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/coordinate_endpoint_test.go b/agent/consul/coordinate_endpoint_test.go index 471a92623c2..fbb3e13aa76 100644 --- a/agent/consul/coordinate_endpoint_test.go +++ b/agent/consul/coordinate_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/discovery_chain_endpoint.go b/agent/consul/discovery_chain_endpoint.go index e354d006449..4d1f9959c96 100644 --- a/agent/consul/discovery_chain_endpoint.go +++ b/agent/consul/discovery_chain_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/discovery_chain_endpoint_test.go b/agent/consul/discovery_chain_endpoint_test.go index c1ad0fef359..8379f86b71d 100644 --- a/agent/consul/discovery_chain_endpoint_test.go +++ b/agent/consul/discovery_chain_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/discoverychain/compile.go b/agent/consul/discoverychain/compile.go index 20ac35683f1..39710c2b15d 100644 --- a/agent/consul/discoverychain/compile.go +++ b/agent/consul/discoverychain/compile.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discoverychain import ( diff --git a/agent/consul/discoverychain/compile_oss.go b/agent/consul/discoverychain/compile_oss.go index c0aa1118e14..d980c71f38f 100644 --- a/agent/consul/discoverychain/compile_oss.go +++ b/agent/consul/discoverychain/compile_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/discoverychain/compile_test.go b/agent/consul/discoverychain/compile_test.go index 99371a61d1e..692c0c4fdac 100644 --- a/agent/consul/discoverychain/compile_test.go +++ b/agent/consul/discoverychain/compile_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discoverychain import ( diff --git a/agent/consul/discoverychain/gateway.go b/agent/consul/discoverychain/gateway.go index e834b7a1d49..c1c6a2b0841 100644 --- a/agent/consul/discoverychain/gateway.go +++ b/agent/consul/discoverychain/gateway.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discoverychain import ( diff --git a/agent/consul/discoverychain/gateway_httproute.go b/agent/consul/discoverychain/gateway_httproute.go index 30968c9a4d5..fcd2dc44025 100644 --- a/agent/consul/discoverychain/gateway_httproute.go +++ b/agent/consul/discoverychain/gateway_httproute.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discoverychain import ( diff --git a/agent/consul/discoverychain/gateway_tcproute.go b/agent/consul/discoverychain/gateway_tcproute.go index 377e4450ee1..21afef3ec18 100644 --- a/agent/consul/discoverychain/gateway_tcproute.go +++ b/agent/consul/discoverychain/gateway_tcproute.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discoverychain import "github.com/hashicorp/consul/agent/structs" diff --git a/agent/consul/discoverychain/gateway_test.go b/agent/consul/discoverychain/gateway_test.go index 57d236afdc8..a98aaf05550 100644 --- a/agent/consul/discoverychain/gateway_test.go +++ b/agent/consul/discoverychain/gateway_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discoverychain import ( diff --git a/agent/consul/discoverychain/string_stack.go b/agent/consul/discoverychain/string_stack.go index c68827d8d33..e47743a3f38 100644 --- a/agent/consul/discoverychain/string_stack.go +++ b/agent/consul/discoverychain/string_stack.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discoverychain type stringStack []string diff --git a/agent/consul/discoverychain/string_stack_test.go b/agent/consul/discoverychain/string_stack_test.go index d33363c0b1c..84f58203d43 100644 --- a/agent/consul/discoverychain/string_stack_test.go +++ b/agent/consul/discoverychain/string_stack_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discoverychain import ( diff --git a/agent/consul/discoverychain/testing.go b/agent/consul/discoverychain/testing.go index 68a75c26a91..cf56be19522 100644 --- a/agent/consul/discoverychain/testing.go +++ b/agent/consul/discoverychain/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discoverychain import ( diff --git a/agent/consul/enterprise_client_oss.go b/agent/consul/enterprise_client_oss.go index 3dcf34732a2..3d432213bd8 100644 --- a/agent/consul/enterprise_client_oss.go +++ b/agent/consul/enterprise_client_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/enterprise_config_oss.go b/agent/consul/enterprise_config_oss.go index a5899840602..15af4ea1603 100644 --- a/agent/consul/enterprise_config_oss.go +++ b/agent/consul/enterprise_config_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/enterprise_server_oss.go b/agent/consul/enterprise_server_oss.go index d6e07ddd8ce..836b64e2b32 100644 --- a/agent/consul/enterprise_server_oss.go +++ b/agent/consul/enterprise_server_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/enterprise_server_oss_test.go b/agent/consul/enterprise_server_oss_test.go index 46a73b6d137..9bd3eb8c0c9 100644 --- a/agent/consul/enterprise_server_oss_test.go +++ b/agent/consul/enterprise_server_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/federation_state_endpoint.go b/agent/consul/federation_state_endpoint.go index 6aade948835..db842e666d6 100644 --- a/agent/consul/federation_state_endpoint.go +++ b/agent/consul/federation_state_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/federation_state_endpoint_test.go b/agent/consul/federation_state_endpoint_test.go index 2996224478b..977de1c9c19 100644 --- a/agent/consul/federation_state_endpoint_test.go +++ b/agent/consul/federation_state_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/federation_state_replication.go b/agent/consul/federation_state_replication.go index 69fb896940c..f56c3c6089c 100644 --- a/agent/consul/federation_state_replication.go +++ b/agent/consul/federation_state_replication.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/federation_state_replication_test.go b/agent/consul/federation_state_replication_test.go index b908aec96df..5100e45926a 100644 --- a/agent/consul/federation_state_replication_test.go +++ b/agent/consul/federation_state_replication_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/filter.go b/agent/consul/filter.go index 217af440076..18643463690 100644 --- a/agent/consul/filter.go +++ b/agent/consul/filter.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/filter_test.go b/agent/consul/filter_test.go index b5f81c28fed..d8f6ba54c32 100644 --- a/agent/consul/filter_test.go +++ b/agent/consul/filter_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/flood.go b/agent/consul/flood.go index ab9c5400338..ee7dfbc1dd5 100644 --- a/agent/consul/flood.go +++ b/agent/consul/flood.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/fsm/commands_oss.go b/agent/consul/fsm/commands_oss.go index 5d6f8c2a49b..ef9275a1727 100644 --- a/agent/consul/fsm/commands_oss.go +++ b/agent/consul/fsm/commands_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fsm import ( diff --git a/agent/consul/fsm/commands_oss_test.go b/agent/consul/fsm/commands_oss_test.go index 58608fe1491..e4dc9ea6b0f 100644 --- a/agent/consul/fsm/commands_oss_test.go +++ b/agent/consul/fsm/commands_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fsm import ( diff --git a/agent/consul/fsm/fsm.go b/agent/consul/fsm/fsm.go index 6bcbac0d62b..b0913842294 100644 --- a/agent/consul/fsm/fsm.go +++ b/agent/consul/fsm/fsm.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fsm import ( diff --git a/agent/consul/fsm/fsm_test.go b/agent/consul/fsm/fsm_test.go index 43244da235e..aa31615a5aa 100644 --- a/agent/consul/fsm/fsm_test.go +++ b/agent/consul/fsm/fsm_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fsm import ( diff --git a/agent/consul/fsm/log_verification_chunking_shim.go b/agent/consul/fsm/log_verification_chunking_shim.go index 5b90fbeb424..a74b92b5684 100644 --- a/agent/consul/fsm/log_verification_chunking_shim.go +++ b/agent/consul/fsm/log_verification_chunking_shim.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fsm import ( diff --git a/agent/consul/fsm/snapshot.go b/agent/consul/fsm/snapshot.go index 42175561d24..2d734ba6e23 100644 --- a/agent/consul/fsm/snapshot.go +++ b/agent/consul/fsm/snapshot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fsm import ( diff --git a/agent/consul/fsm/snapshot_oss.go b/agent/consul/fsm/snapshot_oss.go index e0bf928c838..285f97e1522 100644 --- a/agent/consul/fsm/snapshot_oss.go +++ b/agent/consul/fsm/snapshot_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fsm import ( diff --git a/agent/consul/fsm/snapshot_oss_test.go b/agent/consul/fsm/snapshot_oss_test.go index 301db3c2aea..eb7f3d20a6c 100644 --- a/agent/consul/fsm/snapshot_oss_test.go +++ b/agent/consul/fsm/snapshot_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/fsm/snapshot_test.go b/agent/consul/fsm/snapshot_test.go index 5a7665965ea..edb39e19252 100644 --- a/agent/consul/fsm/snapshot_test.go +++ b/agent/consul/fsm/snapshot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package fsm import ( diff --git a/agent/consul/fsm_data_store.go b/agent/consul/fsm_data_store.go index 4bbdf6f24d7..46c3ca2f0f4 100644 --- a/agent/consul/fsm_data_store.go +++ b/agent/consul/fsm_data_store.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/gateway_locator.go b/agent/consul/gateway_locator.go index ab72fdce3d7..7ae492822d7 100644 --- a/agent/consul/gateway_locator.go +++ b/agent/consul/gateway_locator.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/gateway_locator_test.go b/agent/consul/gateway_locator_test.go index 8f32acb86af..ddd48e0b11d 100644 --- a/agent/consul/gateway_locator_test.go +++ b/agent/consul/gateway_locator_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/gateways/controller_gateways.go b/agent/consul/gateways/controller_gateways.go index cfc5a25ba7e..afb687fe097 100644 --- a/agent/consul/gateways/controller_gateways.go +++ b/agent/consul/gateways/controller_gateways.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package gateways import ( diff --git a/agent/consul/gateways/controller_gateways_test.go b/agent/consul/gateways/controller_gateways_test.go index 805a5738ce6..f80a0d0557d 100644 --- a/agent/consul/gateways/controller_gateways_test.go +++ b/agent/consul/gateways/controller_gateways_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package gateways import ( diff --git a/agent/consul/grpc_integration_test.go b/agent/consul/grpc_integration_test.go index fa1ed488965..678403a4504 100644 --- a/agent/consul/grpc_integration_test.go +++ b/agent/consul/grpc_integration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/health_endpoint.go b/agent/consul/health_endpoint.go index 858f3394176..abf17adbaeb 100644 --- a/agent/consul/health_endpoint.go +++ b/agent/consul/health_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/health_endpoint_test.go b/agent/consul/health_endpoint_test.go index 77fd64f4e61..4b492081c93 100644 --- a/agent/consul/health_endpoint_test.go +++ b/agent/consul/health_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/helper_test.go b/agent/consul/helper_test.go index d21bb5d64b7..0619004c546 100644 --- a/agent/consul/helper_test.go +++ b/agent/consul/helper_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/intention_endpoint.go b/agent/consul/intention_endpoint.go index 6ad053f7f66..35fe4714d06 100644 --- a/agent/consul/intention_endpoint.go +++ b/agent/consul/intention_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/intention_endpoint_test.go b/agent/consul/intention_endpoint_test.go index 199f3ede496..d4784722f2c 100644 --- a/agent/consul/intention_endpoint_test.go +++ b/agent/consul/intention_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/internal_endpoint.go b/agent/consul/internal_endpoint.go index 2b5e8a1942a..6a3efbc3daf 100644 --- a/agent/consul/internal_endpoint.go +++ b/agent/consul/internal_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/internal_endpoint_test.go b/agent/consul/internal_endpoint_test.go index 476411eb9f4..eafddb612f7 100644 --- a/agent/consul/internal_endpoint_test.go +++ b/agent/consul/internal_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/issue_test.go b/agent/consul/issue_test.go index 7839be0b953..675f58fb347 100644 --- a/agent/consul/issue_test.go +++ b/agent/consul/issue_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/kvs_endpoint.go b/agent/consul/kvs_endpoint.go index 3f2cbe1ccc5..183f95f7f8b 100644 --- a/agent/consul/kvs_endpoint.go +++ b/agent/consul/kvs_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/kvs_endpoint_test.go b/agent/consul/kvs_endpoint_test.go index 1289ac6553c..ca9960f4b6e 100644 --- a/agent/consul/kvs_endpoint_test.go +++ b/agent/consul/kvs_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader.go b/agent/consul/leader.go index d5eb00fbbfe..8334704fd39 100644 --- a/agent/consul/leader.go +++ b/agent/consul/leader.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_connect.go b/agent/consul/leader_connect.go index 0c57bc13a7f..f4779744f98 100644 --- a/agent/consul/leader_connect.go +++ b/agent/consul/leader_connect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_connect_ca.go b/agent/consul/leader_connect_ca.go index abb92f54b6b..10f730a5233 100644 --- a/agent/consul/leader_connect_ca.go +++ b/agent/consul/leader_connect_ca.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_connect_ca_test.go b/agent/consul/leader_connect_ca_test.go index 1e4e4d2af96..a0c5cb59762 100644 --- a/agent/consul/leader_connect_ca_test.go +++ b/agent/consul/leader_connect_ca_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_connect_test.go b/agent/consul/leader_connect_test.go index 9c1218f9c26..fc6c6644e7e 100644 --- a/agent/consul/leader_connect_test.go +++ b/agent/consul/leader_connect_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_federation_state_ae.go b/agent/consul/leader_federation_state_ae.go index 6cc0d4ba22a..fa46bea770b 100644 --- a/agent/consul/leader_federation_state_ae.go +++ b/agent/consul/leader_federation_state_ae.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_federation_state_ae_test.go b/agent/consul/leader_federation_state_ae_test.go index 597a9275300..ef3333da31d 100644 --- a/agent/consul/leader_federation_state_ae_test.go +++ b/agent/consul/leader_federation_state_ae_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_intentions.go b/agent/consul/leader_intentions.go index 9adc26795de..41d4529fb1a 100644 --- a/agent/consul/leader_intentions.go +++ b/agent/consul/leader_intentions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_intentions_oss.go b/agent/consul/leader_intentions_oss.go index db9c742bd1d..76970f39755 100644 --- a/agent/consul/leader_intentions_oss.go +++ b/agent/consul/leader_intentions_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/leader_intentions_oss_test.go b/agent/consul/leader_intentions_oss_test.go index ea9b8b6a4ff..7d144fb2e98 100644 --- a/agent/consul/leader_intentions_oss_test.go +++ b/agent/consul/leader_intentions_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/leader_intentions_test.go b/agent/consul/leader_intentions_test.go index e0dcb8b3d10..2975872a267 100644 --- a/agent/consul/leader_intentions_test.go +++ b/agent/consul/leader_intentions_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_log_verification.go b/agent/consul/leader_log_verification.go index 61fe84cd989..ef32ce17904 100644 --- a/agent/consul/leader_log_verification.go +++ b/agent/consul/leader_log_verification.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_metrics.go b/agent/consul/leader_metrics.go index 244d3fd5d02..bd36a52f660 100644 --- a/agent/consul/leader_metrics.go +++ b/agent/consul/leader_metrics.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_oss_test.go b/agent/consul/leader_oss_test.go index 6aab96f89a4..7ff6f64ee19 100644 --- a/agent/consul/leader_oss_test.go +++ b/agent/consul/leader_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/leader_peering.go b/agent/consul/leader_peering.go index 713ef42cf15..32f220164b6 100644 --- a/agent/consul/leader_peering.go +++ b/agent/consul/leader_peering.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_peering_test.go b/agent/consul/leader_peering_test.go index f8d9127d6bf..7ac8b387d34 100644 --- a/agent/consul/leader_peering_test.go +++ b/agent/consul/leader_peering_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/leader_test.go b/agent/consul/leader_test.go index e8bcb39a653..72f70a9ec14 100644 --- a/agent/consul/leader_test.go +++ b/agent/consul/leader_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/logging.go b/agent/consul/logging.go index 94cc38f9208..da07daa8feb 100644 --- a/agent/consul/logging.go +++ b/agent/consul/logging.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/logging_test.go b/agent/consul/logging_test.go index 8f747bb43d7..7f090992a7a 100644 --- a/agent/consul/logging_test.go +++ b/agent/consul/logging_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/merge.go b/agent/consul/merge.go index 553a980b38f..21b59f1aa92 100644 --- a/agent/consul/merge.go +++ b/agent/consul/merge.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/merge_oss.go b/agent/consul/merge_oss.go index 515bbbcd1a8..0f144ab21df 100644 --- a/agent/consul/merge_oss.go +++ b/agent/consul/merge_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/merge_oss_test.go b/agent/consul/merge_oss_test.go index 99333c7dd84..aef74f7ba36 100644 --- a/agent/consul/merge_oss_test.go +++ b/agent/consul/merge_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/merge_test.go b/agent/consul/merge_test.go index c508f6942de..66992136aa4 100644 --- a/agent/consul/merge_test.go +++ b/agent/consul/merge_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/multilimiter/multilimiter.go b/agent/consul/multilimiter/multilimiter.go index 13e01f8ebaa..f40e6c501ab 100644 --- a/agent/consul/multilimiter/multilimiter.go +++ b/agent/consul/multilimiter/multilimiter.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package multilimiter import ( diff --git a/agent/consul/multilimiter/multilimiter_test.go b/agent/consul/multilimiter/multilimiter_test.go index c34440ff407..991cd3b989d 100644 --- a/agent/consul/multilimiter/multilimiter_test.go +++ b/agent/consul/multilimiter/multilimiter_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package multilimiter import ( diff --git a/agent/consul/operator_autopilot_endpoint.go b/agent/consul/operator_autopilot_endpoint.go index babbb79561f..b6ef7d38e65 100644 --- a/agent/consul/operator_autopilot_endpoint.go +++ b/agent/consul/operator_autopilot_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/operator_autopilot_endpoint_test.go b/agent/consul/operator_autopilot_endpoint_test.go index a0a300c6dad..c9258e9aa27 100644 --- a/agent/consul/operator_autopilot_endpoint_test.go +++ b/agent/consul/operator_autopilot_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/operator_backend.go b/agent/consul/operator_backend.go index 0596d408ed1..a72128735ab 100644 --- a/agent/consul/operator_backend.go +++ b/agent/consul/operator_backend.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/operator_backend_test.go b/agent/consul/operator_backend_test.go index e6bb46c61b1..2189fe00630 100644 --- a/agent/consul/operator_backend_test.go +++ b/agent/consul/operator_backend_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/operator_endpoint.go b/agent/consul/operator_endpoint.go index 4dbe7251adb..33e73e6ee1d 100644 --- a/agent/consul/operator_endpoint.go +++ b/agent/consul/operator_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import "github.com/hashicorp/go-hclog" diff --git a/agent/consul/operator_raft_endpoint.go b/agent/consul/operator_raft_endpoint.go index 328f8ff964e..f619b611f7d 100644 --- a/agent/consul/operator_raft_endpoint.go +++ b/agent/consul/operator_raft_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/operator_raft_endpoint_test.go b/agent/consul/operator_raft_endpoint_test.go index be60ec66a31..7ce5b6e946c 100644 --- a/agent/consul/operator_raft_endpoint_test.go +++ b/agent/consul/operator_raft_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/operator_usage_endpoint.go b/agent/consul/operator_usage_endpoint.go index b49ac60bbdc..d23815b147c 100644 --- a/agent/consul/operator_usage_endpoint.go +++ b/agent/consul/operator_usage_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/options.go b/agent/consul/options.go index e3fca37e665..ac6bfc41065 100644 --- a/agent/consul/options.go +++ b/agent/consul/options.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/options_oss.go b/agent/consul/options_oss.go index 0718d309f3e..7604ddd87f9 100644 --- a/agent/consul/options_oss.go +++ b/agent/consul/options_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/peering_backend.go b/agent/consul/peering_backend.go index f5ac65b52cd..182d926c7d0 100644 --- a/agent/consul/peering_backend.go +++ b/agent/consul/peering_backend.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/peering_backend_oss.go b/agent/consul/peering_backend_oss.go index 18d567b3c10..81a133b3425 100644 --- a/agent/consul/peering_backend_oss.go +++ b/agent/consul/peering_backend_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/peering_backend_oss_test.go b/agent/consul/peering_backend_oss_test.go index 4e477e0d27f..410bf5f2342 100644 --- a/agent/consul/peering_backend_oss_test.go +++ b/agent/consul/peering_backend_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/peering_backend_test.go b/agent/consul/peering_backend_test.go index b5adb7c50dc..648873f9451 100644 --- a/agent/consul/peering_backend_test.go +++ b/agent/consul/peering_backend_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/prepared_query/template.go b/agent/consul/prepared_query/template.go index dfe96f14207..ef2e2abd4ca 100644 --- a/agent/consul/prepared_query/template.go +++ b/agent/consul/prepared_query/template.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package prepared_query import ( diff --git a/agent/consul/prepared_query/template_test.go b/agent/consul/prepared_query/template_test.go index 3fbf2d5afb0..d4f78402140 100644 --- a/agent/consul/prepared_query/template_test.go +++ b/agent/consul/prepared_query/template_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package prepared_query import ( diff --git a/agent/consul/prepared_query/walk.go b/agent/consul/prepared_query/walk.go index 09967c55be3..da53ce105b5 100644 --- a/agent/consul/prepared_query/walk.go +++ b/agent/consul/prepared_query/walk.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package prepared_query import ( diff --git a/agent/consul/prepared_query/walk_oss_test.go b/agent/consul/prepared_query/walk_oss_test.go index 0049a62cccf..dec84b241b0 100644 --- a/agent/consul/prepared_query/walk_oss_test.go +++ b/agent/consul/prepared_query/walk_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/prepared_query/walk_test.go b/agent/consul/prepared_query/walk_test.go index 12b71a2e355..a151d71c8e1 100644 --- a/agent/consul/prepared_query/walk_test.go +++ b/agent/consul/prepared_query/walk_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package prepared_query import ( diff --git a/agent/consul/prepared_query_endpoint.go b/agent/consul/prepared_query_endpoint.go index 2843082cc09..9c8c26335ac 100644 --- a/agent/consul/prepared_query_endpoint.go +++ b/agent/consul/prepared_query_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/prepared_query_endpoint_test.go b/agent/consul/prepared_query_endpoint_test.go index 1da472dbc03..0e365a30d48 100644 --- a/agent/consul/prepared_query_endpoint_test.go +++ b/agent/consul/prepared_query_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/raft_rpc.go b/agent/consul/raft_rpc.go index 08e23a1409c..7928ad31e2b 100644 --- a/agent/consul/raft_rpc.go +++ b/agent/consul/raft_rpc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/rate/handler.go b/agent/consul/rate/handler.go index f1860065d1b..2573894b1d5 100644 --- a/agent/consul/rate/handler.go +++ b/agent/consul/rate/handler.go @@ -1,4 +1,7 @@ -// Package rate implements server-side RPC rate limiting. +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +// package rate implements server-side RPC rate limiting. package rate import ( diff --git a/agent/consul/rate/handler_test.go b/agent/consul/rate/handler_test.go index 6a74fe7caa7..3b610a14765 100644 --- a/agent/consul/rate/handler_test.go +++ b/agent/consul/rate/handler_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package rate import ( diff --git a/agent/consul/rate/metrics.go b/agent/consul/rate/metrics.go index 6307bbc51f0..cbf796fa935 100644 --- a/agent/consul/rate/metrics.go +++ b/agent/consul/rate/metrics.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package rate import "github.com/armon/go-metrics/prometheus" diff --git a/agent/consul/replication.go b/agent/consul/replication.go index 4b6f74c5cdf..0d85d082653 100644 --- a/agent/consul/replication.go +++ b/agent/consul/replication.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/replication_test.go b/agent/consul/replication_test.go index 64d0388bf9a..e37e19b1f29 100644 --- a/agent/consul/replication_test.go +++ b/agent/consul/replication_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/rpc.go b/agent/consul/rpc.go index 2bad1a8b501..cef6d5cb915 100644 --- a/agent/consul/rpc.go +++ b/agent/consul/rpc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/rpc_test.go b/agent/consul/rpc_test.go index fa0107dd188..a4b7f7faaf9 100644 --- a/agent/consul/rpc_test.go +++ b/agent/consul/rpc_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/rtt.go b/agent/consul/rtt.go index caf8116ed0d..5db0a634b43 100644 --- a/agent/consul/rtt.go +++ b/agent/consul/rtt.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/rtt_test.go b/agent/consul/rtt_test.go index 9a488a37249..9420f36c836 100644 --- a/agent/consul/rtt_test.go +++ b/agent/consul/rtt_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/segment_oss.go b/agent/consul/segment_oss.go index 034e79c54ef..9dfd7a53fd7 100644 --- a/agent/consul/segment_oss.go +++ b/agent/consul/segment_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/serf_filter.go b/agent/consul/serf_filter.go index ebd6db75911..fd6911bf0ab 100644 --- a/agent/consul/serf_filter.go +++ b/agent/consul/serf_filter.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/serf_test.go b/agent/consul/serf_test.go index 8335468f4d3..62cc6d0a0ba 100644 --- a/agent/consul/serf_test.go +++ b/agent/consul/serf_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/server.go b/agent/consul/server.go index a51437a6efe..a9edbc69752 100644 --- a/agent/consul/server.go +++ b/agent/consul/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/server_connect.go b/agent/consul/server_connect.go index 9193604d6ac..496d059cb49 100644 --- a/agent/consul/server_connect.go +++ b/agent/consul/server_connect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/server_log_verification.go b/agent/consul/server_log_verification.go index cb95b9aeeee..5646e787609 100644 --- a/agent/consul/server_log_verification.go +++ b/agent/consul/server_log_verification.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/server_lookup.go b/agent/consul/server_lookup.go index 5d290b019e2..e1952d671d0 100644 --- a/agent/consul/server_lookup.go +++ b/agent/consul/server_lookup.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/server_lookup_test.go b/agent/consul/server_lookup_test.go index 7c0b131224a..5d3d3d4e0e4 100644 --- a/agent/consul/server_lookup_test.go +++ b/agent/consul/server_lookup_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/server_oss.go b/agent/consul/server_oss.go index 587321b5d11..868dd6ec96d 100644 --- a/agent/consul/server_oss.go +++ b/agent/consul/server_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/server_overview.go b/agent/consul/server_overview.go index 1c42f3483e9..62bdb344061 100644 --- a/agent/consul/server_overview.go +++ b/agent/consul/server_overview.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/server_overview_test.go b/agent/consul/server_overview_test.go index dc2d439e06c..ebb930a1e2b 100644 --- a/agent/consul/server_overview_test.go +++ b/agent/consul/server_overview_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/server_register.go b/agent/consul/server_register.go index 7268a390349..61f1daefc7d 100644 --- a/agent/consul/server_register.go +++ b/agent/consul/server_register.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import "github.com/hashicorp/consul/logging" diff --git a/agent/consul/server_serf.go b/agent/consul/server_serf.go index a515589303f..bb17235b14d 100644 --- a/agent/consul/server_serf.go +++ b/agent/consul/server_serf.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/server_test.go b/agent/consul/server_test.go index 6084847fc89..5fcbb453381 100644 --- a/agent/consul/server_test.go +++ b/agent/consul/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/servercert/manager.go b/agent/consul/servercert/manager.go index dd15e66a8f4..d343db4a08a 100644 --- a/agent/consul/servercert/manager.go +++ b/agent/consul/servercert/manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package servercert import ( diff --git a/agent/consul/servercert/manager_test.go b/agent/consul/servercert/manager_test.go index 6beec683fb5..048e0742294 100644 --- a/agent/consul/servercert/manager_test.go +++ b/agent/consul/servercert/manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package servercert import ( diff --git a/agent/consul/session_endpoint.go b/agent/consul/session_endpoint.go index 3affe357dee..6e41138f983 100644 --- a/agent/consul/session_endpoint.go +++ b/agent/consul/session_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/session_endpoint_test.go b/agent/consul/session_endpoint_test.go index 277d326f3eb..ae04d2658f9 100644 --- a/agent/consul/session_endpoint_test.go +++ b/agent/consul/session_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/session_timers.go b/agent/consul/session_timers.go index 223cc0e3184..b4c1b425cb2 100644 --- a/agent/consul/session_timers.go +++ b/agent/consul/session_timers.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/session_timers_test.go b/agent/consul/session_timers_test.go index 51d2bdc2cfe..d44ed2b366f 100644 --- a/agent/consul/session_timers_test.go +++ b/agent/consul/session_timers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/session_ttl.go b/agent/consul/session_ttl.go index 1b2d1ff0c76..7866ec8fed1 100644 --- a/agent/consul/session_ttl.go +++ b/agent/consul/session_ttl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/session_ttl_test.go b/agent/consul/session_ttl_test.go index 2ebff6c0929..5cd720f3f89 100644 --- a/agent/consul/session_ttl_test.go +++ b/agent/consul/session_ttl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/snapshot_endpoint.go b/agent/consul/snapshot_endpoint.go index 102bc0a38a5..4c77a3efbce 100644 --- a/agent/consul/snapshot_endpoint.go +++ b/agent/consul/snapshot_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // The snapshot endpoint is a special non-RPC endpoint that supports streaming // for taking and restoring snapshots for disaster recovery. This gets wired // directly into Consul's stream handler, and a new TCP connection is made for diff --git a/agent/consul/snapshot_endpoint_test.go b/agent/consul/snapshot_endpoint_test.go index 29f60618be6..f401bb72e38 100644 --- a/agent/consul/snapshot_endpoint_test.go +++ b/agent/consul/snapshot_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/state/acl.go b/agent/consul/state/acl.go index dab6d3ba082..1774ee87937 100644 --- a/agent/consul/state/acl.go +++ b/agent/consul/state/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/acl_events.go b/agent/consul/state/acl_events.go index 3d219f1fa5a..3767d2d2d15 100644 --- a/agent/consul/state/acl_events.go +++ b/agent/consul/state/acl_events.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/acl_events_test.go b/agent/consul/state/acl_events_test.go index 49560299650..303d54a25be 100644 --- a/agent/consul/state/acl_events_test.go +++ b/agent/consul/state/acl_events_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/acl_oss.go b/agent/consul/state/acl_oss.go index 68671307132..62bf5c1dc8f 100644 --- a/agent/consul/state/acl_oss.go +++ b/agent/consul/state/acl_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/acl_oss_test.go b/agent/consul/state/acl_oss_test.go index f86afc1a343..4d3bcdcfc00 100644 --- a/agent/consul/state/acl_oss_test.go +++ b/agent/consul/state/acl_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/acl_schema.go b/agent/consul/state/acl_schema.go index c3fdff40a1b..b4e7fc6dcd9 100644 --- a/agent/consul/state/acl_schema.go +++ b/agent/consul/state/acl_schema.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/acl_test.go b/agent/consul/state/acl_test.go index d3edd73481d..78824315d08 100644 --- a/agent/consul/state/acl_test.go +++ b/agent/consul/state/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/autopilot.go b/agent/consul/state/autopilot.go index 20b29147046..472ce4bfc31 100644 --- a/agent/consul/state/autopilot.go +++ b/agent/consul/state/autopilot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/autopilot_test.go b/agent/consul/state/autopilot_test.go index 7567e2bf3c6..f26163bc4ec 100644 --- a/agent/consul/state/autopilot_test.go +++ b/agent/consul/state/autopilot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/catalog.go b/agent/consul/state/catalog.go index 3d181346f52..a19a97b11cb 100644 --- a/agent/consul/state/catalog.go +++ b/agent/consul/state/catalog.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/catalog_events.go b/agent/consul/state/catalog_events.go index 553fb4eef12..0cd7258d5e8 100644 --- a/agent/consul/state/catalog_events.go +++ b/agent/consul/state/catalog_events.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/catalog_events_oss.go b/agent/consul/state/catalog_events_oss.go index e59636d3182..72e3993b5d5 100644 --- a/agent/consul/state/catalog_events_oss.go +++ b/agent/consul/state/catalog_events_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/catalog_events_oss_test.go b/agent/consul/state/catalog_events_oss_test.go index ace7cfe7120..91b4a6ab565 100644 --- a/agent/consul/state/catalog_events_oss_test.go +++ b/agent/consul/state/catalog_events_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/catalog_events_test.go b/agent/consul/state/catalog_events_test.go index f64d7102e41..46e0b269617 100644 --- a/agent/consul/state/catalog_events_test.go +++ b/agent/consul/state/catalog_events_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/catalog_oss.go b/agent/consul/state/catalog_oss.go index fccbf6984ef..78acf8797b5 100644 --- a/agent/consul/state/catalog_oss.go +++ b/agent/consul/state/catalog_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/catalog_oss_test.go b/agent/consul/state/catalog_oss_test.go index e0b8dd74fcb..e8c71812f86 100644 --- a/agent/consul/state/catalog_oss_test.go +++ b/agent/consul/state/catalog_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/catalog_schema.go b/agent/consul/state/catalog_schema.go index cad35bf4368..6d883623572 100644 --- a/agent/consul/state/catalog_schema.go +++ b/agent/consul/state/catalog_schema.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/catalog_test.go b/agent/consul/state/catalog_test.go index 969990d83b5..31e5fc91456 100644 --- a/agent/consul/state/catalog_test.go +++ b/agent/consul/state/catalog_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/config_entry.go b/agent/consul/state/config_entry.go index e14b8e1ae36..1bc35a0fcea 100644 --- a/agent/consul/state/config_entry.go +++ b/agent/consul/state/config_entry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/config_entry_events.go b/agent/consul/state/config_entry_events.go index 820af558bc8..b1975b17673 100644 --- a/agent/consul/state/config_entry_events.go +++ b/agent/consul/state/config_entry_events.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/config_entry_events_test.go b/agent/consul/state/config_entry_events_test.go index 57e1cdb4672..1ee92770bc6 100644 --- a/agent/consul/state/config_entry_events_test.go +++ b/agent/consul/state/config_entry_events_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/config_entry_intention.go b/agent/consul/state/config_entry_intention.go index 17183e7ceec..aefbf3ad219 100644 --- a/agent/consul/state/config_entry_intention.go +++ b/agent/consul/state/config_entry_intention.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/config_entry_intention_oss.go b/agent/consul/state/config_entry_intention_oss.go index c954c147c6c..6d479f9ad6b 100644 --- a/agent/consul/state/config_entry_intention_oss.go +++ b/agent/consul/state/config_entry_intention_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/config_entry_oss.go b/agent/consul/state/config_entry_oss.go index ac4d1d6cb05..604c88d3743 100644 --- a/agent/consul/state/config_entry_oss.go +++ b/agent/consul/state/config_entry_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/config_entry_oss_test.go b/agent/consul/state/config_entry_oss_test.go index 16f153f3b69..02fb3be78a2 100644 --- a/agent/consul/state/config_entry_oss_test.go +++ b/agent/consul/state/config_entry_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/config_entry_sameness_group_oss.go b/agent/consul/state/config_entry_sameness_group_oss.go index 0fc6fd03ee3..b5110ac8486 100644 --- a/agent/consul/state/config_entry_sameness_group_oss.go +++ b/agent/consul/state/config_entry_sameness_group_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/config_entry_sameness_group_oss_test.go b/agent/consul/state/config_entry_sameness_group_oss_test.go index c6f24719184..ce4aeb8394f 100644 --- a/agent/consul/state/config_entry_sameness_group_oss_test.go +++ b/agent/consul/state/config_entry_sameness_group_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/config_entry_schema.go b/agent/consul/state/config_entry_schema.go index 7ef560eb1f1..7e6d9d2e607 100644 --- a/agent/consul/state/config_entry_schema.go +++ b/agent/consul/state/config_entry_schema.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/config_entry_test.go b/agent/consul/state/config_entry_test.go index ea98909239f..ec295833621 100644 --- a/agent/consul/state/config_entry_test.go +++ b/agent/consul/state/config_entry_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/connect_ca.go b/agent/consul/state/connect_ca.go index b0703114700..99e99637b6a 100644 --- a/agent/consul/state/connect_ca.go +++ b/agent/consul/state/connect_ca.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/connect_ca_events.go b/agent/consul/state/connect_ca_events.go index ae907af0e06..554a867dcd5 100644 --- a/agent/consul/state/connect_ca_events.go +++ b/agent/consul/state/connect_ca_events.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/connect_ca_events_test.go b/agent/consul/state/connect_ca_events_test.go index ebd52b33320..bf13eefcb93 100644 --- a/agent/consul/state/connect_ca_events_test.go +++ b/agent/consul/state/connect_ca_events_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/connect_ca_test.go b/agent/consul/state/connect_ca_test.go index 44f1746f71f..124392cf1a4 100644 --- a/agent/consul/state/connect_ca_test.go +++ b/agent/consul/state/connect_ca_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/coordinate.go b/agent/consul/state/coordinate.go index 19ae722f824..f2eb7b30425 100644 --- a/agent/consul/state/coordinate.go +++ b/agent/consul/state/coordinate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/coordinate_oss.go b/agent/consul/state/coordinate_oss.go index 8c86b768a00..17956e964ee 100644 --- a/agent/consul/state/coordinate_oss.go +++ b/agent/consul/state/coordinate_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/coordinate_oss_test.go b/agent/consul/state/coordinate_oss_test.go index d5d15547be9..a4608245060 100644 --- a/agent/consul/state/coordinate_oss_test.go +++ b/agent/consul/state/coordinate_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/coordinate_test.go b/agent/consul/state/coordinate_test.go index 0335ac5f415..0fe582eab5a 100644 --- a/agent/consul/state/coordinate_test.go +++ b/agent/consul/state/coordinate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/delay_oss.go b/agent/consul/state/delay_oss.go index 8167d6bfe4d..a2471ae6362 100644 --- a/agent/consul/state/delay_oss.go +++ b/agent/consul/state/delay_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/delay_test.go b/agent/consul/state/delay_test.go index 0653a14468e..40f1842efd6 100644 --- a/agent/consul/state/delay_test.go +++ b/agent/consul/state/delay_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/events.go b/agent/consul/state/events.go index 15765a0b41f..9eca1321cb0 100644 --- a/agent/consul/state/events.go +++ b/agent/consul/state/events.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/events_test.go b/agent/consul/state/events_test.go index 5d3da1e0e9e..9954627a8d7 100644 --- a/agent/consul/state/events_test.go +++ b/agent/consul/state/events_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/federation_state.go b/agent/consul/state/federation_state.go index c7eababf262..556caa4b485 100644 --- a/agent/consul/state/federation_state.go +++ b/agent/consul/state/federation_state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/graveyard.go b/agent/consul/state/graveyard.go index 70584688113..5b6a95dafba 100644 --- a/agent/consul/state/graveyard.go +++ b/agent/consul/state/graveyard.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/graveyard_oss.go b/agent/consul/state/graveyard_oss.go index bccbe1ec72c..963ed6632e5 100644 --- a/agent/consul/state/graveyard_oss.go +++ b/agent/consul/state/graveyard_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/graveyard_test.go b/agent/consul/state/graveyard_test.go index f8452be09df..af50673e9e7 100644 --- a/agent/consul/state/graveyard_test.go +++ b/agent/consul/state/graveyard_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/index_connect_test.go b/agent/consul/state/index_connect_test.go index 9331318e55d..a598fab68ac 100644 --- a/agent/consul/state/index_connect_test.go +++ b/agent/consul/state/index_connect_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/indexer.go b/agent/consul/state/indexer.go index 83f205a2f8f..f360eb2befe 100644 --- a/agent/consul/state/indexer.go +++ b/agent/consul/state/indexer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/intention.go b/agent/consul/state/intention.go index c7bc8ea56ee..5dc7c27e934 100644 --- a/agent/consul/state/intention.go +++ b/agent/consul/state/intention.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/intention_oss.go b/agent/consul/state/intention_oss.go index 6c99e674968..750f7d1c87c 100644 --- a/agent/consul/state/intention_oss.go +++ b/agent/consul/state/intention_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/intention_test.go b/agent/consul/state/intention_test.go index 3c2dac3f28a..9162bb29f68 100644 --- a/agent/consul/state/intention_test.go +++ b/agent/consul/state/intention_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/kvs.go b/agent/consul/state/kvs.go index 62797125c81..0d0a419ae5c 100644 --- a/agent/consul/state/kvs.go +++ b/agent/consul/state/kvs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/kvs_oss.go b/agent/consul/state/kvs_oss.go index 149fe2c4706..10528e3be6d 100644 --- a/agent/consul/state/kvs_oss.go +++ b/agent/consul/state/kvs_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/kvs_oss_test.go b/agent/consul/state/kvs_oss_test.go index 7cee3689387..adf41fe7dbe 100644 --- a/agent/consul/state/kvs_oss_test.go +++ b/agent/consul/state/kvs_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/kvs_test.go b/agent/consul/state/kvs_test.go index 842e06ec240..4ced02586f0 100644 --- a/agent/consul/state/kvs_test.go +++ b/agent/consul/state/kvs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/memdb.go b/agent/consul/state/memdb.go index 22803471a59..bd0e58b2d67 100644 --- a/agent/consul/state/memdb.go +++ b/agent/consul/state/memdb.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/operations_oss.go b/agent/consul/state/operations_oss.go index c1a3300ad58..08de08015b4 100644 --- a/agent/consul/state/operations_oss.go +++ b/agent/consul/state/operations_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/peering.go b/agent/consul/state/peering.go index 1c8c2472ae7..ba28441f4dd 100644 --- a/agent/consul/state/peering.go +++ b/agent/consul/state/peering.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/peering_oss.go b/agent/consul/state/peering_oss.go index b36a5ccaa11..a54e2d37ddf 100644 --- a/agent/consul/state/peering_oss.go +++ b/agent/consul/state/peering_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/peering_oss_test.go b/agent/consul/state/peering_oss_test.go index d2c37008069..41d1bce452d 100644 --- a/agent/consul/state/peering_oss_test.go +++ b/agent/consul/state/peering_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/peering_test.go b/agent/consul/state/peering_test.go index daa1de995f0..8125b96860a 100644 --- a/agent/consul/state/peering_test.go +++ b/agent/consul/state/peering_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/prepared_query.go b/agent/consul/state/prepared_query.go index bf4aecb0f5d..7638d925170 100644 --- a/agent/consul/state/prepared_query.go +++ b/agent/consul/state/prepared_query.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/prepared_query_index.go b/agent/consul/state/prepared_query_index.go index b3c30807aa3..ac768463666 100644 --- a/agent/consul/state/prepared_query_index.go +++ b/agent/consul/state/prepared_query_index.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/prepared_query_index_test.go b/agent/consul/state/prepared_query_index_test.go index b81a6126760..a486047f57e 100644 --- a/agent/consul/state/prepared_query_index_test.go +++ b/agent/consul/state/prepared_query_index_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/prepared_query_test.go b/agent/consul/state/prepared_query_test.go index 6c66b9eeec3..f0b0cd95f44 100644 --- a/agent/consul/state/prepared_query_test.go +++ b/agent/consul/state/prepared_query_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/query.go b/agent/consul/state/query.go index 2e4a7886900..2256aab995f 100644 --- a/agent/consul/state/query.go +++ b/agent/consul/state/query.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/query_oss.go b/agent/consul/state/query_oss.go index d68a9b258ed..98108d6ff02 100644 --- a/agent/consul/state/query_oss.go +++ b/agent/consul/state/query_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/schema.go b/agent/consul/state/schema.go index cdce6d97923..9e0e6db2fee 100644 --- a/agent/consul/state/schema.go +++ b/agent/consul/state/schema.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/schema_oss.go b/agent/consul/state/schema_oss.go index fbe3cd7e56f..eecde09aab6 100644 --- a/agent/consul/state/schema_oss.go +++ b/agent/consul/state/schema_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/schema_oss_test.go b/agent/consul/state/schema_oss_test.go index 77581d0d978..55fc3ee54c1 100644 --- a/agent/consul/state/schema_oss_test.go +++ b/agent/consul/state/schema_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/schema_test.go b/agent/consul/state/schema_test.go index b19c0bd246f..f67b18e8c3b 100644 --- a/agent/consul/state/schema_test.go +++ b/agent/consul/state/schema_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/session.go b/agent/consul/state/session.go index 72d0791661b..5e666f80fd8 100644 --- a/agent/consul/state/session.go +++ b/agent/consul/state/session.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/session_oss.go b/agent/consul/state/session_oss.go index 40e0b280afa..1854fb3e144 100644 --- a/agent/consul/state/session_oss.go +++ b/agent/consul/state/session_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/session_test.go b/agent/consul/state/session_test.go index a4eae8a5073..eab42995816 100644 --- a/agent/consul/state/session_test.go +++ b/agent/consul/state/session_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/state_store.go b/agent/consul/state/state_store.go index 598409a2cef..fce3b3c9615 100644 --- a/agent/consul/state/state_store.go +++ b/agent/consul/state/state_store.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/state_store_oss_test.go b/agent/consul/state/state_store_oss_test.go index 99f6d2950ad..5515b193f68 100644 --- a/agent/consul/state/state_store_oss_test.go +++ b/agent/consul/state/state_store_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/state_store_test.go b/agent/consul/state/state_store_test.go index a61365d82c7..dfe8c988b32 100644 --- a/agent/consul/state/state_store_test.go +++ b/agent/consul/state/state_store_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/store_integration_test.go b/agent/consul/state/store_integration_test.go index d6e93044d88..9395aa1cb18 100644 --- a/agent/consul/state/store_integration_test.go +++ b/agent/consul/state/store_integration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/system_metadata.go b/agent/consul/state/system_metadata.go index 029ab8898bf..ed802efbd1c 100644 --- a/agent/consul/state/system_metadata.go +++ b/agent/consul/state/system_metadata.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/system_metadata_test.go b/agent/consul/state/system_metadata_test.go index dbb196b4c3f..59f8bcd30c3 100644 --- a/agent/consul/state/system_metadata_test.go +++ b/agent/consul/state/system_metadata_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/tombstone_gc.go b/agent/consul/state/tombstone_gc.go index c20fd34004d..3fc19c5cd9c 100644 --- a/agent/consul/state/tombstone_gc.go +++ b/agent/consul/state/tombstone_gc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/tombstone_gc_test.go b/agent/consul/state/tombstone_gc_test.go index d1aa5581d6c..d0fd11fa7c5 100644 --- a/agent/consul/state/tombstone_gc_test.go +++ b/agent/consul/state/tombstone_gc_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/txn.go b/agent/consul/state/txn.go index af6e989955b..81d8acd0392 100644 --- a/agent/consul/state/txn.go +++ b/agent/consul/state/txn.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/txn_test.go b/agent/consul/state/txn_test.go index a7694089b0e..a128badf42e 100644 --- a/agent/consul/state/txn_test.go +++ b/agent/consul/state/txn_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/usage.go b/agent/consul/state/usage.go index 9db30e5b2d1..8e455241c29 100644 --- a/agent/consul/state/usage.go +++ b/agent/consul/state/usage.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/state/usage_oss.go b/agent/consul/state/usage_oss.go index 6279c10970d..1824cf12399 100644 --- a/agent/consul/state/usage_oss.go +++ b/agent/consul/state/usage_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/state/usage_test.go b/agent/consul/state/usage_test.go index b54e3dcfa0a..6ccaddb9f7e 100644 --- a/agent/consul/state/usage_test.go +++ b/agent/consul/state/usage_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package state import ( diff --git a/agent/consul/stats_fetcher.go b/agent/consul/stats_fetcher.go index 334472be5c3..d52930e85ad 100644 --- a/agent/consul/stats_fetcher.go +++ b/agent/consul/stats_fetcher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/stats_fetcher_test.go b/agent/consul/stats_fetcher_test.go index 018f3ccc913..783424393a7 100644 --- a/agent/consul/stats_fetcher_test.go +++ b/agent/consul/stats_fetcher_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/status_endpoint.go b/agent/consul/status_endpoint.go index b82baf84262..efa2fa2cf4f 100644 --- a/agent/consul/status_endpoint.go +++ b/agent/consul/status_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/status_endpoint_test.go b/agent/consul/status_endpoint_test.go index c531de7789c..6d95d7f6fd4 100644 --- a/agent/consul/status_endpoint_test.go +++ b/agent/consul/status_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/stream/event.go b/agent/consul/stream/event.go index 34b715c5e85..db6f3a6312f 100644 --- a/agent/consul/stream/event.go +++ b/agent/consul/stream/event.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + /* Package stream provides a publish/subscribe system for events produced by changes to the state store. diff --git a/agent/consul/stream/event_buffer.go b/agent/consul/stream/event_buffer.go index b28d38a540c..1c7f8c2b956 100644 --- a/agent/consul/stream/event_buffer.go +++ b/agent/consul/stream/event_buffer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/agent/consul/stream/event_buffer_test.go b/agent/consul/stream/event_buffer_test.go index afc9728b6f9..b6ec48e1775 100644 --- a/agent/consul/stream/event_buffer_test.go +++ b/agent/consul/stream/event_buffer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/agent/consul/stream/event_publisher.go b/agent/consul/stream/event_publisher.go index 06591fe6456..f39ea22869a 100644 --- a/agent/consul/stream/event_publisher.go +++ b/agent/consul/stream/event_publisher.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/agent/consul/stream/event_publisher_test.go b/agent/consul/stream/event_publisher_test.go index 6f081fe3d63..13efd0fb564 100644 --- a/agent/consul/stream/event_publisher_test.go +++ b/agent/consul/stream/event_publisher_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/agent/consul/stream/event_snapshot.go b/agent/consul/stream/event_snapshot.go index 19caa6d689e..6b4b693689b 100644 --- a/agent/consul/stream/event_snapshot.go +++ b/agent/consul/stream/event_snapshot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream // eventSnapshot represents the state of memdb for a given topic and key at some diff --git a/agent/consul/stream/event_snapshot_test.go b/agent/consul/stream/event_snapshot_test.go index 5e3b1c6d1a7..0888b90c39c 100644 --- a/agent/consul/stream/event_snapshot_test.go +++ b/agent/consul/stream/event_snapshot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/agent/consul/stream/event_test.go b/agent/consul/stream/event_test.go index a9b381fe4d3..ff6f07c10ea 100644 --- a/agent/consul/stream/event_test.go +++ b/agent/consul/stream/event_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/agent/consul/stream/noop.go b/agent/consul/stream/noop.go index 37cd0dbff07..1cd35ea922e 100644 --- a/agent/consul/stream/noop.go +++ b/agent/consul/stream/noop.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/agent/consul/stream/string_types.go b/agent/consul/stream/string_types.go index 568f972991b..6e6c4ef8e92 100644 --- a/agent/consul/stream/string_types.go +++ b/agent/consul/stream/string_types.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream // StringSubject can be used as a Subject for Events sent to the EventPublisher diff --git a/agent/consul/stream/subscription.go b/agent/consul/stream/subscription.go index 9e6c47e6f08..40286768abe 100644 --- a/agent/consul/stream/subscription.go +++ b/agent/consul/stream/subscription.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/agent/consul/stream/subscription_test.go b/agent/consul/stream/subscription_test.go index 80aed3dbb3a..9bf0b95b5d5 100644 --- a/agent/consul/stream/subscription_test.go +++ b/agent/consul/stream/subscription_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package stream import ( diff --git a/agent/consul/subscribe_backend.go b/agent/consul/subscribe_backend.go index a82bb98c0b2..9afcd4fc567 100644 --- a/agent/consul/subscribe_backend.go +++ b/agent/consul/subscribe_backend.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/subscribe_backend_test.go b/agent/consul/subscribe_backend_test.go index b0ae2366e7a..01c81845186 100644 --- a/agent/consul/subscribe_backend_test.go +++ b/agent/consul/subscribe_backend_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/system_metadata.go b/agent/consul/system_metadata.go index f1603225738..3c25b2729b6 100644 --- a/agent/consul/system_metadata.go +++ b/agent/consul/system_metadata.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/system_metadata_test.go b/agent/consul/system_metadata_test.go index 633aa6bc407..084bad04615 100644 --- a/agent/consul/system_metadata_test.go +++ b/agent/consul/system_metadata_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/txn_endpoint.go b/agent/consul/txn_endpoint.go index a1977b91966..df0a7011750 100644 --- a/agent/consul/txn_endpoint.go +++ b/agent/consul/txn_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/txn_endpoint_test.go b/agent/consul/txn_endpoint_test.go index 1cd33f18d1a..f5654fdc001 100644 --- a/agent/consul/txn_endpoint_test.go +++ b/agent/consul/txn_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/usagemetrics/usagemetrics.go b/agent/consul/usagemetrics/usagemetrics.go index 9f1a928fb85..169238c375e 100644 --- a/agent/consul/usagemetrics/usagemetrics.go +++ b/agent/consul/usagemetrics/usagemetrics.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package usagemetrics import ( diff --git a/agent/consul/usagemetrics/usagemetrics_oss.go b/agent/consul/usagemetrics/usagemetrics_oss.go index 884363b2aa4..17853b4fcf6 100644 --- a/agent/consul/usagemetrics/usagemetrics_oss.go +++ b/agent/consul/usagemetrics/usagemetrics_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/usagemetrics/usagemetrics_oss_test.go b/agent/consul/usagemetrics/usagemetrics_oss_test.go index 0480861bf7c..450c23a35c8 100644 --- a/agent/consul/usagemetrics/usagemetrics_oss_test.go +++ b/agent/consul/usagemetrics/usagemetrics_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/consul/usagemetrics/usagemetrics_test.go b/agent/consul/usagemetrics/usagemetrics_test.go index cf0cd01e01a..7bdf396b257 100644 --- a/agent/consul/usagemetrics/usagemetrics_test.go +++ b/agent/consul/usagemetrics/usagemetrics_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package usagemetrics import ( diff --git a/agent/consul/util.go b/agent/consul/util.go index e12608ac5fc..6fd6c77da33 100644 --- a/agent/consul/util.go +++ b/agent/consul/util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/util_test.go b/agent/consul/util_test.go index 48b608e694c..c41b7748919 100644 --- a/agent/consul/util_test.go +++ b/agent/consul/util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package consul import ( diff --git a/agent/consul/wanfed/pool.go b/agent/consul/wanfed/pool.go index 6a9d9935205..9320087b3f7 100644 --- a/agent/consul/wanfed/pool.go +++ b/agent/consul/wanfed/pool.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package wanfed import ( diff --git a/agent/consul/wanfed/wanfed.go b/agent/consul/wanfed/wanfed.go index c528500c0a7..e82eddcfa88 100644 --- a/agent/consul/wanfed/wanfed.go +++ b/agent/consul/wanfed/wanfed.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package wanfed import ( diff --git a/agent/consul/wanfed/wanfed_test.go b/agent/consul/wanfed/wanfed_test.go index a4a18fc1714..ef45c197c17 100644 --- a/agent/consul/wanfed/wanfed_test.go +++ b/agent/consul/wanfed/wanfed_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package wanfed import ( diff --git a/agent/consul/watch/server_local.go b/agent/consul/watch/server_local.go index e9a45c82ce3..f407d2c1648 100644 --- a/agent/consul/watch/server_local.go +++ b/agent/consul/watch/server_local.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package watch import ( diff --git a/agent/consul/watch/server_local_test.go b/agent/consul/watch/server_local_test.go index cd803cebab1..1f96b1ec00d 100644 --- a/agent/consul/watch/server_local_test.go +++ b/agent/consul/watch/server_local_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package watch import ( diff --git a/agent/consul/xdscapacity/capacity.go b/agent/consul/xdscapacity/capacity.go index 31fb53ea92b..6396841d63f 100644 --- a/agent/consul/xdscapacity/capacity.go +++ b/agent/consul/xdscapacity/capacity.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xdscapacity import ( diff --git a/agent/consul/xdscapacity/capacity_test.go b/agent/consul/xdscapacity/capacity_test.go index 1b564949c4b..d26453feae6 100644 --- a/agent/consul/xdscapacity/capacity_test.go +++ b/agent/consul/xdscapacity/capacity_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xdscapacity import ( diff --git a/agent/coordinate_endpoint.go b/agent/coordinate_endpoint.go index a238f52ae6a..744498c0553 100644 --- a/agent/coordinate_endpoint.go +++ b/agent/coordinate_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/coordinate_endpoint_test.go b/agent/coordinate_endpoint_test.go index 71492d909c4..fe6deeef956 100644 --- a/agent/coordinate_endpoint_test.go +++ b/agent/coordinate_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/debug/host.go b/agent/debug/host.go index 0323508a328..5116bf7499f 100644 --- a/agent/debug/host.go +++ b/agent/debug/host.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package debug import ( diff --git a/agent/debug/host_test.go b/agent/debug/host_test.go index 1678fcda855..1289e21b4f0 100644 --- a/agent/debug/host_test.go +++ b/agent/debug/host_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package debug import ( diff --git a/agent/delegate_mock_test.go b/agent/delegate_mock_test.go index 67ba0abd8d7..9f91a6a0d91 100644 --- a/agent/delegate_mock_test.go +++ b/agent/delegate_mock_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/denylist.go b/agent/denylist.go index 75a351538af..b6214652981 100644 --- a/agent/denylist.go +++ b/agent/denylist.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/denylist_test.go b/agent/denylist_test.go index 8b13d122008..f9370723a7c 100644 --- a/agent/denylist_test.go +++ b/agent/denylist_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/discovery_chain_endpoint.go b/agent/discovery_chain_endpoint.go index 1b39a909665..a3aaa421f93 100644 --- a/agent/discovery_chain_endpoint.go +++ b/agent/discovery_chain_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/discovery_chain_endpoint_test.go b/agent/discovery_chain_endpoint_test.go index f83fa49293f..38e871dd867 100644 --- a/agent/discovery_chain_endpoint_test.go +++ b/agent/discovery_chain_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/dns.go b/agent/dns.go index 3dce6410d75..2687e647cd3 100644 --- a/agent/dns.go +++ b/agent/dns.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/dns/dns.go b/agent/dns/dns.go index 74d5773e84d..9f8e785a390 100644 --- a/agent/dns/dns.go +++ b/agent/dns/dns.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dns import ( diff --git a/agent/dns/dns_test.go b/agent/dns/dns_test.go index 59d92efd0a5..91dc3ea72a9 100644 --- a/agent/dns/dns_test.go +++ b/agent/dns/dns_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dns import ( diff --git a/agent/dns/validation.go b/agent/dns/validation.go index 8a73b0dd09a..cd66acf6fa8 100644 --- a/agent/dns/validation.go +++ b/agent/dns/validation.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dns import ( diff --git a/agent/dns/validation_test.go b/agent/dns/validation_test.go index b4b44a7f891..bcb65adf14a 100644 --- a/agent/dns/validation_test.go +++ b/agent/dns/validation_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dns_test import ( diff --git a/agent/dns_oss.go b/agent/dns_oss.go index 6ccbe2f8dfb..011b22a1095 100644 --- a/agent/dns_oss.go +++ b/agent/dns_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/dns_oss_test.go b/agent/dns_oss_test.go index c3cf264c687..7bbe6fdd501 100644 --- a/agent/dns_oss_test.go +++ b/agent/dns_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/dns_test.go b/agent/dns_test.go index 1cc74213890..b9d8f86a78e 100644 --- a/agent/dns_test.go +++ b/agent/dns_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/enterprise_delegate_oss.go b/agent/enterprise_delegate_oss.go index 876c8837afe..20bfeec2209 100644 --- a/agent/enterprise_delegate_oss.go +++ b/agent/enterprise_delegate_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/envoyextensions/builtin/aws-lambda/aws_lambda.go b/agent/envoyextensions/builtin/aws-lambda/aws_lambda.go index bcff99a638a..bfc47fffd13 100644 --- a/agent/envoyextensions/builtin/aws-lambda/aws_lambda.go +++ b/agent/envoyextensions/builtin/aws-lambda/aws_lambda.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package awslambda import ( diff --git a/agent/envoyextensions/builtin/aws-lambda/aws_lambda_test.go b/agent/envoyextensions/builtin/aws-lambda/aws_lambda_test.go index 214a5bc34da..b5563fb3343 100644 --- a/agent/envoyextensions/builtin/aws-lambda/aws_lambda_test.go +++ b/agent/envoyextensions/builtin/aws-lambda/aws_lambda_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package awslambda import ( diff --git a/agent/envoyextensions/builtin/aws-lambda/copied.go b/agent/envoyextensions/builtin/aws-lambda/copied.go index 7f276323a73..b68efaa92e4 100644 --- a/agent/envoyextensions/builtin/aws-lambda/copied.go +++ b/agent/envoyextensions/builtin/aws-lambda/copied.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package awslambda import ( diff --git a/agent/envoyextensions/builtin/http/localratelimit/copied.go b/agent/envoyextensions/builtin/http/localratelimit/copied.go index ec1d4988eb7..ea18f1edaa6 100644 --- a/agent/envoyextensions/builtin/http/localratelimit/copied.go +++ b/agent/envoyextensions/builtin/http/localratelimit/copied.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package localratelimit import ( diff --git a/agent/envoyextensions/builtin/http/localratelimit/ratelimit.go b/agent/envoyextensions/builtin/http/localratelimit/ratelimit.go index 3ffea6f1ff8..c5940b6de6e 100644 --- a/agent/envoyextensions/builtin/http/localratelimit/ratelimit.go +++ b/agent/envoyextensions/builtin/http/localratelimit/ratelimit.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package localratelimit import ( diff --git a/agent/envoyextensions/builtin/http/localratelimit/ratelimit_test.go b/agent/envoyextensions/builtin/http/localratelimit/ratelimit_test.go index 5c68b1f51ea..4d8344ad1d0 100644 --- a/agent/envoyextensions/builtin/http/localratelimit/ratelimit_test.go +++ b/agent/envoyextensions/builtin/http/localratelimit/ratelimit_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package localratelimit import ( diff --git a/agent/envoyextensions/builtin/lua/copied.go b/agent/envoyextensions/builtin/lua/copied.go index f9d14b94ccc..162d0fa9179 100644 --- a/agent/envoyextensions/builtin/lua/copied.go +++ b/agent/envoyextensions/builtin/lua/copied.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lua import ( diff --git a/agent/envoyextensions/builtin/lua/lua.go b/agent/envoyextensions/builtin/lua/lua.go index 76c802f6407..f331be42c3c 100644 --- a/agent/envoyextensions/builtin/lua/lua.go +++ b/agent/envoyextensions/builtin/lua/lua.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lua import ( diff --git a/agent/envoyextensions/builtin/lua/lua_test.go b/agent/envoyextensions/builtin/lua/lua_test.go index f67de306008..d80a3b333ab 100644 --- a/agent/envoyextensions/builtin/lua/lua_test.go +++ b/agent/envoyextensions/builtin/lua/lua_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package lua import ( diff --git a/agent/envoyextensions/registered_extensions.go b/agent/envoyextensions/registered_extensions.go index fed8d3c59e8..2f44fe068a0 100644 --- a/agent/envoyextensions/registered_extensions.go +++ b/agent/envoyextensions/registered_extensions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package envoyextensions import ( diff --git a/agent/envoyextensions/registered_extensions_test.go b/agent/envoyextensions/registered_extensions_test.go index 07f6e966845..746810ffc3b 100644 --- a/agent/envoyextensions/registered_extensions_test.go +++ b/agent/envoyextensions/registered_extensions_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package envoyextensions import ( diff --git a/agent/event_endpoint.go b/agent/event_endpoint.go index 971cb9deb84..034dec30561 100644 --- a/agent/event_endpoint.go +++ b/agent/event_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/event_endpoint_test.go b/agent/event_endpoint_test.go index 9cc7a7eef9a..4be21a6914b 100644 --- a/agent/event_endpoint_test.go +++ b/agent/event_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/exec/exec.go b/agent/exec/exec.go index 19097fe0fbc..d4b4bfafd1f 100644 --- a/agent/exec/exec.go +++ b/agent/exec/exec.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package exec import ( diff --git a/agent/exec/exec_unix.go b/agent/exec/exec_unix.go index 0bbdad8c596..32ff23249e3 100644 --- a/agent/exec/exec_unix.go +++ b/agent/exec/exec_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/agent/exec/exec_windows.go b/agent/exec/exec_windows.go index bb96e72c3d7..1a0cb4c82c8 100644 --- a/agent/exec/exec_windows.go +++ b/agent/exec/exec_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows // +build windows diff --git a/agent/federation_state_endpoint.go b/agent/federation_state_endpoint.go index bac8807ec4b..0bec145ae60 100644 --- a/agent/federation_state_endpoint.go +++ b/agent/federation_state_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/grpc-external/forward.go b/agent/grpc-external/forward.go index 353490a5932..c0ed064ac80 100644 --- a/agent/grpc-external/forward.go +++ b/agent/grpc-external/forward.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package external import ( diff --git a/agent/grpc-external/limiter/limiter.go b/agent/grpc-external/limiter/limiter.go index 9c0fcf795ba..f995f963049 100644 --- a/agent/grpc-external/limiter/limiter.go +++ b/agent/grpc-external/limiter/limiter.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // package limiter provides primatives for limiting the number of concurrent // operations in-flight. package limiter diff --git a/agent/grpc-external/limiter/limiter_test.go b/agent/grpc-external/limiter/limiter_test.go index 7f5b9654a0a..fa165a66706 100644 --- a/agent/grpc-external/limiter/limiter_test.go +++ b/agent/grpc-external/limiter/limiter_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package limiter import ( diff --git a/agent/grpc-external/metadata_test.go b/agent/grpc-external/metadata_test.go index 036581a3555..b2edb8fbf1f 100644 --- a/agent/grpc-external/metadata_test.go +++ b/agent/grpc-external/metadata_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package external import ( diff --git a/agent/grpc-external/options.go b/agent/grpc-external/options.go index 851a04cbfe4..a25a4482990 100644 --- a/agent/grpc-external/options.go +++ b/agent/grpc-external/options.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package external import ( diff --git a/agent/grpc-external/server.go b/agent/grpc-external/server.go index d0cccdbdf41..0513d22e223 100644 --- a/agent/grpc-external/server.go +++ b/agent/grpc-external/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package external import ( diff --git a/agent/grpc-external/services/acl/login.go b/agent/grpc-external/services/acl/login.go index 629ea093ec3..c8c399d108b 100644 --- a/agent/grpc-external/services/acl/login.go +++ b/agent/grpc-external/services/acl/login.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/agent/grpc-external/services/acl/login_test.go b/agent/grpc-external/services/acl/login_test.go index 9b05842d485..e858618a906 100644 --- a/agent/grpc-external/services/acl/login_test.go +++ b/agent/grpc-external/services/acl/login_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/agent/grpc-external/services/acl/logout.go b/agent/grpc-external/services/acl/logout.go index a9fa60673bd..bd3bb5e3e42 100644 --- a/agent/grpc-external/services/acl/logout.go +++ b/agent/grpc-external/services/acl/logout.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/agent/grpc-external/services/acl/logout_test.go b/agent/grpc-external/services/acl/logout_test.go index 276d26652c5..69491db5e3b 100644 --- a/agent/grpc-external/services/acl/logout_test.go +++ b/agent/grpc-external/services/acl/logout_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/agent/grpc-external/services/acl/server.go b/agent/grpc-external/services/acl/server.go index 7f0994f0400..5513950e02e 100644 --- a/agent/grpc-external/services/acl/server.go +++ b/agent/grpc-external/services/acl/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/agent/grpc-external/services/acl/server_test.go b/agent/grpc-external/services/acl/server_test.go index d2b381156e7..89c49bf226a 100644 --- a/agent/grpc-external/services/acl/server_test.go +++ b/agent/grpc-external/services/acl/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package acl import ( diff --git a/agent/grpc-external/services/connectca/server.go b/agent/grpc-external/services/connectca/server.go index fb09ab47fef..c90962e180c 100644 --- a/agent/grpc-external/services/connectca/server.go +++ b/agent/grpc-external/services/connectca/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connectca import ( diff --git a/agent/grpc-external/services/connectca/server_test.go b/agent/grpc-external/services/connectca/server_test.go index 1026860ae34..84636e9e758 100644 --- a/agent/grpc-external/services/connectca/server_test.go +++ b/agent/grpc-external/services/connectca/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connectca import ( diff --git a/agent/grpc-external/services/connectca/sign.go b/agent/grpc-external/services/connectca/sign.go index 891d8c98891..59c1a6f2835 100644 --- a/agent/grpc-external/services/connectca/sign.go +++ b/agent/grpc-external/services/connectca/sign.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connectca import ( diff --git a/agent/grpc-external/services/connectca/sign_test.go b/agent/grpc-external/services/connectca/sign_test.go index 5aa1f114b38..e43978e0b90 100644 --- a/agent/grpc-external/services/connectca/sign_test.go +++ b/agent/grpc-external/services/connectca/sign_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connectca import ( diff --git a/agent/grpc-external/services/connectca/watch_roots.go b/agent/grpc-external/services/connectca/watch_roots.go index 09dfd95720c..14927e2188a 100644 --- a/agent/grpc-external/services/connectca/watch_roots.go +++ b/agent/grpc-external/services/connectca/watch_roots.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connectca import ( diff --git a/agent/grpc-external/services/connectca/watch_roots_test.go b/agent/grpc-external/services/connectca/watch_roots_test.go index 1f7b8e89683..bfdb76f33bd 100644 --- a/agent/grpc-external/services/connectca/watch_roots_test.go +++ b/agent/grpc-external/services/connectca/watch_roots_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package connectca import ( diff --git a/agent/grpc-external/services/dataplane/get_envoy_bootstrap_params.go b/agent/grpc-external/services/dataplane/get_envoy_bootstrap_params.go index b51a0910e05..13bbd1c9f94 100644 --- a/agent/grpc-external/services/dataplane/get_envoy_bootstrap_params.go +++ b/agent/grpc-external/services/dataplane/get_envoy_bootstrap_params.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dataplane import ( diff --git a/agent/grpc-external/services/dataplane/get_envoy_bootstrap_params_test.go b/agent/grpc-external/services/dataplane/get_envoy_bootstrap_params_test.go index 807dbd9e731..322d2f65274 100644 --- a/agent/grpc-external/services/dataplane/get_envoy_bootstrap_params_test.go +++ b/agent/grpc-external/services/dataplane/get_envoy_bootstrap_params_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dataplane import ( diff --git a/agent/grpc-external/services/dataplane/get_supported_features.go b/agent/grpc-external/services/dataplane/get_supported_features.go index a37d381b2ce..6d5edac1c53 100644 --- a/agent/grpc-external/services/dataplane/get_supported_features.go +++ b/agent/grpc-external/services/dataplane/get_supported_features.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dataplane import ( diff --git a/agent/grpc-external/services/dataplane/get_supported_features_test.go b/agent/grpc-external/services/dataplane/get_supported_features_test.go index 86fcdb0c889..cbd483ac9fa 100644 --- a/agent/grpc-external/services/dataplane/get_supported_features_test.go +++ b/agent/grpc-external/services/dataplane/get_supported_features_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dataplane import ( diff --git a/agent/grpc-external/services/dataplane/server.go b/agent/grpc-external/services/dataplane/server.go index b665b368a6c..87728938638 100644 --- a/agent/grpc-external/services/dataplane/server.go +++ b/agent/grpc-external/services/dataplane/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dataplane import ( diff --git a/agent/grpc-external/services/dataplane/server_test.go b/agent/grpc-external/services/dataplane/server_test.go index ece296afd62..15ac272871e 100644 --- a/agent/grpc-external/services/dataplane/server_test.go +++ b/agent/grpc-external/services/dataplane/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dataplane import ( diff --git a/agent/grpc-external/services/dns/server.go b/agent/grpc-external/services/dns/server.go index 50b12f5d914..a9733c40666 100644 --- a/agent/grpc-external/services/dns/server.go +++ b/agent/grpc-external/services/dns/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dns import ( diff --git a/agent/grpc-external/services/dns/server_test.go b/agent/grpc-external/services/dns/server_test.go index dd27097097f..0144eccc0cd 100644 --- a/agent/grpc-external/services/dns/server_test.go +++ b/agent/grpc-external/services/dns/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package dns import ( diff --git a/agent/grpc-external/services/peerstream/health_snapshot.go b/agent/grpc-external/services/peerstream/health_snapshot.go index 196f3e4d6cd..dd9a10c6746 100644 --- a/agent/grpc-external/services/peerstream/health_snapshot.go +++ b/agent/grpc-external/services/peerstream/health_snapshot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/health_snapshot_test.go b/agent/grpc-external/services/peerstream/health_snapshot_test.go index afd83f220ba..7ea404f3854 100644 --- a/agent/grpc-external/services/peerstream/health_snapshot_test.go +++ b/agent/grpc-external/services/peerstream/health_snapshot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/replication.go b/agent/grpc-external/services/peerstream/replication.go index 8a71c9bc6bb..8f1491dadbf 100644 --- a/agent/grpc-external/services/peerstream/replication.go +++ b/agent/grpc-external/services/peerstream/replication.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/server.go b/agent/grpc-external/services/peerstream/server.go index da21e3edaa6..e0dd4d759df 100644 --- a/agent/grpc-external/services/peerstream/server.go +++ b/agent/grpc-external/services/peerstream/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/server_test.go b/agent/grpc-external/services/peerstream/server_test.go index 7f584c95cbb..cb7c60e3cf0 100644 --- a/agent/grpc-external/services/peerstream/server_test.go +++ b/agent/grpc-external/services/peerstream/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/stream_resources.go b/agent/grpc-external/services/peerstream/stream_resources.go index 5522b8f4e45..7e729642a80 100644 --- a/agent/grpc-external/services/peerstream/stream_resources.go +++ b/agent/grpc-external/services/peerstream/stream_resources.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/stream_test.go b/agent/grpc-external/services/peerstream/stream_test.go index 055d2ff97cd..140ae947dc5 100644 --- a/agent/grpc-external/services/peerstream/stream_test.go +++ b/agent/grpc-external/services/peerstream/stream_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/stream_tracker.go b/agent/grpc-external/services/peerstream/stream_tracker.go index f36ca055d10..a93457b9254 100644 --- a/agent/grpc-external/services/peerstream/stream_tracker.go +++ b/agent/grpc-external/services/peerstream/stream_tracker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/stream_tracker_test.go b/agent/grpc-external/services/peerstream/stream_tracker_test.go index cfe95d4012b..d676587a252 100644 --- a/agent/grpc-external/services/peerstream/stream_tracker_test.go +++ b/agent/grpc-external/services/peerstream/stream_tracker_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/subscription_blocking.go b/agent/grpc-external/services/peerstream/subscription_blocking.go index fe0cd4d7890..7fa8bc1eff5 100644 --- a/agent/grpc-external/services/peerstream/subscription_blocking.go +++ b/agent/grpc-external/services/peerstream/subscription_blocking.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/subscription_manager.go b/agent/grpc-external/services/peerstream/subscription_manager.go index 58c629d5cd2..42a4d13925f 100644 --- a/agent/grpc-external/services/peerstream/subscription_manager.go +++ b/agent/grpc-external/services/peerstream/subscription_manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/subscription_manager_test.go b/agent/grpc-external/services/peerstream/subscription_manager_test.go index 1e663ba4fd8..4ed912368e8 100644 --- a/agent/grpc-external/services/peerstream/subscription_manager_test.go +++ b/agent/grpc-external/services/peerstream/subscription_manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/subscription_state.go b/agent/grpc-external/services/peerstream/subscription_state.go index 47318c430b3..dba315370de 100644 --- a/agent/grpc-external/services/peerstream/subscription_state.go +++ b/agent/grpc-external/services/peerstream/subscription_state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/subscription_state_test.go b/agent/grpc-external/services/peerstream/subscription_state_test.go index abb1ce767d5..3cba66c9c2b 100644 --- a/agent/grpc-external/services/peerstream/subscription_state_test.go +++ b/agent/grpc-external/services/peerstream/subscription_state_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/subscription_view.go b/agent/grpc-external/services/peerstream/subscription_view.go index 691507984c9..21897bf97b3 100644 --- a/agent/grpc-external/services/peerstream/subscription_view.go +++ b/agent/grpc-external/services/peerstream/subscription_view.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/subscription_view_test.go b/agent/grpc-external/services/peerstream/subscription_view_test.go index d900d9524e1..a51ca57e290 100644 --- a/agent/grpc-external/services/peerstream/subscription_view_test.go +++ b/agent/grpc-external/services/peerstream/subscription_view_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/peerstream/testing.go b/agent/grpc-external/services/peerstream/testing.go index 2e6e614e9a0..2208249dc6f 100644 --- a/agent/grpc-external/services/peerstream/testing.go +++ b/agent/grpc-external/services/peerstream/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peerstream import ( diff --git a/agent/grpc-external/services/resource/server.go b/agent/grpc-external/services/resource/server.go index 105d87ff5e1..f47ba9bf3bc 100644 --- a/agent/grpc-external/services/resource/server.go +++ b/agent/grpc-external/services/resource/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package resource import ( diff --git a/agent/grpc-external/services/resource/server_test.go b/agent/grpc-external/services/resource/server_test.go index 6c7cd478fc9..80185c08594 100644 --- a/agent/grpc-external/services/resource/server_test.go +++ b/agent/grpc-external/services/resource/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package resource import ( diff --git a/agent/grpc-external/services/serverdiscovery/server.go b/agent/grpc-external/services/serverdiscovery/server.go index c7b2e0e1d44..47761712212 100644 --- a/agent/grpc-external/services/serverdiscovery/server.go +++ b/agent/grpc-external/services/serverdiscovery/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serverdiscovery import ( diff --git a/agent/grpc-external/services/serverdiscovery/server_test.go b/agent/grpc-external/services/serverdiscovery/server_test.go index 35146f554ff..cac32bd31ee 100644 --- a/agent/grpc-external/services/serverdiscovery/server_test.go +++ b/agent/grpc-external/services/serverdiscovery/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serverdiscovery import ( diff --git a/agent/grpc-external/services/serverdiscovery/watch_servers.go b/agent/grpc-external/services/serverdiscovery/watch_servers.go index a672560b9ce..31a2cb92c83 100644 --- a/agent/grpc-external/services/serverdiscovery/watch_servers.go +++ b/agent/grpc-external/services/serverdiscovery/watch_servers.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serverdiscovery import ( diff --git a/agent/grpc-external/services/serverdiscovery/watch_servers_test.go b/agent/grpc-external/services/serverdiscovery/watch_servers_test.go index 784c8ba915f..d58d0be407c 100644 --- a/agent/grpc-external/services/serverdiscovery/watch_servers_test.go +++ b/agent/grpc-external/services/serverdiscovery/watch_servers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package serverdiscovery import ( diff --git a/agent/grpc-external/stats_test.go b/agent/grpc-external/stats_test.go index 31591ee9727..eed834064e0 100644 --- a/agent/grpc-external/stats_test.go +++ b/agent/grpc-external/stats_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package external import ( diff --git a/agent/grpc-external/testutils/acl.go b/agent/grpc-external/testutils/acl.go index a443a38ca23..ec2d149a3ca 100644 --- a/agent/grpc-external/testutils/acl.go +++ b/agent/grpc-external/testutils/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutils import ( diff --git a/agent/grpc-external/testutils/fsm.go b/agent/grpc-external/testutils/fsm.go index aea426a4ea1..0e7b645a65e 100644 --- a/agent/grpc-external/testutils/fsm.go +++ b/agent/grpc-external/testutils/fsm.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutils import ( diff --git a/agent/grpc-external/testutils/server.go b/agent/grpc-external/testutils/server.go index 53d779d9127..eecb10bb954 100644 --- a/agent/grpc-external/testutils/server.go +++ b/agent/grpc-external/testutils/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutils import ( diff --git a/agent/grpc-external/utils.go b/agent/grpc-external/utils.go index bb218ddf0e0..b3a3d3d2026 100644 --- a/agent/grpc-external/utils.go +++ b/agent/grpc-external/utils.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package external import ( diff --git a/agent/grpc-internal/balancer/balancer.go b/agent/grpc-internal/balancer/balancer.go index 64521d4567f..4941a808731 100644 --- a/agent/grpc-internal/balancer/balancer.go +++ b/agent/grpc-internal/balancer/balancer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // package balancer implements a custom gRPC load balancer. // // Similarly to gRPC's built-in "pick_first" balancer, our balancer will pin the diff --git a/agent/grpc-internal/balancer/balancer_test.go b/agent/grpc-internal/balancer/balancer_test.go index 8406e7c7b70..35912aab269 100644 --- a/agent/grpc-internal/balancer/balancer_test.go +++ b/agent/grpc-internal/balancer/balancer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package balancer import ( diff --git a/agent/grpc-internal/balancer/registry.go b/agent/grpc-internal/balancer/registry.go index 778b2c31c5f..f11ea6c8ceb 100644 --- a/agent/grpc-internal/balancer/registry.go +++ b/agent/grpc-internal/balancer/registry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package balancer import ( diff --git a/agent/grpc-internal/client.go b/agent/grpc-internal/client.go index 38010ac2452..98a6f1fd81c 100644 --- a/agent/grpc-internal/client.go +++ b/agent/grpc-internal/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package internal import ( diff --git a/agent/grpc-internal/client_test.go b/agent/grpc-internal/client_test.go index 65e08feace7..ad6906a958f 100644 --- a/agent/grpc-internal/client_test.go +++ b/agent/grpc-internal/client_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package internal import ( diff --git a/agent/grpc-internal/handler.go b/agent/grpc-internal/handler.go index 6d556042342..de7ed24d688 100644 --- a/agent/grpc-internal/handler.go +++ b/agent/grpc-internal/handler.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package internal import ( diff --git a/agent/grpc-internal/handler_test.go b/agent/grpc-internal/handler_test.go index 080aaa93878..e39f93be39a 100644 --- a/agent/grpc-internal/handler_test.go +++ b/agent/grpc-internal/handler_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package internal import ( diff --git a/agent/grpc-internal/resolver/registry.go b/agent/grpc-internal/resolver/registry.go index 582103b9eae..650915becc3 100644 --- a/agent/grpc-internal/resolver/registry.go +++ b/agent/grpc-internal/resolver/registry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package resolver import ( diff --git a/agent/grpc-internal/resolver/resolver.go b/agent/grpc-internal/resolver/resolver.go index b5b76de6efc..f4d1e95ea02 100644 --- a/agent/grpc-internal/resolver/resolver.go +++ b/agent/grpc-internal/resolver/resolver.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package resolver import ( diff --git a/agent/grpc-internal/server_test.go b/agent/grpc-internal/server_test.go index 26166c1e050..83774c712fc 100644 --- a/agent/grpc-internal/server_test.go +++ b/agent/grpc-internal/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package internal import ( diff --git a/agent/grpc-internal/services/subscribe/logger.go b/agent/grpc-internal/services/subscribe/logger.go index 12350454402..faaa63ff842 100644 --- a/agent/grpc-internal/services/subscribe/logger.go +++ b/agent/grpc-internal/services/subscribe/logger.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package subscribe import ( diff --git a/agent/grpc-internal/services/subscribe/subscribe.go b/agent/grpc-internal/services/subscribe/subscribe.go index 01c61e53abf..08c501b6dd0 100644 --- a/agent/grpc-internal/services/subscribe/subscribe.go +++ b/agent/grpc-internal/services/subscribe/subscribe.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package subscribe import ( diff --git a/agent/grpc-internal/services/subscribe/subscribe_test.go b/agent/grpc-internal/services/subscribe/subscribe_test.go index efb826c0c91..54a267f7c40 100644 --- a/agent/grpc-internal/services/subscribe/subscribe_test.go +++ b/agent/grpc-internal/services/subscribe/subscribe_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package subscribe import ( diff --git a/agent/grpc-internal/stats_test.go b/agent/grpc-internal/stats_test.go index 82ea690e940..5da26f512cc 100644 --- a/agent/grpc-internal/stats_test.go +++ b/agent/grpc-internal/stats_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package internal import ( diff --git a/agent/grpc-internal/tracker.go b/agent/grpc-internal/tracker.go index 779e116e8b1..a313f88e535 100644 --- a/agent/grpc-internal/tracker.go +++ b/agent/grpc-internal/tracker.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package internal import ( diff --git a/agent/grpc-middleware/auth_interceptor.go b/agent/grpc-middleware/auth_interceptor.go index bc9082c75e1..0472b71f00e 100644 --- a/agent/grpc-middleware/auth_interceptor.go +++ b/agent/grpc-middleware/auth_interceptor.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package middleware import ( diff --git a/agent/grpc-middleware/auth_interceptor_test.go b/agent/grpc-middleware/auth_interceptor_test.go index 512d5ed5501..18f9334cc9b 100644 --- a/agent/grpc-middleware/auth_interceptor_test.go +++ b/agent/grpc-middleware/auth_interceptor_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package middleware import ( diff --git a/agent/grpc-middleware/handshake.go b/agent/grpc-middleware/handshake.go index 8fe4c2739ed..82b352bb5ac 100644 --- a/agent/grpc-middleware/handshake.go +++ b/agent/grpc-middleware/handshake.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package middleware import ( diff --git a/agent/grpc-middleware/handshake_test.go b/agent/grpc-middleware/handshake_test.go index 78f4f4f87a7..f987a6689af 100644 --- a/agent/grpc-middleware/handshake_test.go +++ b/agent/grpc-middleware/handshake_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package middleware import ( diff --git a/agent/grpc-middleware/rate.go b/agent/grpc-middleware/rate.go index e60445936b5..6f84fd36c16 100644 --- a/agent/grpc-middleware/rate.go +++ b/agent/grpc-middleware/rate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package middleware import ( diff --git a/agent/grpc-middleware/rate_test.go b/agent/grpc-middleware/rate_test.go index a82b448eabe..0a71d232465 100644 --- a/agent/grpc-middleware/rate_test.go +++ b/agent/grpc-middleware/rate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package middleware import ( diff --git a/agent/grpc-middleware/recovery.go b/agent/grpc-middleware/recovery.go index c562683ca35..cf1cbabe4e0 100644 --- a/agent/grpc-middleware/recovery.go +++ b/agent/grpc-middleware/recovery.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package middleware import ( diff --git a/agent/grpc-middleware/stats.go b/agent/grpc-middleware/stats.go index 3a1b3f23e0f..564d14a844b 100644 --- a/agent/grpc-middleware/stats.go +++ b/agent/grpc-middleware/stats.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package middleware import ( diff --git a/agent/grpc-middleware/testutil/fake_sink.go b/agent/grpc-middleware/testutil/fake_sink.go index 7439d78a262..c121481ee24 100644 --- a/agent/grpc-middleware/testutil/fake_sink.go +++ b/agent/grpc-middleware/testutil/fake_sink.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testutil import ( diff --git a/agent/grpc-middleware/testutil/testservice/buf.gen.yaml b/agent/grpc-middleware/testutil/testservice/buf.gen.yaml index c654680d4e7..b8ba317a333 100644 --- a/agent/grpc-middleware/testutil/testservice/buf.gen.yaml +++ b/agent/grpc-middleware/testutil/testservice/buf.gen.yaml @@ -1,3 +1,6 @@ +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + version: v1 managed: enabled: true diff --git a/agent/grpc-middleware/testutil/testservice/fake_service.go b/agent/grpc-middleware/testutil/testservice/fake_service.go index f9999cc71f3..4428e173740 100644 --- a/agent/grpc-middleware/testutil/testservice/fake_service.go +++ b/agent/grpc-middleware/testutil/testservice/fake_service.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testservice import ( diff --git a/agent/grpc-middleware/testutil/testservice/simple.pb.go b/agent/grpc-middleware/testutil/testservice/simple.pb.go index 1dcee8ad393..a2981c2f799 100644 --- a/agent/grpc-middleware/testutil/testservice/simple.pb.go +++ b/agent/grpc-middleware/testutil/testservice/simple.pb.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.1 diff --git a/agent/grpc-middleware/testutil/testservice/simple.proto b/agent/grpc-middleware/testutil/testservice/simple.proto index bcace657ac7..c8ce3d58118 100644 --- a/agent/grpc-middleware/testutil/testservice/simple.proto +++ b/agent/grpc-middleware/testutil/testservice/simple.proto @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + syntax = "proto3"; package testservice; diff --git a/agent/hcp/bootstrap/bootstrap.go b/agent/hcp/bootstrap/bootstrap.go index a55bbf49aee..55e1231f5cf 100644 --- a/agent/hcp/bootstrap/bootstrap.go +++ b/agent/hcp/bootstrap/bootstrap.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package bootstrap handles bootstrapping an agent's config from HCP. It must be a // separate package from other HCP components because it has a dependency on // agent/config while other components need to be imported and run within the diff --git a/agent/hcp/bootstrap/testing.go b/agent/hcp/bootstrap/testing.go index b1a05a7e50b..10e1f8fe49c 100644 --- a/agent/hcp/bootstrap/testing.go +++ b/agent/hcp/bootstrap/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package bootstrap import ( diff --git a/agent/hcp/client.go b/agent/hcp/client.go index 5b8f942bd95..e48bb0f65f7 100644 --- a/agent/hcp/client.go +++ b/agent/hcp/client.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hcp import ( diff --git a/agent/hcp/config/config.go b/agent/hcp/config/config.go index 98135710463..8430891cbd7 100644 --- a/agent/hcp/config/config.go +++ b/agent/hcp/config/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package config import ( diff --git a/agent/hcp/deps.go b/agent/hcp/deps.go index 418d02620ee..6575b8d6798 100644 --- a/agent/hcp/deps.go +++ b/agent/hcp/deps.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hcp import ( diff --git a/agent/hcp/discover/discover.go b/agent/hcp/discover/discover.go index 8707a03a555..43bf0c77191 100644 --- a/agent/hcp/discover/discover.go +++ b/agent/hcp/discover/discover.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package discover import ( diff --git a/agent/hcp/manager.go b/agent/hcp/manager.go index 9e3624f6af2..9d5a2b44abc 100644 --- a/agent/hcp/manager.go +++ b/agent/hcp/manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hcp import ( diff --git a/agent/hcp/manager_test.go b/agent/hcp/manager_test.go index cb4d729b7fa..1e56f6631f9 100644 --- a/agent/hcp/manager_test.go +++ b/agent/hcp/manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hcp import ( diff --git a/agent/hcp/scada/capabilities.go b/agent/hcp/scada/capabilities.go index ab60251f085..c18192ae6e9 100644 --- a/agent/hcp/scada/capabilities.go +++ b/agent/hcp/scada/capabilities.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scada import "github.com/hashicorp/hcp-scada-provider/capability" diff --git a/agent/hcp/scada/scada.go b/agent/hcp/scada/scada.go index b74f762b1ab..5aba819bda4 100644 --- a/agent/hcp/scada/scada.go +++ b/agent/hcp/scada/scada.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package scada import ( diff --git a/agent/hcp/testing.go b/agent/hcp/testing.go index e32602777da..dbcd7f479b0 100644 --- a/agent/hcp/testing.go +++ b/agent/hcp/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package hcp import ( diff --git a/agent/hcp/testserver/main.go b/agent/hcp/testserver/main.go index 0166d006824..ffdd4cac51a 100644 --- a/agent/hcp/testserver/main.go +++ b/agent/hcp/testserver/main.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package main import ( diff --git a/agent/health_endpoint.go b/agent/health_endpoint.go index 8060d93bd5d..ea3d315f6b8 100644 --- a/agent/health_endpoint.go +++ b/agent/health_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/health_endpoint_test.go b/agent/health_endpoint_test.go index 8217fca69b4..3a589be0d78 100644 --- a/agent/health_endpoint_test.go +++ b/agent/health_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/http.go b/agent/http.go index ae5068ab160..701674b5556 100644 --- a/agent/http.go +++ b/agent/http.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/http_decode_test.go b/agent/http_decode_test.go index a11f4ce8311..03d1b9191fa 100644 --- a/agent/http_decode_test.go +++ b/agent/http_decode_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent // This file contains tests for JSON unmarshaling. diff --git a/agent/http_oss.go b/agent/http_oss.go index 94eb575c36e..6aafdaa2c20 100644 --- a/agent/http_oss.go +++ b/agent/http_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/http_oss_test.go b/agent/http_oss_test.go index 4bb392f6185..60a95679792 100644 --- a/agent/http_oss_test.go +++ b/agent/http_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/http_register.go b/agent/http_register.go index 5af1e52fe12..df3998472d4 100644 --- a/agent/http_register.go +++ b/agent/http_register.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent func init() { diff --git a/agent/http_test.go b/agent/http_test.go index 7f95e38ce76..37acc5f8ee1 100644 --- a/agent/http_test.go +++ b/agent/http_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/intentions_endpoint.go b/agent/intentions_endpoint.go index 7144f026f1d..2353c5bdac2 100644 --- a/agent/intentions_endpoint.go +++ b/agent/intentions_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/intentions_endpoint_oss_test.go b/agent/intentions_endpoint_oss_test.go index eb04d978bde..1eb8f829394 100644 --- a/agent/intentions_endpoint_oss_test.go +++ b/agent/intentions_endpoint_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/intentions_endpoint_test.go b/agent/intentions_endpoint_test.go index 6bd7a5fec2b..161b8b5139d 100644 --- a/agent/intentions_endpoint_test.go +++ b/agent/intentions_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/keyring.go b/agent/keyring.go index ad4496ead18..3d96880f03a 100644 --- a/agent/keyring.go +++ b/agent/keyring.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/keyring_test.go b/agent/keyring_test.go index 26b29b74761..7ce5d2cd4b9 100644 --- a/agent/keyring_test.go +++ b/agent/keyring_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/kvs_endpoint.go b/agent/kvs_endpoint.go index ce65604b556..d5ad8cabc3d 100644 --- a/agent/kvs_endpoint.go +++ b/agent/kvs_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/kvs_endpoint_test.go b/agent/kvs_endpoint_test.go index 6f4421c6b42..6ea5efced20 100644 --- a/agent/kvs_endpoint_test.go +++ b/agent/kvs_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/local/state.go b/agent/local/state.go index 3ef1725dad6..cd1cfa3ed41 100644 --- a/agent/local/state.go +++ b/agent/local/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package local import ( diff --git a/agent/local/state_internal_test.go b/agent/local/state_internal_test.go index 836ac4f9657..ba68e20f287 100644 --- a/agent/local/state_internal_test.go +++ b/agent/local/state_internal_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package local import ( diff --git a/agent/local/state_test.go b/agent/local/state_test.go index 52f24d8b29c..372bf5b8ca4 100644 --- a/agent/local/state_test.go +++ b/agent/local/state_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package local_test import ( diff --git a/agent/local/testing.go b/agent/local/testing.go index 283c68c5fd9..5303cb6b0c4 100644 --- a/agent/local/testing.go +++ b/agent/local/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package local import ( diff --git a/agent/log-drop/log-drop.go b/agent/log-drop/log-drop.go index 49991c4e0f1..54bc09c5a8c 100644 --- a/agent/log-drop/log-drop.go +++ b/agent/log-drop/log-drop.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logdrop import ( diff --git a/agent/log-drop/log-drop_test.go b/agent/log-drop/log-drop_test.go index aadc8f9a8e1..fdb61a059e5 100644 --- a/agent/log-drop/log-drop_test.go +++ b/agent/log-drop/log-drop_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package logdrop import ( diff --git a/agent/metadata/build.go b/agent/metadata/build.go index 721a2a0af07..b50fa96acc7 100644 --- a/agent/metadata/build.go +++ b/agent/metadata/build.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package metadata import ( diff --git a/agent/metadata/build_test.go b/agent/metadata/build_test.go index 7b516cf358f..4688db2e185 100644 --- a/agent/metadata/build_test.go +++ b/agent/metadata/build_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package metadata import ( diff --git a/agent/metadata/server.go b/agent/metadata/server.go index bb0c2633644..b2a7238cb9c 100644 --- a/agent/metadata/server.go +++ b/agent/metadata/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package metadata import ( diff --git a/agent/metadata/server_internal_test.go b/agent/metadata/server_internal_test.go index 01c7b411439..5f3d47724ee 100644 --- a/agent/metadata/server_internal_test.go +++ b/agent/metadata/server_internal_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package metadata import ( diff --git a/agent/metadata/server_test.go b/agent/metadata/server_test.go index 69130212248..8ee63fa3b41 100644 --- a/agent/metadata/server_test.go +++ b/agent/metadata/server_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package metadata_test import ( diff --git a/agent/metrics.go b/agent/metrics.go index 6406f22bf6d..8fd3f87a239 100644 --- a/agent/metrics.go +++ b/agent/metrics.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/metrics/testing.go b/agent/metrics/testing.go index 53dac409e0f..0fc3455ab5e 100644 --- a/agent/metrics/testing.go +++ b/agent/metrics/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package metrics import ( diff --git a/agent/metrics_test.go b/agent/metrics_test.go index 6f75a4d233b..76da0e55f29 100644 --- a/agent/metrics_test.go +++ b/agent/metrics_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/mock/notify.go b/agent/mock/notify.go index ccbee20c4ce..1aa700b31d2 100644 --- a/agent/mock/notify.go +++ b/agent/mock/notify.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package mock import ( diff --git a/agent/nodeid.go b/agent/nodeid.go index 4e6f3e8d5f0..1e5823aef7c 100644 --- a/agent/nodeid.go +++ b/agent/nodeid.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/nodeid_test.go b/agent/nodeid_test.go index da9df2bd235..d48889bf6d8 100644 --- a/agent/nodeid_test.go +++ b/agent/nodeid_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/notify.go b/agent/notify.go index 52968c23ee3..eec501f098a 100644 --- a/agent/notify.go +++ b/agent/notify.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/notify_test.go b/agent/notify_test.go index de6ff7fb509..fe08800ae2e 100644 --- a/agent/notify_test.go +++ b/agent/notify_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/operator_endpoint.go b/agent/operator_endpoint.go index d916e22edc5..099f3dcfe4b 100644 --- a/agent/operator_endpoint.go +++ b/agent/operator_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/operator_endpoint_oss.go b/agent/operator_endpoint_oss.go index 9367cc367a6..366899cd96a 100644 --- a/agent/operator_endpoint_oss.go +++ b/agent/operator_endpoint_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/operator_endpoint_oss_test.go b/agent/operator_endpoint_oss_test.go index 95c8ea80782..ea144cffa69 100644 --- a/agent/operator_endpoint_oss_test.go +++ b/agent/operator_endpoint_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/operator_endpoint_test.go b/agent/operator_endpoint_test.go index 25e3caf75c9..4d90dbb2249 100644 --- a/agent/operator_endpoint_test.go +++ b/agent/operator_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/peering_endpoint.go b/agent/peering_endpoint.go index df5cc414ad6..5047958c758 100644 --- a/agent/peering_endpoint.go +++ b/agent/peering_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/peering_endpoint_oss_test.go b/agent/peering_endpoint_oss_test.go index e579bb62ba7..997251580be 100644 --- a/agent/peering_endpoint_oss_test.go +++ b/agent/peering_endpoint_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/peering_endpoint_test.go b/agent/peering_endpoint_test.go index e8efdc88d63..1a5ad4b3524 100644 --- a/agent/peering_endpoint_test.go +++ b/agent/peering_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/pool/conn.go b/agent/pool/conn.go index cc19171c91a..211184c325d 100644 --- a/agent/pool/conn.go +++ b/agent/pool/conn.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pool type RPCType byte diff --git a/agent/pool/peek.go b/agent/pool/peek.go index 95dadf56694..d6557bb23db 100644 --- a/agent/pool/peek.go +++ b/agent/pool/peek.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pool import ( diff --git a/agent/pool/peek_test.go b/agent/pool/peek_test.go index d5101279936..cb53c421f9c 100644 --- a/agent/pool/peek_test.go +++ b/agent/pool/peek_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pool import ( diff --git a/agent/pool/pool.go b/agent/pool/pool.go index 5fff76d3272..cadb0e4af4e 100644 --- a/agent/pool/pool.go +++ b/agent/pool/pool.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package pool import ( diff --git a/agent/prepared_query_endpoint.go b/agent/prepared_query_endpoint.go index 9b8225f33f4..8d5f9fdc531 100644 --- a/agent/prepared_query_endpoint.go +++ b/agent/prepared_query_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/prepared_query_endpoint_test.go b/agent/prepared_query_endpoint_test.go index 09012bc2a06..f96c43ad8b9 100644 --- a/agent/prepared_query_endpoint_test.go +++ b/agent/prepared_query_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/proxycfg-glue/config_entry.go b/agent/proxycfg-glue/config_entry.go index 1b99679beb9..6c795695746 100644 --- a/agent/proxycfg-glue/config_entry.go +++ b/agent/proxycfg-glue/config_entry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/config_entry_test.go b/agent/proxycfg-glue/config_entry_test.go index c780bdfe8ce..d3ec3823120 100644 --- a/agent/proxycfg-glue/config_entry_test.go +++ b/agent/proxycfg-glue/config_entry_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/discovery_chain.go b/agent/proxycfg-glue/discovery_chain.go index 78e1f1653c0..3b322e6b334 100644 --- a/agent/proxycfg-glue/discovery_chain.go +++ b/agent/proxycfg-glue/discovery_chain.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/discovery_chain_test.go b/agent/proxycfg-glue/discovery_chain_test.go index 7207ffaf1dc..60d48537c68 100644 --- a/agent/proxycfg-glue/discovery_chain_test.go +++ b/agent/proxycfg-glue/discovery_chain_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/exported_peered_services.go b/agent/proxycfg-glue/exported_peered_services.go index 6d7fac302a8..8637891f155 100644 --- a/agent/proxycfg-glue/exported_peered_services.go +++ b/agent/proxycfg-glue/exported_peered_services.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/exported_peered_services_test.go b/agent/proxycfg-glue/exported_peered_services_test.go index ed07404adf5..a2b99d4d25b 100644 --- a/agent/proxycfg-glue/exported_peered_services_test.go +++ b/agent/proxycfg-glue/exported_peered_services_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/federation_state_list_mesh_gateways.go b/agent/proxycfg-glue/federation_state_list_mesh_gateways.go index ea3640ad9bc..f5f32f1c01c 100644 --- a/agent/proxycfg-glue/federation_state_list_mesh_gateways.go +++ b/agent/proxycfg-glue/federation_state_list_mesh_gateways.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/federation_state_list_mesh_gateways_test.go b/agent/proxycfg-glue/federation_state_list_mesh_gateways_test.go index 5c716d24c08..fd73e19aaf6 100644 --- a/agent/proxycfg-glue/federation_state_list_mesh_gateways_test.go +++ b/agent/proxycfg-glue/federation_state_list_mesh_gateways_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/gateway_services.go b/agent/proxycfg-glue/gateway_services.go index 8c90f949dc8..24f4087eea8 100644 --- a/agent/proxycfg-glue/gateway_services.go +++ b/agent/proxycfg-glue/gateway_services.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/gateway_services_test.go b/agent/proxycfg-glue/gateway_services_test.go index bb20f489dad..eb853bd7b49 100644 --- a/agent/proxycfg-glue/gateway_services_test.go +++ b/agent/proxycfg-glue/gateway_services_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/glue.go b/agent/proxycfg-glue/glue.go index d6540e75ba7..4a5e3c5d87e 100644 --- a/agent/proxycfg-glue/glue.go +++ b/agent/proxycfg-glue/glue.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/health.go b/agent/proxycfg-glue/health.go index 331c8012b1f..f0808da978c 100644 --- a/agent/proxycfg-glue/health.go +++ b/agent/proxycfg-glue/health.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/health_test.go b/agent/proxycfg-glue/health_test.go index 6cc4447815f..6f5702ca19c 100644 --- a/agent/proxycfg-glue/health_test.go +++ b/agent/proxycfg-glue/health_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/helpers_test.go b/agent/proxycfg-glue/helpers_test.go index 7a0c67df114..0d8bd8c9660 100644 --- a/agent/proxycfg-glue/helpers_test.go +++ b/agent/proxycfg-glue/helpers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/intention_upstreams.go b/agent/proxycfg-glue/intention_upstreams.go index e5d5e9959c2..07a12c4ddb6 100644 --- a/agent/proxycfg-glue/intention_upstreams.go +++ b/agent/proxycfg-glue/intention_upstreams.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/intention_upstreams_test.go b/agent/proxycfg-glue/intention_upstreams_test.go index 1a69b1de705..3028524eb0f 100644 --- a/agent/proxycfg-glue/intention_upstreams_test.go +++ b/agent/proxycfg-glue/intention_upstreams_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/intentions.go b/agent/proxycfg-glue/intentions.go index ac19ecbdf6e..e9e6f5b0e71 100644 --- a/agent/proxycfg-glue/intentions.go +++ b/agent/proxycfg-glue/intentions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/intentions_ent_test.go b/agent/proxycfg-glue/intentions_ent_test.go index b5163785e12..35d5599d556 100644 --- a/agent/proxycfg-glue/intentions_ent_test.go +++ b/agent/proxycfg-glue/intentions_ent_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/intentions_oss.go b/agent/proxycfg-glue/intentions_oss.go index 8b67d0b4950..bd1823adb19 100644 --- a/agent/proxycfg-glue/intentions_oss.go +++ b/agent/proxycfg-glue/intentions_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/proxycfg-glue/intentions_test.go b/agent/proxycfg-glue/intentions_test.go index 06b8aaa2a57..0622066fa7f 100644 --- a/agent/proxycfg-glue/intentions_test.go +++ b/agent/proxycfg-glue/intentions_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/internal_service_dump.go b/agent/proxycfg-glue/internal_service_dump.go index 1704da2725d..e41dc020b1d 100644 --- a/agent/proxycfg-glue/internal_service_dump.go +++ b/agent/proxycfg-glue/internal_service_dump.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/internal_service_dump_test.go b/agent/proxycfg-glue/internal_service_dump_test.go index 66245c52a23..a6e6c3b0286 100644 --- a/agent/proxycfg-glue/internal_service_dump_test.go +++ b/agent/proxycfg-glue/internal_service_dump_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/peered_upstreams.go b/agent/proxycfg-glue/peered_upstreams.go index d87c1046ab0..df38b3f0daf 100644 --- a/agent/proxycfg-glue/peered_upstreams.go +++ b/agent/proxycfg-glue/peered_upstreams.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/peered_upstreams_test.go b/agent/proxycfg-glue/peered_upstreams_test.go index e480e805983..b0e7c0d8f83 100644 --- a/agent/proxycfg-glue/peered_upstreams_test.go +++ b/agent/proxycfg-glue/peered_upstreams_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/peering_list.go b/agent/proxycfg-glue/peering_list.go index 777ccaee309..c783f02191e 100644 --- a/agent/proxycfg-glue/peering_list.go +++ b/agent/proxycfg-glue/peering_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/peering_list_test.go b/agent/proxycfg-glue/peering_list_test.go index 509fbcdc0e5..ad196cccd9e 100644 --- a/agent/proxycfg-glue/peering_list_test.go +++ b/agent/proxycfg-glue/peering_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/resolved_service_config.go b/agent/proxycfg-glue/resolved_service_config.go index 119838b6214..4484e2a27b4 100644 --- a/agent/proxycfg-glue/resolved_service_config.go +++ b/agent/proxycfg-glue/resolved_service_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/resolved_service_config_test.go b/agent/proxycfg-glue/resolved_service_config_test.go index 3f165aa555e..60d39eec205 100644 --- a/agent/proxycfg-glue/resolved_service_config_test.go +++ b/agent/proxycfg-glue/resolved_service_config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/service_http_checks.go b/agent/proxycfg-glue/service_http_checks.go index da62c516749..45521f712ae 100644 --- a/agent/proxycfg-glue/service_http_checks.go +++ b/agent/proxycfg-glue/service_http_checks.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/service_http_checks_test.go b/agent/proxycfg-glue/service_http_checks_test.go index d1a6df34f57..cfe28c7e89f 100644 --- a/agent/proxycfg-glue/service_http_checks_test.go +++ b/agent/proxycfg-glue/service_http_checks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/service_list.go b/agent/proxycfg-glue/service_list.go index 7e7e6bbf6ce..ee7c286e3c9 100644 --- a/agent/proxycfg-glue/service_list.go +++ b/agent/proxycfg-glue/service_list.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/service_list_test.go b/agent/proxycfg-glue/service_list_test.go index 4ab3edbf134..154c1300a32 100644 --- a/agent/proxycfg-glue/service_list_test.go +++ b/agent/proxycfg-glue/service_list_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/trust_bundle.go b/agent/proxycfg-glue/trust_bundle.go index 0152c5fdfc2..7e2ad127ffb 100644 --- a/agent/proxycfg-glue/trust_bundle.go +++ b/agent/proxycfg-glue/trust_bundle.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-glue/trust_bundle_test.go b/agent/proxycfg-glue/trust_bundle_test.go index 8d4270f07cf..da77e32a56e 100644 --- a/agent/proxycfg-glue/trust_bundle_test.go +++ b/agent/proxycfg-glue/trust_bundle_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfgglue import ( diff --git a/agent/proxycfg-sources/catalog/config_source.go b/agent/proxycfg-sources/catalog/config_source.go index 3ba1fc83b8b..3fbca88de50 100644 --- a/agent/proxycfg-sources/catalog/config_source.go +++ b/agent/proxycfg-sources/catalog/config_source.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package catalog import ( diff --git a/agent/proxycfg-sources/catalog/config_source_test.go b/agent/proxycfg-sources/catalog/config_source_test.go index c6c0e9d8b60..661fae9c082 100644 --- a/agent/proxycfg-sources/catalog/config_source_test.go +++ b/agent/proxycfg-sources/catalog/config_source_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package catalog import ( diff --git a/agent/proxycfg-sources/local/config_source.go b/agent/proxycfg-sources/local/config_source.go index 903ad7a6b19..18b8a045c42 100644 --- a/agent/proxycfg-sources/local/config_source.go +++ b/agent/proxycfg-sources/local/config_source.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package local import ( diff --git a/agent/proxycfg-sources/local/local.go b/agent/proxycfg-sources/local/local.go index 2cdc2875169..92eefe1eb85 100644 --- a/agent/proxycfg-sources/local/local.go +++ b/agent/proxycfg-sources/local/local.go @@ -1,2 +1,5 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package local integrates the proxycfg Manager with the agent's local state. package local diff --git a/agent/proxycfg-sources/local/sync.go b/agent/proxycfg-sources/local/sync.go index 5702d2f3684..86427c9f005 100644 --- a/agent/proxycfg-sources/local/sync.go +++ b/agent/proxycfg-sources/local/sync.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package local import ( diff --git a/agent/proxycfg-sources/local/sync_test.go b/agent/proxycfg-sources/local/sync_test.go index c41f7fd9ad9..8fa48835181 100644 --- a/agent/proxycfg-sources/local/sync_test.go +++ b/agent/proxycfg-sources/local/sync_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package local import ( diff --git a/agent/proxycfg/api_gateway.go b/agent/proxycfg/api_gateway.go index fc2519acdce..18abed7b25d 100644 --- a/agent/proxycfg/api_gateway.go +++ b/agent/proxycfg/api_gateway.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/connect_proxy.go b/agent/proxycfg/connect_proxy.go index 97cd0527b9f..037e7080e22 100644 --- a/agent/proxycfg/connect_proxy.go +++ b/agent/proxycfg/connect_proxy.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/data_sources.go b/agent/proxycfg/data_sources.go index 0327a45a026..0018ce7c08c 100644 --- a/agent/proxycfg/data_sources.go +++ b/agent/proxycfg/data_sources.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/data_sources_oss.go b/agent/proxycfg/data_sources_oss.go index e5e23d17734..5a92e9486b0 100644 --- a/agent/proxycfg/data_sources_oss.go +++ b/agent/proxycfg/data_sources_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/proxycfg/deep-copy.sh b/agent/proxycfg/deep-copy.sh index 3e3f07ec2d8..17791e79b11 100755 --- a/agent/proxycfg/deep-copy.sh +++ b/agent/proxycfg/deep-copy.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + readonly PACKAGE_DIR="$(dirname "${BASH_SOURCE[0]}")" cd $PACKAGE_DIR diff --git a/agent/proxycfg/ingress_gateway.go b/agent/proxycfg/ingress_gateway.go index 00e0ae27705..e76d567a505 100644 --- a/agent/proxycfg/ingress_gateway.go +++ b/agent/proxycfg/ingress_gateway.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/internal/watch/watchmap.go b/agent/proxycfg/internal/watch/watchmap.go index b5827423ee0..c36ec3237cc 100644 --- a/agent/proxycfg/internal/watch/watchmap.go +++ b/agent/proxycfg/internal/watch/watchmap.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package watch import "context" diff --git a/agent/proxycfg/internal/watch/watchmap_test.go b/agent/proxycfg/internal/watch/watchmap_test.go index 2e0f5b7908b..c5bef8e4710 100644 --- a/agent/proxycfg/internal/watch/watchmap_test.go +++ b/agent/proxycfg/internal/watch/watchmap_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package watch import ( diff --git a/agent/proxycfg/manager.go b/agent/proxycfg/manager.go index d21ff4f1ea5..a942fd1d1e1 100644 --- a/agent/proxycfg/manager.go +++ b/agent/proxycfg/manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/manager_test.go b/agent/proxycfg/manager_test.go index bf2b8db9a92..3c4068815c2 100644 --- a/agent/proxycfg/manager_test.go +++ b/agent/proxycfg/manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/mesh_gateway.go b/agent/proxycfg/mesh_gateway.go index a60f921cc7d..c423644b3be 100644 --- a/agent/proxycfg/mesh_gateway.go +++ b/agent/proxycfg/mesh_gateway.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/mesh_gateway_oss.go b/agent/proxycfg/mesh_gateway_oss.go index 143eff76fe2..2959a8383a1 100644 --- a/agent/proxycfg/mesh_gateway_oss.go +++ b/agent/proxycfg/mesh_gateway_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/proxycfg/naming.go b/agent/proxycfg/naming.go index 0ab355160d3..44c1c2cf40e 100644 --- a/agent/proxycfg/naming.go +++ b/agent/proxycfg/naming.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/naming_oss.go b/agent/proxycfg/naming_oss.go index c6a3db10de1..858b8d3553d 100644 --- a/agent/proxycfg/naming_oss.go +++ b/agent/proxycfg/naming_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/proxycfg/naming_test.go b/agent/proxycfg/naming_test.go index 2c4f5173a84..caf917f5d97 100644 --- a/agent/proxycfg/naming_test.go +++ b/agent/proxycfg/naming_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/proxycfg.go b/agent/proxycfg/proxycfg.go index b712c4de7ee..7f091743a7a 100644 --- a/agent/proxycfg/proxycfg.go +++ b/agent/proxycfg/proxycfg.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package proxycfg contains components for sourcing the data required to // configure Connect proxies. The Manager provides an API with which proxy // services can be registered, and coordinates the fetching (and refreshing) diff --git a/agent/proxycfg/snapshot.go b/agent/proxycfg/snapshot.go index c5ddd0b5c15..cc3341d687a 100644 --- a/agent/proxycfg/snapshot.go +++ b/agent/proxycfg/snapshot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/snapshot_test.go b/agent/proxycfg/snapshot_test.go index ebb5798211b..19e6f953f00 100644 --- a/agent/proxycfg/snapshot_test.go +++ b/agent/proxycfg/snapshot_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/state.go b/agent/proxycfg/state.go index 2347b04cc53..9054ef94465 100644 --- a/agent/proxycfg/state.go +++ b/agent/proxycfg/state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/state_oss_test.go b/agent/proxycfg/state_oss_test.go index 0034041f740..e817aeef0b1 100644 --- a/agent/proxycfg/state_oss_test.go +++ b/agent/proxycfg/state_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/proxycfg/state_test.go b/agent/proxycfg/state_test.go index 55e6aeaaca7..4448d1bd283 100644 --- a/agent/proxycfg/state_test.go +++ b/agent/proxycfg/state_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/terminating_gateway.go b/agent/proxycfg/terminating_gateway.go index 483c79f91dd..920553d84ac 100644 --- a/agent/proxycfg/terminating_gateway.go +++ b/agent/proxycfg/terminating_gateway.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/testing.go b/agent/proxycfg/testing.go index a0b71c66e11..e7a43f1e48c 100644 --- a/agent/proxycfg/testing.go +++ b/agent/proxycfg/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/testing_api_gateway.go b/agent/proxycfg/testing_api_gateway.go index 80a50e2ceba..06e21e3cf20 100644 --- a/agent/proxycfg/testing_api_gateway.go +++ b/agent/proxycfg/testing_api_gateway.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/testing_connect_proxy.go b/agent/proxycfg/testing_connect_proxy.go index 5624a36e647..12a8de56145 100644 --- a/agent/proxycfg/testing_connect_proxy.go +++ b/agent/proxycfg/testing_connect_proxy.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/testing_ingress_gateway.go b/agent/proxycfg/testing_ingress_gateway.go index 5e981b9e579..6c5a175497d 100644 --- a/agent/proxycfg/testing_ingress_gateway.go +++ b/agent/proxycfg/testing_ingress_gateway.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/testing_mesh_gateway.go b/agent/proxycfg/testing_mesh_gateway.go index b6251fd9822..94b0cbd0849 100644 --- a/agent/proxycfg/testing_mesh_gateway.go +++ b/agent/proxycfg/testing_mesh_gateway.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/testing_oss.go b/agent/proxycfg/testing_oss.go index 11f9a6adeb7..202252a3a73 100644 --- a/agent/proxycfg/testing_oss.go +++ b/agent/proxycfg/testing_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/proxycfg/testing_peering.go b/agent/proxycfg/testing_peering.go index 82bdb70ee7b..9b754c977f2 100644 --- a/agent/proxycfg/testing_peering.go +++ b/agent/proxycfg/testing_peering.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/testing_terminating_gateway.go b/agent/proxycfg/testing_terminating_gateway.go index a1cc290a473..ec03fcdb095 100644 --- a/agent/proxycfg/testing_terminating_gateway.go +++ b/agent/proxycfg/testing_terminating_gateway.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/testing_tproxy.go b/agent/proxycfg/testing_tproxy.go index 7200cee5650..3420b596632 100644 --- a/agent/proxycfg/testing_tproxy.go +++ b/agent/proxycfg/testing_tproxy.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/testing_upstreams.go b/agent/proxycfg/testing_upstreams.go index deb810fa3b3..cfa34df8ee7 100644 --- a/agent/proxycfg/testing_upstreams.go +++ b/agent/proxycfg/testing_upstreams.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg/upstreams.go b/agent/proxycfg/upstreams.go index eeeb037f6dc..d7fee4a3fcc 100644 --- a/agent/proxycfg/upstreams.go +++ b/agent/proxycfg/upstreams.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package proxycfg import ( diff --git a/agent/proxycfg_test.go b/agent/proxycfg_test.go index 11f9b8fe795..334af2cca0a 100644 --- a/agent/proxycfg_test.go +++ b/agent/proxycfg_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/reload.go b/agent/reload.go index 21a7486a009..ce31fd1a76c 100644 --- a/agent/reload.go +++ b/agent/reload.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import "github.com/hashicorp/consul/agent/config" diff --git a/agent/remote_exec.go b/agent/remote_exec.go index 8519ca48571..770221ed262 100644 --- a/agent/remote_exec.go +++ b/agent/remote_exec.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/remote_exec_test.go b/agent/remote_exec_test.go index b08f9e14e69..9994095078d 100644 --- a/agent/remote_exec_test.go +++ b/agent/remote_exec_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/retry_join.go b/agent/retry_join.go index 61825db23c6..a629aa04706 100644 --- a/agent/retry_join.go +++ b/agent/retry_join.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/retry_join_test.go b/agent/retry_join_test.go index e6e2fac7797..af90205965b 100644 --- a/agent/retry_join_test.go +++ b/agent/retry_join_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/router/grpc.go b/agent/router/grpc.go index 44600d42ad1..9fe6355d4dc 100644 --- a/agent/router/grpc.go +++ b/agent/router/grpc.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package router import ( diff --git a/agent/router/manager.go b/agent/router/manager.go index 8d2e9658eea..cccbc27d081 100644 --- a/agent/router/manager.go +++ b/agent/router/manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package servers provides a Manager interface for Manager managed // metadata.Server objects. The servers package manages servers from a Consul // client's perspective (i.e. a list of servers that a client talks with for diff --git a/agent/router/manager_internal_test.go b/agent/router/manager_internal_test.go index 640e96a0623..0e1fa28189a 100644 --- a/agent/router/manager_internal_test.go +++ b/agent/router/manager_internal_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package router import ( diff --git a/agent/router/manager_test.go b/agent/router/manager_test.go index e21ab340f40..708bb620a0d 100644 --- a/agent/router/manager_test.go +++ b/agent/router/manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package router_test import ( diff --git a/agent/router/router.go b/agent/router/router.go index 1389a30f6ce..bdba22f42d4 100644 --- a/agent/router/router.go +++ b/agent/router/router.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package router import ( diff --git a/agent/router/router_test.go b/agent/router/router_test.go index 8ccdf825e0a..1064dea342a 100644 --- a/agent/router/router_test.go +++ b/agent/router/router_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package router import ( diff --git a/agent/router/serf_adapter.go b/agent/router/serf_adapter.go index 7208fe12368..f30449dc05d 100644 --- a/agent/router/serf_adapter.go +++ b/agent/router/serf_adapter.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package router import ( diff --git a/agent/router/serf_flooder.go b/agent/router/serf_flooder.go index 7c415db25a5..34ef318377f 100644 --- a/agent/router/serf_flooder.go +++ b/agent/router/serf_flooder.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package router import ( diff --git a/agent/routine-leak-checker/leak_test.go b/agent/routine-leak-checker/leak_test.go index 34f09892388..91d84b071b3 100644 --- a/agent/routine-leak-checker/leak_test.go +++ b/agent/routine-leak-checker/leak_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package leakcheck import ( diff --git a/agent/rpc/middleware/interceptors.go b/agent/rpc/middleware/interceptors.go index d0ad5137929..f614e06cea7 100644 --- a/agent/rpc/middleware/interceptors.go +++ b/agent/rpc/middleware/interceptors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package middleware import ( diff --git a/agent/rpc/middleware/interceptors_test.go b/agent/rpc/middleware/interceptors_test.go index fda01199b6f..a22837fc6d9 100644 --- a/agent/rpc/middleware/interceptors_test.go +++ b/agent/rpc/middleware/interceptors_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package middleware import ( diff --git a/agent/rpc/middleware/rate_limit_mappings.go b/agent/rpc/middleware/rate_limit_mappings.go index 65c241a277d..a31343bb23f 100644 --- a/agent/rpc/middleware/rate_limit_mappings.go +++ b/agent/rpc/middleware/rate_limit_mappings.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package middleware import "github.com/hashicorp/consul/agent/consul/rate" diff --git a/agent/rpc/middleware/recovery.go b/agent/rpc/middleware/recovery.go index f381f0ee2ab..df37f969d41 100644 --- a/agent/rpc/middleware/recovery.go +++ b/agent/rpc/middleware/recovery.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package middleware import ( diff --git a/agent/rpc/operator/service.go b/agent/rpc/operator/service.go index 6f3ef3cfda4..6b3302c9f2e 100644 --- a/agent/rpc/operator/service.go +++ b/agent/rpc/operator/service.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package operator import ( diff --git a/agent/rpc/operator/service_test.go b/agent/rpc/operator/service_test.go index b2bdd6990e4..465a6d6428d 100644 --- a/agent/rpc/operator/service_test.go +++ b/agent/rpc/operator/service_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package operator import ( diff --git a/agent/rpc/peering/service.go b/agent/rpc/peering/service.go index daf27a02f96..fe68b3616a1 100644 --- a/agent/rpc/peering/service.go +++ b/agent/rpc/peering/service.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peering import ( diff --git a/agent/rpc/peering/service_oss_test.go b/agent/rpc/peering/service_oss_test.go index bdaecda1a7f..d4e5fab0ba4 100644 --- a/agent/rpc/peering/service_oss_test.go +++ b/agent/rpc/peering/service_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/rpc/peering/service_test.go b/agent/rpc/peering/service_test.go index 1699cb5ac21..3830cbdfacd 100644 --- a/agent/rpc/peering/service_test.go +++ b/agent/rpc/peering/service_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peering_test import ( diff --git a/agent/rpc/peering/testing.go b/agent/rpc/peering/testing.go index 7ee448ec144..ddd9d43a8ad 100644 --- a/agent/rpc/peering/testing.go +++ b/agent/rpc/peering/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peering import ( diff --git a/agent/rpc/peering/testutil_oss_test.go b/agent/rpc/peering/testutil_oss_test.go index 4aac92cadd6..d15d62e9f1c 100644 --- a/agent/rpc/peering/testutil_oss_test.go +++ b/agent/rpc/peering/testutil_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/rpc/peering/validate.go b/agent/rpc/peering/validate.go index 945a6a0dc28..1bd3f393bd7 100644 --- a/agent/rpc/peering/validate.go +++ b/agent/rpc/peering/validate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peering import ( diff --git a/agent/rpc/peering/validate_test.go b/agent/rpc/peering/validate_test.go index eb4882f0b89..c5b3c6c7bdb 100644 --- a/agent/rpc/peering/validate_test.go +++ b/agent/rpc/peering/validate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package peering import ( diff --git a/agent/rpcclient/health/health.go b/agent/rpcclient/health/health.go index 1edc1bfd260..16630af5f29 100644 --- a/agent/rpcclient/health/health.go +++ b/agent/rpcclient/health/health.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package health import ( diff --git a/agent/rpcclient/health/health_test.go b/agent/rpcclient/health/health_test.go index a9cc7a087df..03c2a8338de 100644 --- a/agent/rpcclient/health/health_test.go +++ b/agent/rpcclient/health/health_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package health import ( diff --git a/agent/rpcclient/health/streaming_test.go b/agent/rpcclient/health/streaming_test.go index 915025a2131..3a0ba734ba9 100644 --- a/agent/rpcclient/health/streaming_test.go +++ b/agent/rpcclient/health/streaming_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package health import ( diff --git a/agent/rpcclient/health/view.go b/agent/rpcclient/health/view.go index 4dabc5e695a..bf75738a99a 100644 --- a/agent/rpcclient/health/view.go +++ b/agent/rpcclient/health/view.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package health import ( diff --git a/agent/rpcclient/health/view_test.go b/agent/rpcclient/health/view_test.go index 0d199243b2c..6a777a7f81d 100644 --- a/agent/rpcclient/health/view_test.go +++ b/agent/rpcclient/health/view_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package health import ( diff --git a/agent/service_checks_test.go b/agent/service_checks_test.go index 1e987221926..c567776587e 100644 --- a/agent/service_checks_test.go +++ b/agent/service_checks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/service_manager.go b/agent/service_manager.go index 784986678d5..b7e38b393ac 100644 --- a/agent/service_manager.go +++ b/agent/service_manager.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/service_manager_test.go b/agent/service_manager_test.go index 097513ea724..1a4c7f6de5f 100644 --- a/agent/service_manager_test.go +++ b/agent/service_manager_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/session_endpoint.go b/agent/session_endpoint.go index 2f10b149b2b..a9b9a6dee6b 100644 --- a/agent/session_endpoint.go +++ b/agent/session_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/session_endpoint_test.go b/agent/session_endpoint_test.go index a1b011f25f5..5ce93db7a68 100644 --- a/agent/session_endpoint_test.go +++ b/agent/session_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/setup.go b/agent/setup.go index 4600f40160a..07ab3852de8 100644 --- a/agent/setup.go +++ b/agent/setup.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/setup_oss.go b/agent/setup_oss.go index 9fd22210e28..46c4b80eb4e 100644 --- a/agent/setup_oss.go +++ b/agent/setup_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/sidecar_service.go b/agent/sidecar_service.go index 3b536223ffb..e0b1fe1d2b0 100644 --- a/agent/sidecar_service.go +++ b/agent/sidecar_service.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/sidecar_service_test.go b/agent/sidecar_service_test.go index 37854298e62..c060e365d4d 100644 --- a/agent/sidecar_service_test.go +++ b/agent/sidecar_service_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/signal_unix.go b/agent/signal_unix.go index a41e16a678d..bd0b3e7793c 100644 --- a/agent/signal_unix.go +++ b/agent/signal_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !windows // +build !windows diff --git a/agent/signal_windows.go b/agent/signal_windows.go index ba3d0fde981..c6ea0c980ff 100644 --- a/agent/signal_windows.go +++ b/agent/signal_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build windows // +build windows diff --git a/agent/snapshot_endpoint.go b/agent/snapshot_endpoint.go index 574b1683a76..60d98625643 100644 --- a/agent/snapshot_endpoint.go +++ b/agent/snapshot_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/snapshot_endpoint_test.go b/agent/snapshot_endpoint_test.go index 968aa8fe74c..e68fb22f385 100644 --- a/agent/snapshot_endpoint_test.go +++ b/agent/snapshot_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/status_endpoint.go b/agent/status_endpoint.go index 0fbd26837b8..86f9f1a5d01 100644 --- a/agent/status_endpoint.go +++ b/agent/status_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/status_endpoint_test.go b/agent/status_endpoint_test.go index 93768618c32..5be9d6be64a 100644 --- a/agent/status_endpoint_test.go +++ b/agent/status_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/streaming_test.go b/agent/streaming_test.go index 8af5edc7db6..9074f66e834 100644 --- a/agent/streaming_test.go +++ b/agent/streaming_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/structs/acl.go b/agent/structs/acl.go index 13424811aae..d239b882222 100644 --- a/agent/structs/acl.go +++ b/agent/structs/acl.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/acl_cache.go b/agent/structs/acl_cache.go index 65e20a1f4fe..46d4fdd2811 100644 --- a/agent/structs/acl_cache.go +++ b/agent/structs/acl_cache.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/acl_cache_test.go b/agent/structs/acl_cache_test.go index e0a057d3632..e390da960f4 100644 --- a/agent/structs/acl_cache_test.go +++ b/agent/structs/acl_cache_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/acl_oss.go b/agent/structs/acl_oss.go index b41986547e6..01e252636f8 100644 --- a/agent/structs/acl_oss.go +++ b/agent/structs/acl_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/acl_test.go b/agent/structs/acl_test.go index d5b083ec5e6..6658b833502 100644 --- a/agent/structs/acl_test.go +++ b/agent/structs/acl_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/aclfilter/filter.go b/agent/structs/aclfilter/filter.go index a6c5301d1aa..ecc73e7bdac 100644 --- a/agent/structs/aclfilter/filter.go +++ b/agent/structs/aclfilter/filter.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package aclfilter import ( diff --git a/agent/structs/aclfilter/filter_test.go b/agent/structs/aclfilter/filter_test.go index 4666b52a33d..2339b0acd22 100644 --- a/agent/structs/aclfilter/filter_test.go +++ b/agent/structs/aclfilter/filter_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package aclfilter import ( diff --git a/agent/structs/auto_encrypt.go b/agent/structs/auto_encrypt.go index a0611ee386f..2e9053f9a53 100644 --- a/agent/structs/auto_encrypt.go +++ b/agent/structs/auto_encrypt.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs type SignedResponse struct { diff --git a/agent/structs/autopilot.go b/agent/structs/autopilot.go index abfb7ca0c4c..a5a14684fa9 100644 --- a/agent/structs/autopilot.go +++ b/agent/structs/autopilot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/autopilot_oss.go b/agent/structs/autopilot_oss.go index a495c26a07b..3098c0cf3ca 100644 --- a/agent/structs/autopilot_oss.go +++ b/agent/structs/autopilot_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/catalog.go b/agent/structs/catalog.go index 94581a45ca9..eb000d3a971 100644 --- a/agent/structs/catalog.go +++ b/agent/structs/catalog.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/catalog_oss.go b/agent/structs/catalog_oss.go index 8165ffc4264..91e08264b99 100644 --- a/agent/structs/catalog_oss.go +++ b/agent/structs/catalog_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/check_definition.go b/agent/structs/check_definition.go index 1c01a4b422b..600fc1f0502 100644 --- a/agent/structs/check_definition.go +++ b/agent/structs/check_definition.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/check_definition_test.go b/agent/structs/check_definition_test.go index 731de6dbdbc..676499ef042 100644 --- a/agent/structs/check_definition_test.go +++ b/agent/structs/check_definition_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/check_type.go b/agent/structs/check_type.go index b4696c65c57..0f31a89bfb1 100644 --- a/agent/structs/check_type.go +++ b/agent/structs/check_type.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry.go b/agent/structs/config_entry.go index 2a94b430a21..81efa5286db 100644 --- a/agent/structs/config_entry.go +++ b/agent/structs/config_entry.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_discoverychain.go b/agent/structs/config_entry_discoverychain.go index 1a728b3434b..d9ad4b13f11 100644 --- a/agent/structs/config_entry_discoverychain.go +++ b/agent/structs/config_entry_discoverychain.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_discoverychain_oss.go b/agent/structs/config_entry_discoverychain_oss.go index 5a94fe48d97..1d3702e3654 100644 --- a/agent/structs/config_entry_discoverychain_oss.go +++ b/agent/structs/config_entry_discoverychain_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/config_entry_discoverychain_oss_test.go b/agent/structs/config_entry_discoverychain_oss_test.go index 06dcbccf2d6..ec816f07c2f 100644 --- a/agent/structs/config_entry_discoverychain_oss_test.go +++ b/agent/structs/config_entry_discoverychain_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/config_entry_discoverychain_test.go b/agent/structs/config_entry_discoverychain_test.go index f41c247c6dd..7378e20787f 100644 --- a/agent/structs/config_entry_discoverychain_test.go +++ b/agent/structs/config_entry_discoverychain_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_export_oss_test.go b/agent/structs/config_entry_export_oss_test.go index 19ce3d05f69..72be5aad6d4 100644 --- a/agent/structs/config_entry_export_oss_test.go +++ b/agent/structs/config_entry_export_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/config_entry_exports.go b/agent/structs/config_entry_exports.go index 81c62e1236d..6795af316fb 100644 --- a/agent/structs/config_entry_exports.go +++ b/agent/structs/config_entry_exports.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_exports_test.go b/agent/structs/config_entry_exports_test.go index e1c58cea657..dd92a1139c8 100644 --- a/agent/structs/config_entry_exports_test.go +++ b/agent/structs/config_entry_exports_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_gateways.go b/agent/structs/config_entry_gateways.go index 32fd966f600..cd66a0ae399 100644 --- a/agent/structs/config_entry_gateways.go +++ b/agent/structs/config_entry_gateways.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_gateways_test.go b/agent/structs/config_entry_gateways_test.go index 1302cb2ad7a..16a18752d96 100644 --- a/agent/structs/config_entry_gateways_test.go +++ b/agent/structs/config_entry_gateways_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_inline_certificate.go b/agent/structs/config_entry_inline_certificate.go index bdbcbc6ae05..7f2dc285e5a 100644 --- a/agent/structs/config_entry_inline_certificate.go +++ b/agent/structs/config_entry_inline_certificate.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_inline_certificate_test.go b/agent/structs/config_entry_inline_certificate_test.go index db46ca92a7d..407fc102997 100644 --- a/agent/structs/config_entry_inline_certificate_test.go +++ b/agent/structs/config_entry_inline_certificate_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import "testing" diff --git a/agent/structs/config_entry_intentions.go b/agent/structs/config_entry_intentions.go index 205fa336943..e947fa67982 100644 --- a/agent/structs/config_entry_intentions.go +++ b/agent/structs/config_entry_intentions.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_intentions_oss.go b/agent/structs/config_entry_intentions_oss.go index 2628951f85b..706b54332dc 100644 --- a/agent/structs/config_entry_intentions_oss.go +++ b/agent/structs/config_entry_intentions_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/config_entry_intentions_test.go b/agent/structs/config_entry_intentions_test.go index 233ecebede2..f08c170c6c2 100644 --- a/agent/structs/config_entry_intentions_test.go +++ b/agent/structs/config_entry_intentions_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_mesh.go b/agent/structs/config_entry_mesh.go index b599dbd537f..8417a29fb6c 100644 --- a/agent/structs/config_entry_mesh.go +++ b/agent/structs/config_entry_mesh.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_mesh_oss.go b/agent/structs/config_entry_mesh_oss.go index 087edc8e560..1612d656827 100644 --- a/agent/structs/config_entry_mesh_oss.go +++ b/agent/structs/config_entry_mesh_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/config_entry_mesh_test.go b/agent/structs/config_entry_mesh_test.go index b618bf55bdc..6bdfaa15cae 100644 --- a/agent/structs/config_entry_mesh_test.go +++ b/agent/structs/config_entry_mesh_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_oss.go b/agent/structs/config_entry_oss.go index 288a2715d03..2977075bff1 100644 --- a/agent/structs/config_entry_oss.go +++ b/agent/structs/config_entry_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/config_entry_oss_test.go b/agent/structs/config_entry_oss_test.go index fbf0a9ebd3d..ce9ac5fad21 100644 --- a/agent/structs/config_entry_oss_test.go +++ b/agent/structs/config_entry_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/config_entry_routes.go b/agent/structs/config_entry_routes.go index ca092c07d19..15160f0e05e 100644 --- a/agent/structs/config_entry_routes.go +++ b/agent/structs/config_entry_routes.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_routes_test.go b/agent/structs/config_entry_routes_test.go index 37c20390a31..d33b5d06eb5 100644 --- a/agent/structs/config_entry_routes_test.go +++ b/agent/structs/config_entry_routes_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_sameness_group.go b/agent/structs/config_entry_sameness_group.go index ba8729d8f20..206d51b7bd3 100644 --- a/agent/structs/config_entry_sameness_group.go +++ b/agent/structs/config_entry_sameness_group.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_sameness_group_oss.go b/agent/structs/config_entry_sameness_group_oss.go index 21a34b5e1e0..f821dc9cc51 100644 --- a/agent/structs/config_entry_sameness_group_oss.go +++ b/agent/structs/config_entry_sameness_group_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/config_entry_status.go b/agent/structs/config_entry_status.go index 2a56ba08a01..264efb1fa67 100644 --- a/agent/structs/config_entry_status.go +++ b/agent/structs/config_entry_status.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/config_entry_test.go b/agent/structs/config_entry_test.go index b470abcaef9..de9e5ddc9aa 100644 --- a/agent/structs/config_entry_test.go +++ b/agent/structs/config_entry_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/connect.go b/agent/structs/connect.go index 9edf744a136..227c2eb4727 100644 --- a/agent/structs/connect.go +++ b/agent/structs/connect.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import "github.com/hashicorp/consul/acl" diff --git a/agent/structs/connect_ca.go b/agent/structs/connect_ca.go index 9f319ad09fe..c8a7cea1df8 100644 --- a/agent/structs/connect_ca.go +++ b/agent/structs/connect_ca.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/connect_ca_test.go b/agent/structs/connect_ca_test.go index 1609b07565f..d64efef375b 100644 --- a/agent/structs/connect_ca_test.go +++ b/agent/structs/connect_ca_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/connect_oss.go b/agent/structs/connect_oss.go index ac4a6405f45..9547c245148 100644 --- a/agent/structs/connect_oss.go +++ b/agent/structs/connect_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/connect_proxy_config.go b/agent/structs/connect_proxy_config.go index b127b1ce101..6155dedb328 100644 --- a/agent/structs/connect_proxy_config.go +++ b/agent/structs/connect_proxy_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/connect_proxy_config_oss.go b/agent/structs/connect_proxy_config_oss.go index 320d7c4700e..898ca163a5c 100644 --- a/agent/structs/connect_proxy_config_oss.go +++ b/agent/structs/connect_proxy_config_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/connect_proxy_config_test.go b/agent/structs/connect_proxy_config_test.go index f55ba1d2b9b..bcf43b2119c 100644 --- a/agent/structs/connect_proxy_config_test.go +++ b/agent/structs/connect_proxy_config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/deep-copy.sh b/agent/structs/deep-copy.sh index f0e5c91fb1d..75856d364e2 100755 --- a/agent/structs/deep-copy.sh +++ b/agent/structs/deep-copy.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# Copyright (c) HashiCorp, Inc. +# SPDX-License-Identifier: MPL-2.0 + readonly PACKAGE_DIR="$(dirname "${BASH_SOURCE[0]}")" cd $PACKAGE_DIR diff --git a/agent/structs/discovery_chain.go b/agent/structs/discovery_chain.go index ae6561cc830..9c5588bb1c7 100644 --- a/agent/structs/discovery_chain.go +++ b/agent/structs/discovery_chain.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/discovery_chain_oss.go b/agent/structs/discovery_chain_oss.go index cdabdf6b359..febff8c7762 100644 --- a/agent/structs/discovery_chain_oss.go +++ b/agent/structs/discovery_chain_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/envoy_extension.go b/agent/structs/envoy_extension.go index efef63076f2..5b69afb0d9d 100644 --- a/agent/structs/envoy_extension.go +++ b/agent/structs/envoy_extension.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/errors.go b/agent/structs/errors.go index 25d2a6d6e9f..82e2b0b5f01 100644 --- a/agent/structs/errors.go +++ b/agent/structs/errors.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/federation_state.go b/agent/structs/federation_state.go index 74ea10c9a50..f123a0954be 100644 --- a/agent/structs/federation_state.go +++ b/agent/structs/federation_state.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/identity.go b/agent/structs/identity.go index d0bfd62ec21..286dd552a34 100644 --- a/agent/structs/identity.go +++ b/agent/structs/identity.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import "github.com/hashicorp/consul/acl" diff --git a/agent/structs/intention.go b/agent/structs/intention.go index eb70ba1ee8c..37c760b7d8c 100644 --- a/agent/structs/intention.go +++ b/agent/structs/intention.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/intention_oss.go b/agent/structs/intention_oss.go index e35b9b5b3d1..2d8181f3639 100644 --- a/agent/structs/intention_oss.go +++ b/agent/structs/intention_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/intention_test.go b/agent/structs/intention_test.go index ef6e4c00d25..0dc8c5a5fc9 100644 --- a/agent/structs/intention_test.go +++ b/agent/structs/intention_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/operator.go b/agent/structs/operator.go index be4507c325a..f5c2b8ac86d 100644 --- a/agent/structs/operator.go +++ b/agent/structs/operator.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/peering.go b/agent/structs/peering.go index 8e34987f6dc..3ee7acb2240 100644 --- a/agent/structs/peering.go +++ b/agent/structs/peering.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs // PeeringToken identifies a peer in order for a connection to be established. diff --git a/agent/structs/prepared_query.go b/agent/structs/prepared_query.go index 59501d21eb8..c5b75a05297 100644 --- a/agent/structs/prepared_query.go +++ b/agent/structs/prepared_query.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/prepared_query_test.go b/agent/structs/prepared_query_test.go index d77ba3578bf..b74504ed58e 100644 --- a/agent/structs/prepared_query_test.go +++ b/agent/structs/prepared_query_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/protobuf_compat.go b/agent/structs/protobuf_compat.go index b2f9cbdcb83..65ebf2eaf4a 100644 --- a/agent/structs/protobuf_compat.go +++ b/agent/structs/protobuf_compat.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/service_definition.go b/agent/structs/service_definition.go index 0be59596aa3..6ee81af0590 100644 --- a/agent/structs/service_definition.go +++ b/agent/structs/service_definition.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/service_definition_test.go b/agent/structs/service_definition_test.go index d5a68f6672f..023972092ff 100644 --- a/agent/structs/service_definition_test.go +++ b/agent/structs/service_definition_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/snapshot.go b/agent/structs/snapshot.go index 933e6e1d4dd..4f622216751 100644 --- a/agent/structs/snapshot.go +++ b/agent/structs/snapshot.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs type SnapshotOp int diff --git a/agent/structs/structs.go b/agent/structs/structs.go index 49e0787217c..74ffb862b33 100644 --- a/agent/structs/structs.go +++ b/agent/structs/structs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/structs_ext_test.go b/agent/structs/structs_ext_test.go index 8c74850a848..9bbc4ca0cb9 100644 --- a/agent/structs/structs_ext_test.go +++ b/agent/structs/structs_ext_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs_test import ( diff --git a/agent/structs/structs_filtering_test.go b/agent/structs/structs_filtering_test.go index cdc84db1529..5c18c543997 100644 --- a/agent/structs/structs_filtering_test.go +++ b/agent/structs/structs_filtering_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/structs_oss.go b/agent/structs/structs_oss.go index 0dcd9d77b02..b1f051f21c5 100644 --- a/agent/structs/structs_oss.go +++ b/agent/structs/structs_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/structs_oss_test.go b/agent/structs/structs_oss_test.go index 54bbb0f2f90..55e51a70088 100644 --- a/agent/structs/structs_oss_test.go +++ b/agent/structs/structs_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/structs/structs_test.go b/agent/structs/structs_test.go index b19c30f992c..49861f86c29 100644 --- a/agent/structs/structs_test.go +++ b/agent/structs/structs_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/system_metadata.go b/agent/structs/system_metadata.go index 2c038872bf1..fa6f6cd0ae5 100644 --- a/agent/structs/system_metadata.go +++ b/agent/structs/system_metadata.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs // SystemMetadataOp is the operation for a request related to system metadata. diff --git a/agent/structs/testing.go b/agent/structs/testing.go index 5d42cf7e3d8..ad8382b0ce3 100644 --- a/agent/structs/testing.go +++ b/agent/structs/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/testing_catalog.go b/agent/structs/testing_catalog.go index ff36545b66a..0e560b3906f 100644 --- a/agent/structs/testing_catalog.go +++ b/agent/structs/testing_catalog.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/testing_connect_proxy_config.go b/agent/structs/testing_connect_proxy_config.go index 0021612e9e8..c41cc996511 100644 --- a/agent/structs/testing_connect_proxy_config.go +++ b/agent/structs/testing_connect_proxy_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/testing_intention.go b/agent/structs/testing_intention.go index c8a42d79169..57c6f9d5015 100644 --- a/agent/structs/testing_intention.go +++ b/agent/structs/testing_intention.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/testing_service_definition.go b/agent/structs/testing_service_definition.go index 1e4938da83b..2707067262f 100644 --- a/agent/structs/testing_service_definition.go +++ b/agent/structs/testing_service_definition.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/structs/txn.go b/agent/structs/txn.go index 6e0804a713b..a97b4733f5e 100644 --- a/agent/structs/txn.go +++ b/agent/structs/txn.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package structs import ( diff --git a/agent/submatview/handler.go b/agent/submatview/handler.go index 557112e8bd2..b3c900e6952 100644 --- a/agent/submatview/handler.go +++ b/agent/submatview/handler.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package submatview import ( diff --git a/agent/submatview/local_materializer.go b/agent/submatview/local_materializer.go index 49ad26a2ae8..5eeaefaa665 100644 --- a/agent/submatview/local_materializer.go +++ b/agent/submatview/local_materializer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package submatview import ( diff --git a/agent/submatview/local_materializer_test.go b/agent/submatview/local_materializer_test.go index deb3c5606e0..e6600a05162 100644 --- a/agent/submatview/local_materializer_test.go +++ b/agent/submatview/local_materializer_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package submatview import ( diff --git a/agent/submatview/materializer.go b/agent/submatview/materializer.go index 2a084b6a3e2..240f6cfafbb 100644 --- a/agent/submatview/materializer.go +++ b/agent/submatview/materializer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package submatview import ( diff --git a/agent/submatview/rpc_materializer.go b/agent/submatview/rpc_materializer.go index c7fa1faf6ad..855576b1b33 100644 --- a/agent/submatview/rpc_materializer.go +++ b/agent/submatview/rpc_materializer.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package submatview import ( diff --git a/agent/submatview/store.go b/agent/submatview/store.go index dacf2d8bae2..beee9af244f 100644 --- a/agent/submatview/store.go +++ b/agent/submatview/store.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package submatview import ( diff --git a/agent/submatview/store_integration_test.go b/agent/submatview/store_integration_test.go index a47e62e730d..b1e2f5a3718 100644 --- a/agent/submatview/store_integration_test.go +++ b/agent/submatview/store_integration_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package submatview_test import ( diff --git a/agent/submatview/store_test.go b/agent/submatview/store_test.go index 824b606f475..36a92e7ec02 100644 --- a/agent/submatview/store_test.go +++ b/agent/submatview/store_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package submatview import ( diff --git a/agent/submatview/streaming_test.go b/agent/submatview/streaming_test.go index 62bcca65493..223babf530b 100644 --- a/agent/submatview/streaming_test.go +++ b/agent/submatview/streaming_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package submatview import ( diff --git a/agent/systemd/notify.go b/agent/systemd/notify.go index 445d0ecb2d3..88ce2c2ece9 100644 --- a/agent/systemd/notify.go +++ b/agent/systemd/notify.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package systemd import ( diff --git a/agent/testagent.go b/agent/testagent.go index 76d82a2f84d..499f4d4dc94 100644 --- a/agent/testagent.go +++ b/agent/testagent.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/testagent_test.go b/agent/testagent_test.go index 39e91a2a696..66d1d61f01e 100644 --- a/agent/testagent_test.go +++ b/agent/testagent_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/token/persistence.go b/agent/token/persistence.go index 49e41e3dd2a..9d543b30edf 100644 --- a/agent/token/persistence.go +++ b/agent/token/persistence.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package token import ( diff --git a/agent/token/persistence_test.go b/agent/token/persistence_test.go index 2f9fe427c0b..093515f70e4 100644 --- a/agent/token/persistence_test.go +++ b/agent/token/persistence_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package token import ( diff --git a/agent/token/store.go b/agent/token/store.go index 80123e3675e..b0f9732a8cc 100644 --- a/agent/token/store.go +++ b/agent/token/store.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package token import ( diff --git a/agent/token/store_oss.go b/agent/token/store_oss.go index ef8b5336d2b..bf2ff796f04 100644 --- a/agent/token/store_oss.go +++ b/agent/token/store_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/token/store_test.go b/agent/token/store_test.go index 45bf82d5d5f..8d0992f229c 100644 --- a/agent/token/store_test.go +++ b/agent/token/store_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package token import ( diff --git a/agent/translate_addr.go b/agent/translate_addr.go index 7967347ec12..9be80ebc0f8 100644 --- a/agent/translate_addr.go +++ b/agent/translate_addr.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/txn_endpoint.go b/agent/txn_endpoint.go index 1eeb4b6d49b..faf9c9e7266 100644 --- a/agent/txn_endpoint.go +++ b/agent/txn_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/txn_endpoint_test.go b/agent/txn_endpoint_test.go index ce94b5c3e63..19c5925ba7a 100644 --- a/agent/txn_endpoint_test.go +++ b/agent/txn_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/ui_endpoint.go b/agent/ui_endpoint.go index aaeb7003e6e..3de9eac1556 100644 --- a/agent/ui_endpoint.go +++ b/agent/ui_endpoint.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/ui_endpoint_oss_test.go b/agent/ui_endpoint_oss_test.go index 14fbacd0667..847563032d9 100644 --- a/agent/ui_endpoint_oss_test.go +++ b/agent/ui_endpoint_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/ui_endpoint_test.go b/agent/ui_endpoint_test.go index 29f6da8aec7..494e395168f 100644 --- a/agent/ui_endpoint_test.go +++ b/agent/ui_endpoint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/uiserver/buf_index_fs.go b/agent/uiserver/buf_index_fs.go index 71066d8722c..9ea23316fb1 100644 --- a/agent/uiserver/buf_index_fs.go +++ b/agent/uiserver/buf_index_fs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package uiserver import ( diff --git a/agent/uiserver/buffered_file.go b/agent/uiserver/buffered_file.go index f5ebf0cf555..5c794dac269 100644 --- a/agent/uiserver/buffered_file.go +++ b/agent/uiserver/buffered_file.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package uiserver import ( diff --git a/agent/uiserver/redirect_fs.go b/agent/uiserver/redirect_fs.go index 3f6a8956dc9..66b48e637fd 100644 --- a/agent/uiserver/redirect_fs.go +++ b/agent/uiserver/redirect_fs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package uiserver import ( diff --git a/agent/uiserver/ui_template_data.go b/agent/uiserver/ui_template_data.go index e28fc97fe0b..d8d5fc42ba4 100644 --- a/agent/uiserver/ui_template_data.go +++ b/agent/uiserver/ui_template_data.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package uiserver import ( diff --git a/agent/uiserver/uiserver.go b/agent/uiserver/uiserver.go index 7393a6ead9d..8cabb8e3e0c 100644 --- a/agent/uiserver/uiserver.go +++ b/agent/uiserver/uiserver.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package uiserver import ( diff --git a/agent/uiserver/uiserver_test.go b/agent/uiserver/uiserver_test.go index 1c310a63ce0..c42792fe320 100644 --- a/agent/uiserver/uiserver_test.go +++ b/agent/uiserver/uiserver_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package uiserver import ( diff --git a/agent/user_event.go b/agent/user_event.go index ab7aa83ca39..25be0dd88f4 100644 --- a/agent/user_event.go +++ b/agent/user_event.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/user_event_test.go b/agent/user_event_test.go index 9f5bcee0a0d..ac807def924 100644 --- a/agent/user_event_test.go +++ b/agent/user_event_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/util.go b/agent/util.go index 55688fe3087..285ba91df94 100644 --- a/agent/util.go +++ b/agent/util.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/util_test.go b/agent/util_test.go index c2c49648a00..4c3ae5602d3 100644 --- a/agent/util_test.go +++ b/agent/util_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/watch_handler.go b/agent/watch_handler.go index 643d4afb134..518fd6c77c9 100644 --- a/agent/watch_handler.go +++ b/agent/watch_handler.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/watch_handler_test.go b/agent/watch_handler_test.go index a5ff8f7c723..f97d4d3982d 100644 --- a/agent/watch_handler_test.go +++ b/agent/watch_handler_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package agent import ( diff --git a/agent/xds/accesslogs/accesslogs.go b/agent/xds/accesslogs/accesslogs.go index 7efa1f76c21..84cbf55e64d 100644 --- a/agent/xds/accesslogs/accesslogs.go +++ b/agent/xds/accesslogs/accesslogs.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package accesslogs import ( diff --git a/agent/xds/clusters.go b/agent/xds/clusters.go index a6485d1c0d5..2422ae890b6 100644 --- a/agent/xds/clusters.go +++ b/agent/xds/clusters.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/clusters_test.go b/agent/xds/clusters_test.go index 094b9ceb182..14f49ba17eb 100644 --- a/agent/xds/clusters_test.go +++ b/agent/xds/clusters_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/config.go b/agent/xds/config.go index 39c4596f716..b2f759f82ff 100644 --- a/agent/xds/config.go +++ b/agent/xds/config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/config_test.go b/agent/xds/config_test.go index 89bd7a6c0a8..e544c30b393 100644 --- a/agent/xds/config_test.go +++ b/agent/xds/config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/delta.go b/agent/xds/delta.go index 62a725b8f1b..66072e0b81e 100644 --- a/agent/xds/delta.go +++ b/agent/xds/delta.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/delta_envoy_extender_oss_test.go b/agent/xds/delta_envoy_extender_oss_test.go index 48b7589ada1..8488be8c13b 100644 --- a/agent/xds/delta_envoy_extender_oss_test.go +++ b/agent/xds/delta_envoy_extender_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/xds/delta_test.go b/agent/xds/delta_test.go index 20ee2887dd7..1f4fd5e00c2 100644 --- a/agent/xds/delta_test.go +++ b/agent/xds/delta_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/endpoints.go b/agent/xds/endpoints.go index f0e8f47d3a3..982c6d96e8b 100644 --- a/agent/xds/endpoints.go +++ b/agent/xds/endpoints.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/endpoints_test.go b/agent/xds/endpoints_test.go index 31215adba93..ebdd06aa41e 100644 --- a/agent/xds/endpoints_test.go +++ b/agent/xds/endpoints_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/extensionruntime/runtime_config.go b/agent/xds/extensionruntime/runtime_config.go index 044cc215c6d..57e60db9105 100644 --- a/agent/xds/extensionruntime/runtime_config.go +++ b/agent/xds/extensionruntime/runtime_config.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package extensionruntime import ( diff --git a/agent/xds/extensionruntime/runtime_config_oss_test.go b/agent/xds/extensionruntime/runtime_config_oss_test.go index cc004c788de..95b6a56b28a 100644 --- a/agent/xds/extensionruntime/runtime_config_oss_test.go +++ b/agent/xds/extensionruntime/runtime_config_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/xds/failover_math.go b/agent/xds/failover_math.go index 4ebae89329e..f34be21bede 100644 --- a/agent/xds/failover_math.go +++ b/agent/xds/failover_math.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/failover_math_test.go b/agent/xds/failover_math_test.go index 296d1cc77f0..b007a7c6d7f 100644 --- a/agent/xds/failover_math_test.go +++ b/agent/xds/failover_math_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/golden_test.go b/agent/xds/golden_test.go index c056aa7b3a0..9209678bb52 100644 --- a/agent/xds/golden_test.go +++ b/agent/xds/golden_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/listeners.go b/agent/xds/listeners.go index 962de5f7088..dea043666a8 100644 --- a/agent/xds/listeners.go +++ b/agent/xds/listeners.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/listeners_ingress.go b/agent/xds/listeners_ingress.go index 40eb24230e0..c16a1b74cc2 100644 --- a/agent/xds/listeners_ingress.go +++ b/agent/xds/listeners_ingress.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/listeners_test.go b/agent/xds/listeners_test.go index a69a74a2b1c..7be4c9dd308 100644 --- a/agent/xds/listeners_test.go +++ b/agent/xds/listeners_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/naming.go b/agent/xds/naming.go index 620032a422b..ab9224f71ce 100644 --- a/agent/xds/naming.go +++ b/agent/xds/naming.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/net_fallback.go b/agent/xds/net_fallback.go index a09fc14983a..7230c18ef2e 100644 --- a/agent/xds/net_fallback.go +++ b/agent/xds/net_fallback.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !linux // +build !linux diff --git a/agent/xds/net_linux.go b/agent/xds/net_linux.go index 1be5d80c30b..96932ca3073 100644 --- a/agent/xds/net_linux.go +++ b/agent/xds/net_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build linux // +build linux diff --git a/agent/xds/protocol_trace.go b/agent/xds/protocol_trace.go index 1a9687f712c..42d82d76012 100644 --- a/agent/xds/protocol_trace.go +++ b/agent/xds/protocol_trace.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/rbac.go b/agent/xds/rbac.go index 579de980909..75a46f68663 100644 --- a/agent/xds/rbac.go +++ b/agent/xds/rbac.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/rbac_test.go b/agent/xds/rbac_test.go index 113587bb908..ac47fea26c9 100644 --- a/agent/xds/rbac_test.go +++ b/agent/xds/rbac_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/resources.go b/agent/xds/resources.go index cab494da4ca..c7099e5cb50 100644 --- a/agent/xds/resources.go +++ b/agent/xds/resources.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/resources_oss_test.go b/agent/xds/resources_oss_test.go index a22e18f6435..5da963940cc 100644 --- a/agent/xds/resources_oss_test.go +++ b/agent/xds/resources_oss_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/xds/resources_test.go b/agent/xds/resources_test.go index 1f9b99274bd..fcdac8d70a4 100644 --- a/agent/xds/resources_test.go +++ b/agent/xds/resources_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/response.go b/agent/xds/response.go index 06948d7fe3d..e452e8a2f26 100644 --- a/agent/xds/response.go +++ b/agent/xds/response.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/routes.go b/agent/xds/routes.go index 4588f39d617..30907002e80 100644 --- a/agent/xds/routes.go +++ b/agent/xds/routes.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/routes_test.go b/agent/xds/routes_test.go index c68e54c6d0a..eaa8d48c0fc 100644 --- a/agent/xds/routes_test.go +++ b/agent/xds/routes_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/secrets.go b/agent/xds/secrets.go index a1ef50e44ca..d150a12dc16 100644 --- a/agent/xds/secrets.go +++ b/agent/xds/secrets.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/server.go b/agent/xds/server.go index 57d7224f821..2e012a4cb6f 100644 --- a/agent/xds/server.go +++ b/agent/xds/server.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/server_oss.go b/agent/xds/server_oss.go index dc5ab309ce5..c1d651c0ad5 100644 --- a/agent/xds/server_oss.go +++ b/agent/xds/server_oss.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + //go:build !consulent // +build !consulent diff --git a/agent/xds/testcommon/testcommon.go b/agent/xds/testcommon/testcommon.go index ba75cf9ae97..1b0d6ebcbf5 100644 --- a/agent/xds/testcommon/testcommon.go +++ b/agent/xds/testcommon/testcommon.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package testcommon import ( diff --git a/agent/xds/testing.go b/agent/xds/testing.go index 76cc53f49fd..446f1a37a65 100644 --- a/agent/xds/testing.go +++ b/agent/xds/testing.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/validateupstream-test/validateupstream_test.go b/agent/xds/validateupstream-test/validateupstream_test.go index 4e41ba398bd..f2810bb1c02 100644 --- a/agent/xds/validateupstream-test/validateupstream_test.go +++ b/agent/xds/validateupstream-test/validateupstream_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package validateupstream_test import ( diff --git a/agent/xds/xds.go b/agent/xds/xds.go index 84c72663ca2..07fe1c47310 100644 --- a/agent/xds/xds.go +++ b/agent/xds/xds.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Package xds provides an implementation of a gRPC service that exports Envoy's // xDS API for config discovery. Specifically we support the Aggregated // Discovery Service (ADS) only as we control all config. diff --git a/agent/xds/xds_protocol_helpers_test.go b/agent/xds/xds_protocol_helpers_test.go index b71c8282e8f..5b153f40214 100644 --- a/agent/xds/xds_protocol_helpers_test.go +++ b/agent/xds/xds_protocol_helpers_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import ( diff --git a/agent/xds/z_xds_packages_test.go b/agent/xds/z_xds_packages_test.go index 5644508e6cb..149490678cf 100644 --- a/agent/xds/z_xds_packages_test.go +++ b/agent/xds/z_xds_packages_test.go @@ -1,3 +1,6 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + package xds import (