From af9f21422fb574fd43f1a91595b598ef8ce59400 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Tue, 22 Aug 2023 10:40:37 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20update=20license=20from=20MPL=20?= =?UTF-8?q?2.0=20to=20BUSL=201.1=20license?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .copywrite.hcl | 17 + .github/.goreleaser-edge.yml | 3 + .github/workflows/pr-test-lint.yml | 14 +- .golangci.yml | 3 + .goreleaser.yml | 3 + Dockerfile | 3 + LICENSE | 34 ++ LICENSE.txt | 373 ------------------ apps/cnspec/cmd/backgroundjob/background.go | 3 + apps/cnspec/cmd/backgroundjob/healthping.go | 3 + apps/cnspec/cmd/backgroundjob/serve_unix.go | 3 + .../cnspec/cmd/backgroundjob/serve_windows.go | 3 + apps/cnspec/cmd/bundle.go | 3 + apps/cnspec/cmd/config/config.go | 3 + apps/cnspec/cmd/config/config_test.go | 3 + apps/cnspec/cmd/login.go | 3 + apps/cnspec/cmd/logout.go | 3 + apps/cnspec/cmd/migrate.go | 3 + apps/cnspec/cmd/policy-example.mql.yaml | 3 + apps/cnspec/cmd/root.go | 3 + apps/cnspec/cmd/run.go | 3 + apps/cnspec/cmd/scan.go | 3 + apps/cnspec/cmd/serve.go | 3 + apps/cnspec/cmd/serve_api.go | 3 + apps/cnspec/cmd/shell.go | 3 + apps/cnspec/cmd/status.go | 3 + apps/cnspec/cmd/vault.go | 3 + apps/cnspec/cmd/version.go | 3 + apps/cnspec/cmd/vuln.go | 3 + apps/cnspec/cnspec.go | 3 + apps/gen-docs/main.go | 3 + cli/components/advisories/report.go | 3 + cli/components/advisory_results.go | 3 + cli/components/advisory_results_test.go | 3 + cli/components/barchart.go | 3 + cli/components/components.go | 3 + cli/components/cvss_indicator.go | 3 + cli/components/paper.go | 3 + cli/components/question.go | 3 + cli/components/rating.go | 3 + cli/components/report.go | 3 + cli/components/scorecard.go | 3 + cli/components/stackbar.go | 3 + cli/components/stackbar_test.go | 3 + cli/reporter/csv_vuln.go | 3 + cli/reporter/csv_vuln_test.go | 3 + cli/reporter/json.go | 3 + cli/reporter/json_vuln.go | 3 + cli/reporter/json_vuln_test.go | 3 + cli/reporter/junit.go | 3 + cli/reporter/junit_test.go | 3 + cli/reporter/print.go | 3 + cli/reporter/print_compact.go | 3 + cli/reporter/print_darwin.go | 3 + cli/reporter/print_linux.go | 3 + cli/reporter/print_report.go | 3 + cli/reporter/print_vuln.go | 3 + cli/reporter/print_windows.go | 3 + cli/reporter/render_advisory_policy.go | 3 + cli/reporter/render_asset_overview.go | 3 + cli/reporter/render_meta_policy.go | 3 + cli/reporter/render_policy.go | 3 + cli/reporter/reporter.go | 3 + cli/reporter/reporter.proto | 3 + cli/reporter/reporter_test.go | 3 + cli/reporter/summary.go | 3 + cnspec.go | 3 + examples/complex.mql.yaml | 3 + examples/compliance.mql.yaml | 3 + examples/directory/example1.mql.yaml | 3 + examples/directory/example2.mql.yaml | 3 + examples/directory/queries/linux-1.mql.yaml | 3 + examples/directory/queries/sshd-01.mql.yaml | 3 + examples/directory/queries/sshd-02.mql.yaml | 3 + examples/directory/queries/sshd-03.mql.yaml | 3 + examples/directory/queries/sshd-d-1.mql.yaml | 3 + examples/example.mql.yaml | 3 + internal/bundle/bundle_ext.go | 3 + internal/bundle/bundle_test.go | 3 + internal/bundle/fmt.go | 3 + internal/bundle/fmt_test.go | 3 + internal/bundle/lint.go | 3 + internal/bundle/lint_results_cli.go | 3 + internal/bundle/lint_results_sarif.go | 3 + internal/bundle/lint_test.go | 3 + internal/bundle/yacit/main.go | 3 + internal/datalakes/inmemory/assets.go | 3 + internal/datalakes/inmemory/inmemory.go | 3 + internal/datalakes/inmemory/kiss.go | 3 + internal/datalakes/inmemory/policyhub.go | 3 + internal/datalakes/inmemory/policyresolver.go | 3 + .../inmemory/resolved_policy_cache.go | 3 + internal/plugin/plugin.go | 3 + internal/plugin/plugin_test.go | 3 + internal/yac-it/yac-it.go | 3 + policy/assessment.go | 3 + policy/bundle.go | 3 + policy/bundle_map.go | 3 + policy/bundle_test.go | 3 + policy/cnspec_policy.proto | 3 + policy/collectorjob.go | 3 + policy/collectorjob_test.go | 3 + policy/datalake.go | 3 + policy/deprecated_v7.go | 3 + policy/deprecated_v7.mql.yaml | 3 + policy/deprecated_v7_test.go | 3 + policy/executor/executor.go | 3 + policy/executor/executor_test.go | 3 + policy/executor/graph.go | 3 + policy/executor/internal/builder.go | 3 + policy/executor/internal/builder_test.go | 3 + policy/executor/internal/collector.go | 3 + policy/executor/internal/execution_manager.go | 3 + policy/executor/internal/graph.go | 3 + policy/executor/internal/nodes.go | 3 + policy/executor/internal/nodes_test.go | 3 + policy/executor/internal/queue.go | 3 + policy/executor/internal/waitgroup.go | 3 + policy/executor/internal/waitgroup_test.go | 3 + policy/executor/mustcompile.go | 3 + policy/executor/mustcompile_test.go | 3 + policy/framework.go | 3 + policy/frameworks_test.go | 3 + policy/hub.go | 3 + policy/hub_test.go | 3 + policy/mquery.go | 3 + policy/mquery_test.go | 3 + policy/policy.go | 3 + policy/policy_test.go | 3 + policy/rating.go | 3 + policy/report.go | 3 + policy/report_test.go | 3 + policy/reportingjob.go | 3 + policy/resolved_policy.go | 3 + policy/resolver.go | 3 + policy/resolver_test.go | 3 + policy/scan/aggregate_reporter.go | 3 + policy/scan/disk_queue.go | 3 + policy/scan/error_reporter.go | 3 + policy/scan/fetcher.go | 3 + policy/scan/local_scanner.go | 3 + policy/scan/local_scanner_test.go | 3 + policy/scan/noop_reporter.go | 3 + policy/scan/reporter.go | 3 + policy/scan/scan.go | 3 + policy/scan/scan.proto | 3 + policy/score.go | 3 + policy/score_calculator.go | 3 + policy/score_calculator_test.go | 3 + policy/services.go | 3 + scripts/pkg/debian/postinstall.sh | 3 + scripts/pkg/debian/preinstall.sh | 3 + scripts/pkg/debian/preremove.sh | 3 + scripts/pkg/linux/postinstall.sh | 3 + scripts/pkg/linux/preinstall.sh | 3 + scripts/pkg/linux/preremove.sh | 3 + scripts/pkg/windows/windows-upx.sh | 3 + upstream/cnspec_upstream.proto | 3 + upstream/upstream.go | 3 + 159 files changed, 529 insertions(+), 374 deletions(-) create mode 100644 .copywrite.hcl create mode 100644 LICENSE delete mode 100644 LICENSE.txt diff --git a/.copywrite.hcl b/.copywrite.hcl new file mode 100644 index 00000000..ed2142c1 --- /dev/null +++ b/.copywrite.hcl @@ -0,0 +1,17 @@ +schema_version = 1 + +project { + license = "BUSL-1.1" + copyright_holder = "Mondoo, Inc." + copyright_year = 2023 + + # (OPTIONAL) A list of globs that should not have copyright/license headers. + # Supports doublestar glob patterns for more flexibility in defining which + # files or folders should be ignored + header_ignore = [ + "**/*.tf", + "**/testdata/**", + "**/*.pb.go", + "**/*_string.go", + ] +} \ No newline at end of file diff --git a/.github/.goreleaser-edge.yml b/.github/.goreleaser-edge.yml index 0ec48071..c085d62d 100644 --- a/.github/.goreleaser-edge.yml +++ b/.github/.goreleaser-edge.yml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + --- project_name: cnspec env: diff --git a/.github/workflows/pr-test-lint.yml b/.github/workflows/pr-test-lint.yml index 53e8b9f8..27409bee 100644 --- a/.github/workflows/pr-test-lint.yml +++ b/.github/workflows/pr-test-lint.yml @@ -69,4 +69,16 @@ jobs: if: success() || failure() # run this step even if previous step failed with: name: test-results - path: report.xml \ No newline at end of file + path: report.xml + + license-check: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Copywrite + uses: hashicorp/setup-copywrite@v1.1.2 + + - name: Check Header Compliance + run: copywrite headers --plan diff --git a/.golangci.yml b/.golangci.yml index 5c6e1e29..b7cdbaa9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + # See https://golangci-lint.run/usage/configuration/ for configuration options run: timeout: 5m diff --git a/.goreleaser.yml b/.goreleaser.yml index ed4d697a..0f73cae8 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + --- project_name: cnspec env: diff --git a/Dockerfile b/Dockerfile index fb90f100..ffcb0004 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + ARG VERSION FROM mondoo/cnquery:$VERSION COPY cnspec /usr/local/bin diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..556bd6e2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,34 @@ +License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. +“Business Source License” is a trademark of MariaDB Corporation Ab. + +Parameters + +Licensor: Mondoo, Inc. (“Mondoo”) +Licensed Work(s): cnspec version 9.0.0 and later. The Licensed Work is (c) 2023 Mondoo, Inc. +Additional Use Grant: You may use, distribute or host the Licensed Work in your own or your direct customers’ production environment, provided that such use, distribution or hosting does not include offering the Licensed Work to third parties as part of or in connection with an offering that is competitive with any of Mondoo’s products. +Change Date: Four years from the date the Licensed Work is published +Change License: MPL 2.0 + +For information about alternative licensing arrangements for the Licensed Work, please contact licensing@mondoo.com. + +Notice + +Business Source License 1.1 + +Terms + +The Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work. The Licensor may make an Additional Use Grant, above, permitting limited production use. + +Effective on the Change Date, or the fourth anniversary of the first publicly available distribution of a specific version of the Licensed Work under this License, whichever comes first, the Licensor hereby grants you rights under the terms of the Change License, and the rights granted in the paragraph above terminate. + +If your use of the Licensed Work does not comply with the requirements currently in effect as described in this License, you must purchase a commercial license from the Licensor, its affiliated entities, or authorized resellers, or you must refrain from using the Licensed Work. + +All copies of the original and modified Licensed Work, and derivative works of the Licensed Work, are subject to this License. This License applies separately for each version of the Licensed Work and the Change Date may vary for each version of the Licensed Work released by Licensor. + +You must conspicuously display this License on each original or modified copy of the Licensed Work. If you receive the Licensed Work in original or modified form from a third party, the terms and conditions set forth in this License apply to your use of that work. + +Any use of the Licensed Work in violation of this License will automatically terminate your rights under this License for the current and all other versions of the Licensed Work. + +This License does not grant you any right in any trademark or logo of Licensor or its affiliates (provided that you may use a trademark or logo of Licensor as expressly required by this License). + +TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE. diff --git a/LICENSE.txt b/LICENSE.txt deleted file mode 100644 index 14e2f777..00000000 --- a/LICENSE.txt +++ /dev/null @@ -1,373 +0,0 @@ -Mozilla Public License Version 2.0 -================================== - -1. Definitions --------------- - -1.1. "Contributor" - means each individual or legal entity that creates, contributes to - the creation of, or owns Covered Software. - -1.2. "Contributor Version" - means the combination of the Contributions of others (if any) used - by a Contributor and that particular Contributor's Contribution. - -1.3. "Contribution" - means Covered Software of a particular Contributor. - -1.4. "Covered Software" - means Source Code Form to which the initial Contributor has attached - the notice in Exhibit A, the Executable Form of such Source Code - Form, and Modifications of such Source Code Form, in each case - including portions thereof. - -1.5. "Incompatible With Secondary Licenses" - means - - (a) that the initial Contributor has attached the notice described - in Exhibit B to the Covered Software; or - - (b) that the Covered Software was made available under the terms of - version 1.1 or earlier of the License, but not also under the - terms of a Secondary License. - -1.6. "Executable Form" - means any form of the work other than Source Code Form. - -1.7. "Larger Work" - means a work that combines Covered Software with other material, in - a separate file or files, that is not Covered Software. - -1.8. "License" - means this document. - -1.9. "Licensable" - means having the right to grant, to the maximum extent possible, - whether at the time of the initial grant or subsequently, any and - all of the rights conveyed by this License. - -1.10. "Modifications" - means any of the following: - - (a) any file in Source Code Form that results from an addition to, - deletion from, or modification of the contents of Covered - Software; or - - (b) any new file in Source Code Form that contains any Covered - Software. - -1.11. "Patent Claims" of a Contributor - means any patent claim(s), including without limitation, method, - process, and apparatus claims, in any patent Licensable by such - Contributor that would be infringed, but for the grant of the - License, by the making, using, selling, offering for sale, having - made, import, or transfer of either its Contributions or its - Contributor Version. - -1.12. "Secondary License" - means either the GNU General Public License, Version 2.0, the GNU - Lesser General Public License, Version 2.1, the GNU Affero General - Public License, Version 3.0, or any later versions of those - licenses. - -1.13. "Source Code Form" - means the form of the work preferred for making modifications. - -1.14. "You" (or "Your") - means an individual or a legal entity exercising rights under this - License. For legal entities, "You" includes any entity that - controls, is controlled by, or is under common control with You. For - purposes of this definition, "control" means (a) the power, direct - or indirect, to cause the direction or management of such entity, - whether by contract or otherwise, or (b) ownership of more than - fifty percent (50%) of the outstanding shares or beneficial - ownership of such entity. - -2. License Grants and Conditions --------------------------------- - -2.1. Grants - -Each Contributor hereby grants You a world-wide, royalty-free, -non-exclusive license: - -(a) under intellectual property rights (other than patent or trademark) - Licensable by such Contributor to use, reproduce, make available, - modify, display, perform, distribute, and otherwise exploit its - Contributions, either on an unmodified basis, with Modifications, or - as part of a Larger Work; and - -(b) under Patent Claims of such Contributor to make, use, sell, offer - for sale, have made, import, and otherwise transfer either its - Contributions or its Contributor Version. - -2.2. Effective Date - -The licenses granted in Section 2.1 with respect to any Contribution -become effective for each Contribution on the date the Contributor first -distributes such Contribution. - -2.3. Limitations on Grant Scope - -The licenses granted in this Section 2 are the only rights granted under -this License. No additional rights or licenses will be implied from the -distribution or licensing of Covered Software under this License. -Notwithstanding Section 2.1(b) above, no patent license is granted by a -Contributor: - -(a) for any code that a Contributor has removed from Covered Software; - or - -(b) for infringements caused by: (i) Your and any other third party's - modifications of Covered Software, or (ii) the combination of its - Contributions with other software (except as part of its Contributor - Version); or - -(c) under Patent Claims infringed by Covered Software in the absence of - its Contributions. - -This License does not grant any rights in the trademarks, service marks, -or logos of any Contributor (except as may be necessary to comply with -the notice requirements in Section 3.4). - -2.4. Subsequent Licenses - -No Contributor makes additional grants as a result of Your choice to -distribute the Covered Software under a subsequent version of this -License (see Section 10.2) or under the terms of a Secondary License (if -permitted under the terms of Section 3.3). - -2.5. Representation - -Each Contributor represents that the Contributor believes its -Contributions are its original creation(s) or it has sufficient rights -to grant the rights to its Contributions conveyed by this License. - -2.6. Fair Use - -This License is not intended to limit any rights You have under -applicable copyright doctrines of fair use, fair dealing, or other -equivalents. - -2.7. Conditions - -Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted -in Section 2.1. - -3. Responsibilities -------------------- - -3.1. Distribution of Source Form - -All distribution of Covered Software in Source Code Form, including any -Modifications that You create or to which You contribute, must be under -the terms of this License. You must inform recipients that the Source -Code Form of the Covered Software is governed by the terms of this -License, and how they can obtain a copy of this License. You may not -attempt to alter or restrict the recipients' rights in the Source Code -Form. - -3.2. Distribution of Executable Form - -If You distribute Covered Software in Executable Form then: - -(a) such Covered Software must also be made available in Source Code - Form, as described in Section 3.1, and You must inform recipients of - the Executable Form how they can obtain a copy of such Source Code - Form by reasonable means in a timely manner, at a charge no more - than the cost of distribution to the recipient; and - -(b) You may distribute such Executable Form under the terms of this - License, or sublicense it under different terms, provided that the - license for the Executable Form does not attempt to limit or alter - the recipients' rights in the Source Code Form under this License. - -3.3. Distribution of a Larger Work - -You may create and distribute a Larger Work under terms of Your choice, -provided that You also comply with the requirements of this License for -the Covered Software. If the Larger Work is a combination of Covered -Software with a work governed by one or more Secondary Licenses, and the -Covered Software is not Incompatible With Secondary Licenses, this -License permits You to additionally distribute such Covered Software -under the terms of such Secondary License(s), so that the recipient of -the Larger Work may, at their option, further distribute the Covered -Software under the terms of either this License or such Secondary -License(s). - -3.4. Notices - -You may not remove or alter the substance of any license notices -(including copyright notices, patent notices, disclaimers of warranty, -or limitations of liability) contained within the Source Code Form of -the Covered Software, except that You may alter any license notices to -the extent required to remedy known factual inaccuracies. - -3.5. Application of Additional Terms - -You may choose to offer, and to charge a fee for, warranty, support, -indemnity or liability obligations to one or more recipients of Covered -Software. However, You may do so only on Your own behalf, and not on -behalf of any Contributor. You must make it absolutely clear that any -such warranty, support, indemnity, or liability obligation is offered by -You alone, and You hereby agree to indemnify every Contributor for any -liability incurred by such Contributor as a result of warranty, support, -indemnity or liability terms You offer. You may include additional -disclaimers of warranty and limitations of liability specific to any -jurisdiction. - -4. Inability to Comply Due to Statute or Regulation ---------------------------------------------------- - -If it is impossible for You to comply with any of the terms of this -License with respect to some or all of the Covered Software due to -statute, judicial order, or regulation then You must: (a) comply with -the terms of this License to the maximum extent possible; and (b) -describe the limitations and the code they affect. Such description must -be placed in a text file included with all distributions of the Covered -Software under this License. Except to the extent prohibited by statute -or regulation, such description must be sufficiently detailed for a -recipient of ordinary skill to be able to understand it. - -5. Termination --------------- - -5.1. The rights granted under this License will terminate automatically -if You fail to comply with any of its terms. However, if You become -compliant, then the rights granted under this License from a particular -Contributor are reinstated (a) provisionally, unless and until such -Contributor explicitly and finally terminates Your grants, and (b) on an -ongoing basis, if such Contributor fails to notify You of the -non-compliance by some reasonable means prior to 60 days after You have -come back into compliance. Moreover, Your grants from a particular -Contributor are reinstated on an ongoing basis if such Contributor -notifies You of the non-compliance by some reasonable means, this is the -first time You have received notice of non-compliance with this License -from such Contributor, and You become compliant prior to 30 days after -Your receipt of the notice. - -5.2. If You initiate litigation against any entity by asserting a patent -infringement claim (excluding declaratory judgment actions, -counter-claims, and cross-claims) alleging that a Contributor Version -directly or indirectly infringes any patent, then the rights granted to -You by any and all Contributors for the Covered Software under Section -2.1 of this License shall terminate. - -5.3. In the event of termination under Sections 5.1 or 5.2 above, all -end user license agreements (excluding distributors and resellers) which -have been validly granted by You or Your distributors under this License -prior to termination shall survive termination. - -************************************************************************ -* * -* 6. Disclaimer of Warranty * -* ------------------------- * -* * -* Covered Software is provided under this License on an "as is" * -* basis, without warranty of any kind, either expressed, implied, or * -* statutory, including, without limitation, warranties that the * -* Covered Software is free of defects, merchantable, fit for a * -* particular purpose or non-infringing. The entire risk as to the * -* quality and performance of the Covered Software is with You. * -* Should any Covered Software prove defective in any respect, You * -* (not any Contributor) assume the cost of any necessary servicing, * -* repair, or correction. This disclaimer of warranty constitutes an * -* essential part of this License. No use of any Covered Software is * -* authorized under this License except under this disclaimer. * -* * -************************************************************************ - -************************************************************************ -* * -* 7. Limitation of Liability * -* -------------------------- * -* * -* Under no circumstances and under no legal theory, whether tort * -* (including negligence), contract, or otherwise, shall any * -* Contributor, or anyone who distributes Covered Software as * -* permitted above, be liable to You for any direct, indirect, * -* special, incidental, or consequential damages of any character * -* including, without limitation, damages for lost profits, loss of * -* goodwill, work stoppage, computer failure or malfunction, or any * -* and all other commercial damages or losses, even if such party * -* shall have been informed of the possibility of such damages. This * -* limitation of liability shall not apply to liability for death or * -* personal injury resulting from such party's negligence to the * -* extent applicable law prohibits such limitation. Some * -* jurisdictions do not allow the exclusion or limitation of * -* incidental or consequential damages, so this exclusion and * -* limitation may not apply to You. * -* * -************************************************************************ - -8. Litigation -------------- - -Any litigation relating to this License may be brought only in the -courts of a jurisdiction where the defendant maintains its principal -place of business and such litigation shall be governed by laws of that -jurisdiction, without reference to its conflict-of-law provisions. -Nothing in this Section shall prevent a party's ability to bring -cross-claims or counter-claims. - -9. Miscellaneous ----------------- - -This License represents the complete agreement concerning the subject -matter hereof. If any provision of this License is held to be -unenforceable, such provision shall be reformed only to the extent -necessary to make it enforceable. Any law or regulation which provides -that the language of a contract shall be construed against the drafter -shall not be used to construe this License against a Contributor. - -10. Versions of the License ---------------------------- - -10.1. New Versions - -Mozilla Foundation is the license steward. Except as provided in Section -10.3, no one other than the license steward has the right to modify or -publish new versions of this License. Each version will be given a -distinguishing version number. - -10.2. Effect of New Versions - -You may distribute the Covered Software under the terms of the version -of the License under which You originally received the Covered Software, -or under the terms of any subsequent version published by the license -steward. - -10.3. Modified Versions - -If you create software not governed by this License, and you want to -create a new license for such software, you may create and use a -modified version of this License if you rename the license and remove -any references to the name of the license steward (except to note that -such modified license differs from this License). - -10.4. Distributing Source Code Form that is Incompatible With Secondary -Licenses - -If You choose to distribute Source Code Form that is Incompatible With -Secondary Licenses under the terms of this version of the License, the -notice described in Exhibit B of this License must be attached. - -Exhibit A - Source Code Form License Notice -------------------------------------------- - - This Source Code Form is subject to the terms of the Mozilla Public - License, v. 2.0. If a copy of the MPL was not distributed with this - file, You can obtain one at http://mozilla.org/MPL/2.0/. - -If it is not possible or desirable to put the notice in a particular -file, then You may include the notice in a location (such as a LICENSE -file in a relevant directory) where a recipient would be likely to look -for such a notice. - -You may add additional accurate notices of copyright ownership. - -Exhibit B - "Incompatible With Secondary Licenses" Notice ---------------------------------------------------------- - - This Source Code Form is "Incompatible With Secondary Licenses", as - defined by the Mozilla Public License, v. 2.0. diff --git a/apps/cnspec/cmd/backgroundjob/background.go b/apps/cnspec/cmd/backgroundjob/background.go index 411b95d6..ae21cb91 100644 --- a/apps/cnspec/cmd/backgroundjob/background.go +++ b/apps/cnspec/cmd/backgroundjob/background.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package backgroundjob import ( diff --git a/apps/cnspec/cmd/backgroundjob/healthping.go b/apps/cnspec/cmd/backgroundjob/healthping.go index 7040c15e..037beb2e 100644 --- a/apps/cnspec/cmd/backgroundjob/healthping.go +++ b/apps/cnspec/cmd/backgroundjob/healthping.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package backgroundjob import ( diff --git a/apps/cnspec/cmd/backgroundjob/serve_unix.go b/apps/cnspec/cmd/backgroundjob/serve_unix.go index d7786bcc..3566026d 100644 --- a/apps/cnspec/cmd/backgroundjob/serve_unix.go +++ b/apps/cnspec/cmd/backgroundjob/serve_unix.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + //go:build linux || darwin || netbsd || openbsd || freebsd // +build linux darwin netbsd openbsd freebsd diff --git a/apps/cnspec/cmd/backgroundjob/serve_windows.go b/apps/cnspec/cmd/backgroundjob/serve_windows.go index e5b17af0..316c705f 100644 --- a/apps/cnspec/cmd/backgroundjob/serve_windows.go +++ b/apps/cnspec/cmd/backgroundjob/serve_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + //go:build windows // +build windows diff --git a/apps/cnspec/cmd/bundle.go b/apps/cnspec/cmd/bundle.go index f0f31347..990d2deb 100644 --- a/apps/cnspec/cmd/bundle.go +++ b/apps/cnspec/cmd/bundle.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/config/config.go b/apps/cnspec/cmd/config/config.go index 9b5cec69..3d67b610 100644 --- a/apps/cnspec/cmd/config/config.go +++ b/apps/cnspec/cmd/config/config.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package config import ( diff --git a/apps/cnspec/cmd/config/config_test.go b/apps/cnspec/cmd/config/config_test.go index d066f776..e3c66783 100644 --- a/apps/cnspec/cmd/config/config_test.go +++ b/apps/cnspec/cmd/config/config_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package config import ( diff --git a/apps/cnspec/cmd/login.go b/apps/cnspec/cmd/login.go index 0ef9cda5..96d4a693 100644 --- a/apps/cnspec/cmd/login.go +++ b/apps/cnspec/cmd/login.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/logout.go b/apps/cnspec/cmd/logout.go index e3c06962..eef504b8 100644 --- a/apps/cnspec/cmd/logout.go +++ b/apps/cnspec/cmd/logout.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/migrate.go b/apps/cnspec/cmd/migrate.go index b381e533..54f68881 100644 --- a/apps/cnspec/cmd/migrate.go +++ b/apps/cnspec/cmd/migrate.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/policy-example.mql.yaml b/apps/cnspec/cmd/policy-example.mql.yaml index afb5b48a..ae466311 100644 --- a/apps/cnspec/cmd/policy-example.mql.yaml +++ b/apps/cnspec/cmd/policy-example.mql.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + # Read more about the policy structure at https://mondoo.com/docs policies: - uid: sshd-server-policy diff --git a/apps/cnspec/cmd/root.go b/apps/cnspec/cmd/root.go index 7c00c14d..51e4b96d 100644 --- a/apps/cnspec/cmd/root.go +++ b/apps/cnspec/cmd/root.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/run.go b/apps/cnspec/cmd/run.go index 46bf5fa5..abfead39 100644 --- a/apps/cnspec/cmd/run.go +++ b/apps/cnspec/cmd/run.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/scan.go b/apps/cnspec/cmd/scan.go index 1feb9f12..65e430dd 100644 --- a/apps/cnspec/cmd/scan.go +++ b/apps/cnspec/cmd/scan.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/serve.go b/apps/cnspec/cmd/serve.go index 7034a026..490f4031 100644 --- a/apps/cnspec/cmd/serve.go +++ b/apps/cnspec/cmd/serve.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/serve_api.go b/apps/cnspec/cmd/serve_api.go index a3e78dc2..ca1bbebd 100644 --- a/apps/cnspec/cmd/serve_api.go +++ b/apps/cnspec/cmd/serve_api.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/shell.go b/apps/cnspec/cmd/shell.go index df1f9dc6..9445452e 100644 --- a/apps/cnspec/cmd/shell.go +++ b/apps/cnspec/cmd/shell.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/status.go b/apps/cnspec/cmd/status.go index 32b29165..31667411 100644 --- a/apps/cnspec/cmd/status.go +++ b/apps/cnspec/cmd/status.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/vault.go b/apps/cnspec/cmd/vault.go index c09d4a70..2a8ebf0f 100644 --- a/apps/cnspec/cmd/vault.go +++ b/apps/cnspec/cmd/vault.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/version.go b/apps/cnspec/cmd/version.go index f8459af2..5d3ae24b 100644 --- a/apps/cnspec/cmd/version.go +++ b/apps/cnspec/cmd/version.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cmd/vuln.go b/apps/cnspec/cmd/vuln.go index c7d24813..783b11a3 100644 --- a/apps/cnspec/cmd/vuln.go +++ b/apps/cnspec/cmd/vuln.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cmd import ( diff --git a/apps/cnspec/cnspec.go b/apps/cnspec/cnspec.go index dce59347..33c4c4db 100644 --- a/apps/cnspec/cnspec.go +++ b/apps/cnspec/cnspec.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package main import "go.mondoo.com/cnspec/apps/cnspec/cmd" diff --git a/apps/gen-docs/main.go b/apps/gen-docs/main.go index f9d61420..4df2678f 100644 --- a/apps/gen-docs/main.go +++ b/apps/gen-docs/main.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package main import ( diff --git a/cli/components/advisories/report.go b/cli/components/advisories/report.go index 004cd490..698da0cf 100644 --- a/cli/components/advisories/report.go +++ b/cli/components/advisories/report.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package advisories import ( diff --git a/cli/components/advisory_results.go b/cli/components/advisory_results.go index d57e82cc..75b13f6a 100644 --- a/cli/components/advisory_results.go +++ b/cli/components/advisory_results.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package components import ( diff --git a/cli/components/advisory_results_test.go b/cli/components/advisory_results_test.go index 2b032d90..5c5ebbd6 100644 --- a/cli/components/advisory_results_test.go +++ b/cli/components/advisory_results_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package components import ( diff --git a/cli/components/barchart.go b/cli/components/barchart.go index 7305ef03..9867bacd 100644 --- a/cli/components/barchart.go +++ b/cli/components/barchart.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package components import ( diff --git a/cli/components/components.go b/cli/components/components.go index 9011d24f..d33f7040 100644 --- a/cli/components/components.go +++ b/cli/components/components.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package components const defaultWidth = 40 diff --git a/cli/components/cvss_indicator.go b/cli/components/cvss_indicator.go index 14a8977b..8039b513 100644 --- a/cli/components/cvss_indicator.go +++ b/cli/components/cvss_indicator.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package components import ( diff --git a/cli/components/paper.go b/cli/components/paper.go index a3b22681..d310fc63 100644 --- a/cli/components/paper.go +++ b/cli/components/paper.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package components import ( diff --git a/cli/components/question.go b/cli/components/question.go index 84ff6637..c9b20556 100644 --- a/cli/components/question.go +++ b/cli/components/question.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package components import ( diff --git a/cli/components/rating.go b/cli/components/rating.go index 2a56c8a3..e75726df 100644 --- a/cli/components/rating.go +++ b/cli/components/rating.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package components import ( diff --git a/cli/components/report.go b/cli/components/report.go index 98560209..65c8f7d6 100644 --- a/cli/components/report.go +++ b/cli/components/report.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package components type ReportFindingRow struct { diff --git a/cli/components/scorecard.go b/cli/components/scorecard.go index 257600c6..98d62e30 100644 --- a/cli/components/scorecard.go +++ b/cli/components/scorecard.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package components import ( diff --git a/cli/components/stackbar.go b/cli/components/stackbar.go index 59c63ea8..8cf8cb6d 100644 --- a/cli/components/stackbar.go +++ b/cli/components/stackbar.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package components import ( diff --git a/cli/components/stackbar_test.go b/cli/components/stackbar_test.go index 875275c6..970ae6a2 100644 --- a/cli/components/stackbar_test.go +++ b/cli/components/stackbar_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package components import ( diff --git a/cli/reporter/csv_vuln.go b/cli/reporter/csv_vuln.go index f9b68fea..08fb921b 100644 --- a/cli/reporter/csv_vuln.go +++ b/cli/reporter/csv_vuln.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/csv_vuln_test.go b/cli/reporter/csv_vuln_test.go index 864a6572..15d02542 100644 --- a/cli/reporter/csv_vuln_test.go +++ b/cli/reporter/csv_vuln_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/json.go b/cli/reporter/json.go index 617c1f58..eaa0d34b 100644 --- a/cli/reporter/json.go +++ b/cli/reporter/json.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/json_vuln.go b/cli/reporter/json_vuln.go index b22884a9..695c3eb4 100644 --- a/cli/reporter/json_vuln.go +++ b/cli/reporter/json_vuln.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/json_vuln_test.go b/cli/reporter/json_vuln_test.go index 10ff7981..f6a48d82 100644 --- a/cli/reporter/json_vuln_test.go +++ b/cli/reporter/json_vuln_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/junit.go b/cli/reporter/junit.go index ec04cab4..4fc52b60 100644 --- a/cli/reporter/junit.go +++ b/cli/reporter/junit.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/junit_test.go b/cli/reporter/junit_test.go index 3dbe85c3..87a75b4c 100644 --- a/cli/reporter/junit_test.go +++ b/cli/reporter/junit_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter //func TestJunitConverter(t *testing.T) { diff --git a/cli/reporter/print.go b/cli/reporter/print.go index 8ac8b1d6..0fc86963 100644 --- a/cli/reporter/print.go +++ b/cli/reporter/print.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/print_compact.go b/cli/reporter/print_compact.go index 56e3f36f..6d771420 100644 --- a/cli/reporter/print_compact.go +++ b/cli/reporter/print_compact.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/print_darwin.go b/cli/reporter/print_darwin.go index 5752cee6..3f485d88 100644 --- a/cli/reporter/print_darwin.go +++ b/cli/reporter/print_darwin.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter const NewLineCharacter = "\n" diff --git a/cli/reporter/print_linux.go b/cli/reporter/print_linux.go index 5752cee6..3f485d88 100644 --- a/cli/reporter/print_linux.go +++ b/cli/reporter/print_linux.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter const NewLineCharacter = "\n" diff --git a/cli/reporter/print_report.go b/cli/reporter/print_report.go index 00a0159e..cb921761 100644 --- a/cli/reporter/print_report.go +++ b/cli/reporter/print_report.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/print_vuln.go b/cli/reporter/print_vuln.go index bab9f56f..7456a792 100644 --- a/cli/reporter/print_vuln.go +++ b/cli/reporter/print_vuln.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/print_windows.go b/cli/reporter/print_windows.go index 31b967d6..021e0b75 100644 --- a/cli/reporter/print_windows.go +++ b/cli/reporter/print_windows.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter const NewLineCharacter = "\r\n" diff --git a/cli/reporter/render_advisory_policy.go b/cli/reporter/render_advisory_policy.go index 785fe404..c0120f9b 100644 --- a/cli/reporter/render_advisory_policy.go +++ b/cli/reporter/render_advisory_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/render_asset_overview.go b/cli/reporter/render_asset_overview.go index f2286036..95375a69 100644 --- a/cli/reporter/render_asset_overview.go +++ b/cli/reporter/render_asset_overview.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/render_meta_policy.go b/cli/reporter/render_meta_policy.go index ced0e341..de6b06b2 100644 --- a/cli/reporter/render_meta_policy.go +++ b/cli/reporter/render_meta_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/render_policy.go b/cli/reporter/render_policy.go index 59037145..c8d4cc8c 100644 --- a/cli/reporter/render_policy.go +++ b/cli/reporter/render_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/reporter.go b/cli/reporter/reporter.go index 504949b2..60ae0f9a 100644 --- a/cli/reporter/reporter.go +++ b/cli/reporter/reporter.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/reporter.proto b/cli/reporter/reporter.proto index d7a5fc1d..fe56534f 100644 --- a/cli/reporter/reporter.proto +++ b/cli/reporter/reporter.proto @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + syntax = "proto3"; package cnspec.reporter.v1; diff --git a/cli/reporter/reporter_test.go b/cli/reporter/reporter_test.go index 1d50b0d9..60781ce7 100644 --- a/cli/reporter/reporter_test.go +++ b/cli/reporter/reporter_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cli/reporter/summary.go b/cli/reporter/summary.go index 03b45d7f..ef00835f 100644 --- a/cli/reporter/summary.go +++ b/cli/reporter/summary.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package reporter import ( diff --git a/cnspec.go b/cnspec.go index aad775c2..dd51e98b 100644 --- a/cnspec.go +++ b/cnspec.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package cnspec import ( diff --git a/examples/complex.mql.yaml b/examples/complex.mql.yaml index 2b2c3109..d24c76c3 100644 --- a/examples/complex.mql.yaml +++ b/examples/complex.mql.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + # This bundle contains two policies policies: # This is the first policy, let's call it our base policy diff --git a/examples/compliance.mql.yaml b/examples/compliance.mql.yaml index 6d612708..7382feac 100644 --- a/examples/compliance.mql.yaml +++ b/examples/compliance.mql.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + policies: - uid: ssh-policy name: SSH Policy diff --git a/examples/directory/example1.mql.yaml b/examples/directory/example1.mql.yaml index 02160644..23de7ed4 100644 --- a/examples/directory/example1.mql.yaml +++ b/examples/directory/example1.mql.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + policies: - uid: example1 name: Example policy 1 diff --git a/examples/directory/example2.mql.yaml b/examples/directory/example2.mql.yaml index e822a433..64626875 100644 --- a/examples/directory/example2.mql.yaml +++ b/examples/directory/example2.mql.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + policies: - uid: example2 name: Another policy diff --git a/examples/directory/queries/linux-1.mql.yaml b/examples/directory/queries/linux-1.mql.yaml index 14a6d792..373ac8c1 100644 --- a/examples/directory/queries/linux-1.mql.yaml +++ b/examples/directory/queries/linux-1.mql.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + queries: - uid: linux-1 title: Make sure no other user is called root diff --git a/examples/directory/queries/sshd-01.mql.yaml b/examples/directory/queries/sshd-01.mql.yaml index 33ab78fa..c7d04b77 100644 --- a/examples/directory/queries/sshd-01.mql.yaml +++ b/examples/directory/queries/sshd-01.mql.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + queries: - uid: sshd-01 title: Set the port to 22 diff --git a/examples/directory/queries/sshd-02.mql.yaml b/examples/directory/queries/sshd-02.mql.yaml index c256b5d2..eb572789 100644 --- a/examples/directory/queries/sshd-02.mql.yaml +++ b/examples/directory/queries/sshd-02.mql.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + queries: - uid: sshd-02 title: Configure the address family diff --git a/examples/directory/queries/sshd-03.mql.yaml b/examples/directory/queries/sshd-03.mql.yaml index ce768f4b..f6040ddc 100644 --- a/examples/directory/queries/sshd-03.mql.yaml +++ b/examples/directory/queries/sshd-03.mql.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + queries: - uid: sshd-03 title: Enable strict mode diff --git a/examples/directory/queries/sshd-d-1.mql.yaml b/examples/directory/queries/sshd-d-1.mql.yaml index a16fd3e8..5adebb35 100644 --- a/examples/directory/queries/sshd-d-1.mql.yaml +++ b/examples/directory/queries/sshd-d-1.mql.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + queries: - uid: sshd-d-1 title: Gather SSH config params diff --git a/examples/example.mql.yaml b/examples/example.mql.yaml index 39a6b298..f3cdbe8e 100644 --- a/examples/example.mql.yaml +++ b/examples/example.mql.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + # To run this file: # cnspec scan -f examples/example.mql.yaml # diff --git a/internal/bundle/bundle_ext.go b/internal/bundle/bundle_ext.go index f148a4d3..622acc49 100644 --- a/internal/bundle/bundle_ext.go +++ b/internal/bundle/bundle_ext.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package bundle import ( diff --git a/internal/bundle/bundle_test.go b/internal/bundle/bundle_test.go index 3ff76f04..0fb66fc0 100644 --- a/internal/bundle/bundle_test.go +++ b/internal/bundle/bundle_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package bundle import ( diff --git a/internal/bundle/fmt.go b/internal/bundle/fmt.go index 835b0e3f..6a303b19 100644 --- a/internal/bundle/fmt.go +++ b/internal/bundle/fmt.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package bundle import ( diff --git a/internal/bundle/fmt_test.go b/internal/bundle/fmt_test.go index e36893f1..80c28e02 100644 --- a/internal/bundle/fmt_test.go +++ b/internal/bundle/fmt_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package bundle import ( diff --git a/internal/bundle/lint.go b/internal/bundle/lint.go index 1c34fb28..de7a816c 100644 --- a/internal/bundle/lint.go +++ b/internal/bundle/lint.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package bundle import ( diff --git a/internal/bundle/lint_results_cli.go b/internal/bundle/lint_results_cli.go index 696a1020..d2400a7d 100644 --- a/internal/bundle/lint_results_cli.go +++ b/internal/bundle/lint_results_cli.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package bundle import ( diff --git a/internal/bundle/lint_results_sarif.go b/internal/bundle/lint_results_sarif.go index 02c32b91..cfd6e31e 100644 --- a/internal/bundle/lint_results_sarif.go +++ b/internal/bundle/lint_results_sarif.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package bundle import ( diff --git a/internal/bundle/lint_test.go b/internal/bundle/lint_test.go index 52224f5e..cecf965c 100644 --- a/internal/bundle/lint_test.go +++ b/internal/bundle/lint_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package bundle import ( diff --git a/internal/bundle/yacit/main.go b/internal/bundle/yacit/main.go index c67fb391..6bfed313 100644 --- a/internal/bundle/yacit/main.go +++ b/internal/bundle/yacit/main.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package main import ( diff --git a/internal/datalakes/inmemory/assets.go b/internal/datalakes/inmemory/assets.go index 4df3176f..6aacf9e7 100644 --- a/internal/datalakes/inmemory/assets.go +++ b/internal/datalakes/inmemory/assets.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package inmemory import ( diff --git a/internal/datalakes/inmemory/inmemory.go b/internal/datalakes/inmemory/inmemory.go index cfeb88e4..cbc65a5b 100644 --- a/internal/datalakes/inmemory/inmemory.go +++ b/internal/datalakes/inmemory/inmemory.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package inmemory import ( diff --git a/internal/datalakes/inmemory/kiss.go b/internal/datalakes/inmemory/kiss.go index 10e75361..abb1ee97 100644 --- a/internal/datalakes/inmemory/kiss.go +++ b/internal/datalakes/inmemory/kiss.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package inmemory import "sync" diff --git a/internal/datalakes/inmemory/policyhub.go b/internal/datalakes/inmemory/policyhub.go index 39c1cbde..98497e6c 100644 --- a/internal/datalakes/inmemory/policyhub.go +++ b/internal/datalakes/inmemory/policyhub.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package inmemory import ( diff --git a/internal/datalakes/inmemory/policyresolver.go b/internal/datalakes/inmemory/policyresolver.go index deb7d275..33ed24b3 100644 --- a/internal/datalakes/inmemory/policyresolver.go +++ b/internal/datalakes/inmemory/policyresolver.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package inmemory import ( diff --git a/internal/datalakes/inmemory/resolved_policy_cache.go b/internal/datalakes/inmemory/resolved_policy_cache.go index 0e78df1e..9acfdcde 100644 --- a/internal/datalakes/inmemory/resolved_policy_cache.go +++ b/internal/datalakes/inmemory/resolved_policy_cache.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package inmemory import ( diff --git a/internal/plugin/plugin.go b/internal/plugin/plugin.go index a9596c93..3a8005ff 100644 --- a/internal/plugin/plugin.go +++ b/internal/plugin/plugin.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package plugin import ( diff --git a/internal/plugin/plugin_test.go b/internal/plugin/plugin_test.go index a5207409..802e863e 100644 --- a/internal/plugin/plugin_test.go +++ b/internal/plugin/plugin_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + //go:build debugtest // +build debugtest diff --git a/internal/yac-it/yac-it.go b/internal/yac-it/yac-it.go index e5576d99..91dc6ada 100644 --- a/internal/yac-it/yac-it.go +++ b/internal/yac-it/yac-it.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package yacit import ( diff --git a/policy/assessment.go b/policy/assessment.go index 3646f6da..2dfde46f 100644 --- a/policy/assessment.go +++ b/policy/assessment.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/bundle.go b/policy/bundle.go index 3dda49d0..82e08d19 100644 --- a/policy/bundle.go +++ b/policy/bundle.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/bundle_map.go b/policy/bundle_map.go index c2655449..c9f497ba 100644 --- a/policy/bundle_map.go +++ b/policy/bundle_map.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/bundle_test.go b/policy/bundle_test.go index ff57a043..f35e8736 100644 --- a/policy/bundle_test.go +++ b/policy/bundle_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy_test import ( diff --git a/policy/cnspec_policy.proto b/policy/cnspec_policy.proto index 711e9680..c6f9d2a2 100644 --- a/policy/cnspec_policy.proto +++ b/policy/cnspec_policy.proto @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + syntax = "proto3"; package cnspec.policy.v1; diff --git a/policy/collectorjob.go b/policy/collectorjob.go index 006da200..e50729d2 100644 --- a/policy/collectorjob.go +++ b/policy/collectorjob.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import "github.com/rs/zerolog" diff --git a/policy/collectorjob_test.go b/policy/collectorjob_test.go index 4f452da4..a4ed368a 100644 --- a/policy/collectorjob_test.go +++ b/policy/collectorjob_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/datalake.go b/policy/datalake.go index 1b6290af..54a51b38 100644 --- a/policy/datalake.go +++ b/policy/datalake.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/deprecated_v7.go b/policy/deprecated_v7.go index 0b2ff0ae..0383f2bf 100644 --- a/policy/deprecated_v7.go +++ b/policy/deprecated_v7.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/deprecated_v7.mql.yaml b/policy/deprecated_v7.mql.yaml index c8d335a3..0b4b234d 100644 --- a/policy/deprecated_v7.mql.yaml +++ b/policy/deprecated_v7.mql.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + # This section lists all the policies that are part of this bundle. # In our case, we only have 1 policy: example1 policies: diff --git a/policy/deprecated_v7_test.go b/policy/deprecated_v7_test.go index 77809d2d..8ce544dc 100644 --- a/policy/deprecated_v7_test.go +++ b/policy/deprecated_v7_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/executor/executor.go b/policy/executor/executor.go index 38d7ddac..4d0e6e92 100644 --- a/policy/executor/executor.go +++ b/policy/executor/executor.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package executor import ( diff --git a/policy/executor/executor_test.go b/policy/executor/executor_test.go index 199a16e6..95d6da91 100644 --- a/policy/executor/executor_test.go +++ b/policy/executor/executor_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package executor import ( diff --git a/policy/executor/graph.go b/policy/executor/graph.go index e10679a0..71666841 100644 --- a/policy/executor/graph.go +++ b/policy/executor/graph.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package executor import ( diff --git a/policy/executor/internal/builder.go b/policy/executor/internal/builder.go index b7d0ae45..35f18771 100644 --- a/policy/executor/internal/builder.go +++ b/policy/executor/internal/builder.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package internal import ( diff --git a/policy/executor/internal/builder_test.go b/policy/executor/internal/builder_test.go index e2aee642..30c434d5 100644 --- a/policy/executor/internal/builder_test.go +++ b/policy/executor/internal/builder_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package internal import ( diff --git a/policy/executor/internal/collector.go b/policy/executor/internal/collector.go index 216815f4..db7d1ed1 100644 --- a/policy/executor/internal/collector.go +++ b/policy/executor/internal/collector.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package internal import ( diff --git a/policy/executor/internal/execution_manager.go b/policy/executor/internal/execution_manager.go index 447c96df..6de566be 100644 --- a/policy/executor/internal/execution_manager.go +++ b/policy/executor/internal/execution_manager.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package internal import ( diff --git a/policy/executor/internal/graph.go b/policy/executor/internal/graph.go index 6aeba138..cd70fd25 100644 --- a/policy/executor/internal/graph.go +++ b/policy/executor/internal/graph.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package internal import ( diff --git a/policy/executor/internal/nodes.go b/policy/executor/internal/nodes.go index fd6e9c75..632a70ee 100644 --- a/policy/executor/internal/nodes.go +++ b/policy/executor/internal/nodes.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package internal import ( diff --git a/policy/executor/internal/nodes_test.go b/policy/executor/internal/nodes_test.go index 4c74c219..399b5e17 100644 --- a/policy/executor/internal/nodes_test.go +++ b/policy/executor/internal/nodes_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package internal import ( diff --git a/policy/executor/internal/queue.go b/policy/executor/internal/queue.go index 50d9acd1..103fbfed 100644 --- a/policy/executor/internal/queue.go +++ b/policy/executor/internal/queue.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package internal // An Item is something we manage in a priority queue. diff --git a/policy/executor/internal/waitgroup.go b/policy/executor/internal/waitgroup.go index 30b8d33e..975c221c 100644 --- a/policy/executor/internal/waitgroup.go +++ b/policy/executor/internal/waitgroup.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package internal import ( diff --git a/policy/executor/internal/waitgroup_test.go b/policy/executor/internal/waitgroup_test.go index c5b1644e..95b40fad 100644 --- a/policy/executor/internal/waitgroup_test.go +++ b/policy/executor/internal/waitgroup_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package internal import ( diff --git a/policy/executor/mustcompile.go b/policy/executor/mustcompile.go index 93eb4c12..abd72c46 100644 --- a/policy/executor/mustcompile.go +++ b/policy/executor/mustcompile.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package executor import ( diff --git a/policy/executor/mustcompile_test.go b/policy/executor/mustcompile_test.go index 5ff4ba4e..a541ed83 100644 --- a/policy/executor/mustcompile_test.go +++ b/policy/executor/mustcompile_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package executor import ( diff --git a/policy/framework.go b/policy/framework.go index ae6572f8..f8e04546 100644 --- a/policy/framework.go +++ b/policy/framework.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/frameworks_test.go b/policy/frameworks_test.go index b70ac399..2466f6aa 100644 --- a/policy/frameworks_test.go +++ b/policy/frameworks_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/hub.go b/policy/hub.go index db292e1e..8640d56e 100644 --- a/policy/hub.go +++ b/policy/hub.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/hub_test.go b/policy/hub_test.go index 6b388e0f..e9397f6f 100644 --- a/policy/hub_test.go +++ b/policy/hub_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/mquery.go b/policy/mquery.go index ec3e7000..2cd44894 100644 --- a/policy/mquery.go +++ b/policy/mquery.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/mquery_test.go b/policy/mquery_test.go index 13c6642d..1fec616d 100644 --- a/policy/mquery_test.go +++ b/policy/mquery_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/policy.go b/policy/policy.go index e8cc5a76..4d01ab14 100644 --- a/policy/policy.go +++ b/policy/policy.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/policy_test.go b/policy/policy_test.go index 405ab6fc..343ca1f4 100644 --- a/policy/policy_test.go +++ b/policy/policy_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/rating.go b/policy/rating.go index d021c143..12bfda07 100644 --- a/policy/rating.go +++ b/policy/rating.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import "strconv" diff --git a/policy/report.go b/policy/report.go index 5ac9ce4f..11bbfa90 100644 --- a/policy/report.go +++ b/policy/report.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/report_test.go b/policy/report_test.go index deadc8ed..dc087546 100644 --- a/policy/report_test.go +++ b/policy/report_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy_test import ( diff --git a/policy/reportingjob.go b/policy/reportingjob.go index 136c737e..5c1136d2 100644 --- a/policy/reportingjob.go +++ b/policy/reportingjob.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/resolved_policy.go b/policy/resolved_policy.go index 1513a143..7eb2fee7 100644 --- a/policy/resolved_policy.go +++ b/policy/resolved_policy.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/resolver.go b/policy/resolver.go index 775a21a1..98feb6e2 100644 --- a/policy/resolver.go +++ b/policy/resolver.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/resolver_test.go b/policy/resolver_test.go index 6ba79910..83d3765c 100644 --- a/policy/resolver_test.go +++ b/policy/resolver_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy_test import ( diff --git a/policy/scan/aggregate_reporter.go b/policy/scan/aggregate_reporter.go index 0fb0ba2d..dacc8c6a 100644 --- a/policy/scan/aggregate_reporter.go +++ b/policy/scan/aggregate_reporter.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package scan import ( diff --git a/policy/scan/disk_queue.go b/policy/scan/disk_queue.go index 1d1f1b28..e926ff7a 100644 --- a/policy/scan/disk_queue.go +++ b/policy/scan/disk_queue.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package scan import ( diff --git a/policy/scan/error_reporter.go b/policy/scan/error_reporter.go index d624a581..0d60043b 100644 --- a/policy/scan/error_reporter.go +++ b/policy/scan/error_reporter.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package scan import ( diff --git a/policy/scan/fetcher.go b/policy/scan/fetcher.go index f9088749..34bc4c09 100644 --- a/policy/scan/fetcher.go +++ b/policy/scan/fetcher.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package scan import ( diff --git a/policy/scan/local_scanner.go b/policy/scan/local_scanner.go index 5dab7a68..d6bd94f1 100644 --- a/policy/scan/local_scanner.go +++ b/policy/scan/local_scanner.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package scan import ( diff --git a/policy/scan/local_scanner_test.go b/policy/scan/local_scanner_test.go index debaa4f0..17212d62 100644 --- a/policy/scan/local_scanner_test.go +++ b/policy/scan/local_scanner_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package scan import ( diff --git a/policy/scan/noop_reporter.go b/policy/scan/noop_reporter.go index f529bedf..5a328a1f 100644 --- a/policy/scan/noop_reporter.go +++ b/policy/scan/noop_reporter.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package scan import ( diff --git a/policy/scan/reporter.go b/policy/scan/reporter.go index b5cf928e..266b02ed 100644 --- a/policy/scan/reporter.go +++ b/policy/scan/reporter.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package scan import ( diff --git a/policy/scan/scan.go b/policy/scan/scan.go index 4c2f85e5..942ca179 100644 --- a/policy/scan/scan.go +++ b/policy/scan/scan.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package scan import ( diff --git a/policy/scan/scan.proto b/policy/scan/scan.proto index 2f9788a8..ac511f10 100644 --- a/policy/scan/scan.proto +++ b/policy/scan/scan.proto @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + syntax = "proto3"; import "motor/inventory/v1/inventory.proto"; diff --git a/policy/score.go b/policy/score.go index a68860da..8f9f7051 100644 --- a/policy/score.go +++ b/policy/score.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/score_calculator.go b/policy/score_calculator.go index e9792847..c3aab7e3 100644 --- a/policy/score_calculator.go +++ b/policy/score_calculator.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/score_calculator_test.go b/policy/score_calculator_test.go index 41d65284..67e44bea 100644 --- a/policy/score_calculator_test.go +++ b/policy/score_calculator_test.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/policy/services.go b/policy/services.go index 8455a7e6..e8fd3ccc 100644 --- a/policy/services.go +++ b/policy/services.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package policy import ( diff --git a/scripts/pkg/debian/postinstall.sh b/scripts/pkg/debian/postinstall.sh index 56bb3c4a..9dc0b660 100644 --- a/scripts/pkg/debian/postinstall.sh +++ b/scripts/pkg/debian/postinstall.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + # call the cnspec migrate command echo " -> Migrate cnspec configuration" diff --git a/scripts/pkg/debian/preinstall.sh b/scripts/pkg/debian/preinstall.sh index 3d9d8b6e..43ee10b1 100644 --- a/scripts/pkg/debian/preinstall.sh +++ b/scripts/pkg/debian/preinstall.sh @@ -1,3 +1,6 @@ #!/bin/sh +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + echo " -> Prepare for cnspec installation" diff --git a/scripts/pkg/debian/preremove.sh b/scripts/pkg/debian/preremove.sh index 54f84ff0..a0d32007 100644 --- a/scripts/pkg/debian/preremove.sh +++ b/scripts/pkg/debian/preremove.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + if [ "$1" = "remove" ]; then if [ "$(cat /proc/1/comm)" = "init" ] diff --git a/scripts/pkg/linux/postinstall.sh b/scripts/pkg/linux/postinstall.sh index 56bb3c4a..9dc0b660 100644 --- a/scripts/pkg/linux/postinstall.sh +++ b/scripts/pkg/linux/postinstall.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + # call the cnspec migrate command echo " -> Migrate cnspec configuration" diff --git a/scripts/pkg/linux/preinstall.sh b/scripts/pkg/linux/preinstall.sh index 3d9d8b6e..43ee10b1 100644 --- a/scripts/pkg/linux/preinstall.sh +++ b/scripts/pkg/linux/preinstall.sh @@ -1,3 +1,6 @@ #!/bin/sh +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + echo " -> Prepare for cnspec installation" diff --git a/scripts/pkg/linux/preremove.sh b/scripts/pkg/linux/preremove.sh index 9b3d4653..deea6cff 100644 --- a/scripts/pkg/linux/preremove.sh +++ b/scripts/pkg/linux/preremove.sh @@ -1,4 +1,7 @@ #!/bin/sh +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + # Run during uninstall # Note: rpm runs this phase even during upgrades therefore we need to include a condition diff --git a/scripts/pkg/windows/windows-upx.sh b/scripts/pkg/windows/windows-upx.sh index 0e57bc62..e06c413e 100755 --- a/scripts/pkg/windows/windows-upx.sh +++ b/scripts/pkg/windows/windows-upx.sh @@ -1,4 +1,7 @@ #!/bin/bash +# Copyright (c) Mondoo, Inc. +# SPDX-License-Identifier: BUSL-1.1 + set -e diff --git a/upstream/cnspec_upstream.proto b/upstream/cnspec_upstream.proto index bda8d651..01b3be5f 100644 --- a/upstream/cnspec_upstream.proto +++ b/upstream/cnspec_upstream.proto @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + syntax = "proto3"; package cnspec.upstream.v1; diff --git a/upstream/upstream.go b/upstream/upstream.go index 0e221de1..b518f39a 100644 --- a/upstream/upstream.go +++ b/upstream/upstream.go @@ -1,3 +1,6 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: BUSL-1.1 + package upstream //go:generate protoc --proto_path=../:../cnquery:. --go_out=. --go_opt=paths=source_relative --rangerrpc_out=. cnspec_upstream.proto