From 5e3a6148df1acb556acd39914c36ef06a6f6fb72 Mon Sep 17 00:00:00 2001 From: UncleGedd <42304551+UncleGedd@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:43:09 -0500 Subject: [PATCH] chore: update license headers (#450) --- .github/actions/setup/action.yaml | 3 +++ .github/codeql.yaml | 3 +++ .github/test-infra/packer/install-tools.sh | 3 +++ .github/test-infra/packer/runtime.pkr.hcl | 3 +++ .github/test-infra/tasks/infra.yaml | 3 +++ .github/test-infra/terraform/main.tf | 3 +++ .github/test-infra/terraform/setup.sh | 3 +++ .github/test-infra/terraform/variables.tf | 3 +++ .github/test-infra/terraform/versions.tf | 3 +++ .github/workflows/api-auth-tests.yaml | 3 +++ .github/workflows/commitlint.yaml | 9 ++++++++- ...dency-review.yml => dependency-review.yaml} | 3 +++ .github/workflows/nightly-infra.yaml | 3 +++ .github/workflows/nightly-release.yaml | 3 +++ .github/workflows/pr-tests.yaml | 3 +++ .github/workflows/scan-codeql.yaml | 3 +++ .github/workflows/scan-lint.yaml | 3 +++ .github/workflows/scorecard.yaml | 3 +++ .github/workflows/tag-and-release.yaml | 6 ++++++ .golangci.yml | 3 +++ .pre-commit-config.yaml | 3 +++ Dockerfile | 3 +++ LICENSING.md | 18 ++++++++++++++++++ chart/Chart.yaml | 3 +++ chart/templates/cluster-role-binding.yaml | 3 +++ chart/templates/cluster-role.yaml | 3 +++ chart/templates/deployment.yaml | 3 +++ chart/templates/service.yaml | 3 +++ chart/templates/serviceaccount.yaml | 3 +++ chart/templates/uds-package.yaml | 3 +++ chart/values.yaml | 3 +++ commitlint.config.js | 3 +++ go.mod | 3 +++ hack/load-test/load-api.js | 3 +++ hack/load-test/load.js | 3 +++ hack/load-test/package.json | 1 + hack/load-test/rc.yaml | 3 +++ hack/nightly/nightly-values.yaml | 3 +++ hack/nightly/zarf.yaml | 3 +++ hack/smoke-test/smoke-values.yaml | 3 +++ hack/smoke-test/zarf.yaml | 3 +++ hack/watch-metrics.sh | 3 +++ main.go | 3 +++ pkg/api/auth/random.go | 4 ++-- pkg/api/auth/session.go | 4 ++-- pkg/api/auth/session_test.go | 4 ++-- pkg/api/docs/docs.go | 3 +++ pkg/api/docs/swagger.yaml | 3 +++ pkg/api/handlers.go | 3 +++ pkg/api/middleware/api_auth.go | 4 ++-- pkg/api/middleware/compress.go | 4 ++-- pkg/api/middleware/compress_test.go | 4 ++-- pkg/api/monitor/cache.go | 4 ++-- pkg/api/monitor/cluster.go | 4 ++-- pkg/api/monitor/cluster_test.go | 4 ++-- pkg/api/monitor/pepr.go | 4 ++-- pkg/api/resources/cache.go | 4 ++-- pkg/api/resources/cache_test.go | 4 ++-- pkg/api/resources/crds.go | 4 ++-- pkg/api/resources/list.go | 4 ++-- pkg/api/resources/list_test.go | 4 ++-- pkg/api/resources/metrics.go | 4 ++-- pkg/api/resources/metrics_test.go | 4 ++-- pkg/api/resources/utils.go | 4 ++-- pkg/api/resources/utils_test.go | 4 ++-- pkg/api/rest/bind.go | 4 ++-- pkg/api/rest/bind_test.go | 4 ++-- pkg/api/rest/filter.go | 4 ++-- pkg/api/rest/filter_test.go | 4 ++-- pkg/api/rest/sse.go | 4 ++-- pkg/api/rest/sse_test.go | 4 ++-- pkg/api/start.go | 6 ++---- pkg/k8s/client/client.go | 4 ++-- pkg/k8s/session/session.go | 3 +++ pkg/k8s/session/session_test.go | 3 +++ pkg/pepr/stream.go | 4 ++-- pkg/pepr/stream_test.go | 4 ++-- pkg/stream/common.go | 4 ++-- pkg/stream/common_test.go | 4 ++-- pkg/style/style.go | 4 ++-- pkg/test/api_test.go | 4 ++-- pkg/test/utils.go | 4 ++-- tasks.yaml | 3 +++ tasks/build.yaml | 3 +++ tasks/lint.yaml | 5 ++++- tasks/setup.yaml | 3 +++ tasks/swagger.yaml | 3 +++ tasks/test.yaml | 3 +++ ui/.prettierrc.cjs | 3 +++ ui/eslint.config.js | 4 ++-- ui/package.json | 1 + ui/playwright.config.apiauth.ts | 3 +++ ui/playwright.config.ts | 3 +++ ui/postcss.config.js | 4 ++-- ui/src/app.d.ts | 4 ++-- ui/src/app.html | 4 ++-- ui/src/app.postcss | 5 +++++ .../components/AnsiDisplay/component.svelte | 4 ++-- ui/src/lib/components/Auth/component.svelte | 4 ++-- ui/src/lib/components/Link/component.svelte | 4 ++-- .../components/ProgressBar/component.svelte | 3 +++ .../StatsWidget/ProgressBarWidget.svelte | 3 +++ .../StatsWidget/WithRightIconWidget.svelte | 3 +++ ui/src/lib/components/StatsWidget/types.ts | 3 +++ ui/src/lib/components/Tooltip/component.svelte | 3 +++ ui/src/lib/components/index.ts | 4 ++-- .../lib/components/k8s/Card/component.svelte | 3 +++ .../components/k8s/DataTable/component.svelte | 4 ++-- .../lib/components/k8s/Drawer/component.svelte | 4 ++-- .../lib/components/k8s/Drawer/styles.postcss | 5 +++++ .../lib/components/k8s/Event/EventList.svelte | 3 +++ .../k8s/Event/EventsOverviewWidget.svelte | 3 +++ .../lib/components/k8s/Event/component.svelte | 3 +++ .../lib/components/k8s/Status/component.svelte | 4 ++-- ui/src/lib/features/api-auth/store.ts | 4 ++-- .../applications/endpoints/component.svelte | 4 ++-- .../applications/endpoints/component.test.ts | 4 ++-- .../k8s/applications/endpoints/store.ts | 4 ++-- .../k8s/applications/packages/component.svelte | 4 ++-- .../applications/packages/component.test.ts | 4 ++-- .../k8s/applications/packages/store.ts | 4 ++-- .../k8s/applications/packages/types.ts | 4 ++-- .../k8s/cluster-ops/hpa/component.svelte | 4 ++-- .../k8s/cluster-ops/hpa/component.test.ts | 4 ++-- .../lib/features/k8s/cluster-ops/hpa/store.ts | 4 ++-- .../cluster-ops/limit-ranges/component.svelte | 4 ++-- .../cluster-ops/limit-ranges/component.test.ts | 4 ++-- .../k8s/cluster-ops/limit-ranges/store.ts | 4 ++-- .../mutatingwebhooks/component.svelte | 4 ++-- .../mutatingwebhooks/component.test.ts | 4 ++-- .../k8s/cluster-ops/mutatingwebhooks/store.ts | 4 ++-- .../pod-disruption-budgets/component.svelte | 4 ++-- .../pod-disruption-budgets/component.test.ts | 4 ++-- .../pod-disruption-budgets/store.ts | 4 ++-- .../priority-classes/component.svelte | 4 ++-- .../priority-classes/component.test.ts | 4 ++-- .../k8s/cluster-ops/priority-classes/store.ts | 4 ++-- .../resource-quotas/component.svelte | 4 ++-- .../resource-quotas/component.test.ts | 4 ++-- .../k8s/cluster-ops/resource-quotas/store.ts | 4 ++-- .../runtime-classes/component.svelte | 4 ++-- .../runtime-classes/component.test.ts | 4 ++-- .../k8s/cluster-ops/runtime-classes/store.ts | 4 ++-- .../validatingwebhooks/component.svelte | 4 ++-- .../validatingwebhooks/component.test.ts | 4 ++-- .../cluster-ops/validatingwebhooks/store.ts | 4 ++-- .../k8s/cluster-overview/component.svelte | 4 ++-- .../k8s/cluster-overview/styles.postcss | 5 +++++ .../k8s/configs/configmaps/component.svelte | 4 ++-- .../k8s/configs/configmaps/component.test.ts | 4 ++-- .../features/k8s/configs/configmaps/store.ts | 4 ++-- .../k8s/configs/secrets/component.svelte | 4 ++-- .../k8s/configs/secrets/component.test.ts | 4 ++-- .../lib/features/k8s/configs/secrets/store.ts | 4 ++-- .../configs/uds-exemptions/component.svelte | 4 ++-- .../configs/uds-exemptions/component.test.ts | 4 ++-- .../exemption-details/component.svelte | 4 ++-- .../exemption-details/component.test.ts | 3 +++ .../exemption-matcher/component.svelte | 4 ++-- .../k8s/configs/uds-exemptions/store.ts | 4 ++-- .../k8s/configs/uds-packages/component.svelte | 4 ++-- .../k8s/configs/uds-packages/component.test.ts | 4 ++-- .../uds-packages/links/component.svelte | 4 ++-- .../uds-packages/links/component.test.ts | 3 +++ .../features/k8s/configs/uds-packages/store.ts | 4 ++-- .../lib/features/k8s/events/component.svelte | 4 ++-- .../lib/features/k8s/events/component.test.ts | 4 ++-- ui/src/lib/features/k8s/events/store.ts | 4 ++-- ui/src/lib/features/k8s/helpers.ts | 3 +++ ui/src/lib/features/k8s/index.ts | 4 ++-- .../features/k8s/namespaces/component.svelte | 4 ++-- .../features/k8s/namespaces/component.test.ts | 4 ++-- ui/src/lib/features/k8s/namespaces/store.ts | 4 ++-- .../k8s/networks/endpoints/component.svelte | 4 ++-- .../k8s/networks/endpoints/component.test.ts | 4 ++-- .../features/k8s/networks/endpoints/store.ts | 4 ++-- .../networks/network-policies/component.svelte | 4 ++-- .../network-policies/component.test.ts | 4 ++-- .../k8s/networks/network-policies/store.ts | 4 ++-- .../k8s/networks/services/component.svelte | 4 ++-- .../k8s/networks/services/component.test.ts | 4 ++-- .../features/k8s/networks/services/store.ts | 4 ++-- .../networks/virtualservices/component.svelte | 4 ++-- .../networks/virtualservices/component.test.ts | 4 ++-- .../k8s/networks/virtualservices/store.ts | 4 ++-- ui/src/lib/features/k8s/nodes/component.svelte | 4 ++-- .../lib/features/k8s/nodes/component.test.ts | 4 ++-- ui/src/lib/features/k8s/nodes/store.ts | 4 ++-- .../persistentvolumeclaims/component.svelte | 4 ++-- .../persistentvolumeclaims/component.test.ts | 4 ++-- .../status/component.svelte | 4 ++-- .../storage/persistentvolumeclaims/store.ts | 4 ++-- .../storage/persistentvolumes/component.svelte | 4 ++-- .../persistentvolumes/component.test.ts | 4 ++-- .../k8s/storage/persistentvolumes/store.ts | 4 ++-- .../storage/storageclasses/component.svelte | 4 ++-- .../storage/storageclasses/component.test.ts | 4 ++-- .../k8s/storage/storageclasses/store.ts | 4 ++-- ui/src/lib/features/k8s/store.ts | 4 ++-- ui/src/lib/features/k8s/test-helper.ts | 3 +++ ui/src/lib/features/k8s/types.ts | 3 +++ .../k8s/workloads/cronjobs/component.svelte | 4 ++-- .../k8s/workloads/cronjobs/component.test.ts | 4 ++-- .../features/k8s/workloads/cronjobs/store.ts | 4 ++-- .../k8s/workloads/daemonsets/component.svelte | 4 ++-- .../k8s/workloads/daemonsets/component.test.ts | 4 ++-- .../features/k8s/workloads/daemonsets/store.ts | 4 ++-- .../k8s/workloads/deployments/component.svelte | 4 ++-- .../workloads/deployments/component.test.ts | 4 ++-- .../k8s/workloads/deployments/store.ts | 4 ++-- .../k8s/workloads/jobs/component.svelte | 4 ++-- .../k8s/workloads/jobs/component.test.ts | 4 ++-- .../lib/features/k8s/workloads/jobs/store.ts | 4 ++-- .../k8s/workloads/pods/component.svelte | 4 ++-- .../k8s/workloads/pods/component.test.ts | 4 ++-- .../workloads/pods/containers/component.svelte | 4 ++-- .../pods/containers/component.test.ts | 4 ++-- .../workloads/pods/metrics/component.svelte | 4 ++-- .../workloads/pods/metrics/component.test.ts | 4 ++-- .../k8s/workloads/pods/metrics/utils.test.ts | 4 ++-- .../k8s/workloads/pods/metrics/utils.ts | 4 ++-- .../lib/features/k8s/workloads/pods/store.ts | 4 ++-- .../workloads/statefulsets/component.svelte | 4 ++-- .../workloads/statefulsets/component.test.ts | 4 ++-- .../k8s/workloads/statefulsets/store.ts | 4 ++-- ui/src/lib/features/navigation/index.ts | 4 ++-- .../navigation/navbar/component.svelte | 4 ++-- ui/src/lib/features/navigation/routes.ts | 4 ++-- .../navigation/sidebar/component.svelte | 4 ++-- .../features/navigation/sidebar/styles.postcss | 5 +++++ ui/src/lib/features/navigation/store.ts | 4 ++-- ui/src/lib/features/navigation/types.ts | 4 ++-- ui/src/lib/features/toast/component.svelte | 3 +++ ui/src/lib/features/toast/component.test.ts | 4 ++-- ui/src/lib/features/toast/index.ts | 4 ++-- ui/src/lib/features/toast/store.test.ts | 4 ++-- ui/src/lib/features/toast/store.ts | 4 ++-- ui/src/lib/types.ts | 4 ++-- ui/src/lib/utils/api-auth.ts | 4 ++-- .../utils/cluster-check/cluster-check.test.ts | 3 +++ .../lib/utils/cluster-check/cluster-check.ts | 3 +++ ui/src/lib/utils/descriptions.ts | 4 ++-- ui/src/lib/utils/helpers.ts | 4 ++-- ui/src/lib/utils/index.ts | 4 ++-- .../cluster-ops/hpa/[[uid]]/+page.svelte | 4 ++-- .../limit-ranges/[[uid]]/+page.svelte | 4 ++-- .../mutating-webhooks/[[uid]]/+page.svelte | 4 ++-- .../[[uid]]/+page.svelte | 4 ++-- .../priority-classes/[[uid]]/+page.svelte | 4 ++-- .../resource-quotas/[[uid]]/+page.svelte | 4 ++-- .../runtime-classes/[[uid]]/+page.svelte | 4 ++-- .../validating-webhooks/[[uid]]/+page.svelte | 4 ++-- .../configs/configmaps/[[uid]]/+page.svelte | 4 ++-- .../configs/secrets/[[uid]]/+page.svelte | 4 ++-- .../uds-exemptions/[[uid]]/+page.svelte | 4 ++-- .../configs/uds-packages/[[uid]]/+page.svelte | 4 ++-- .../namespaces/[[uid]]/+page.svelte | 4 ++-- .../networks/endpoints/[[uid]]/+page.svelte | 4 ++-- .../network-policies/[[uid]]/+page.svelte | 4 ++-- .../networks/services/[[uid]]/+page.svelte | 4 ++-- .../virtual-services/[[uid]]/+page.svelte | 4 ++-- .../(resources)/nodes/[[uid]]/+page.svelte | 4 ++-- .../[[uid]]/+page.svelte | 4 ++-- .../persistent-volumes/[[uid]]/+page.svelte | 4 ++-- .../storage-classes/[[uid]]/+page.svelte | 4 ++-- .../workloads/cronjobs/[[uid]]/+page.svelte | 4 ++-- .../workloads/daemonsets/[[uid]]/+page.svelte | 4 ++-- .../workloads/deployments/[[uid]]/+page.svelte | 4 ++-- .../workloads/jobs/[[uid]]/+page.svelte | 4 ++-- .../workloads/pods/[[uid]]/+page.svelte | 4 ++-- .../statefulsets/[[uid]]/+page.svelte | 4 ++-- ui/src/routes/+error.svelte | 3 +++ ui/src/routes/+layout.svelte | 4 ++-- ui/src/routes/+layout.ts | 4 ++-- ui/src/routes/+page.svelte | 4 ++-- .../routes/applications/endpoints/+page.svelte | 4 ++-- .../routes/applications/packages/+page.svelte | 4 ++-- ui/src/routes/auth/+page.svelte | 4 ++-- ui/src/routes/help/+page.svelte | 4 ++-- .../routes/monitor/events/[[uid]]/+page.svelte | 4 ++-- .../denied-details/DeniedDetails.svelte | 4 ++-- .../(details)/denied-details/comonent.test.ts | 3 +++ .../mutated-details/MutatedDetails.svelte | 4 ++-- .../(details)/mutated-details/comonent.test.ts | 3 +++ .../monitor/pepr/[[stream]]/+page.svelte | 4 ++-- .../routes/monitor/pepr/[[stream]]/helpers.ts | 3 +++ .../monitor/pepr/[[stream]]/page.postcss | 5 +++++ ui/src/routes/preferences/+page.svelte | 4 ++-- ui/src/routes/settings/+page.svelte | 4 ++-- ui/src/setupTests.ts | 4 ++-- ui/svelte.config.js | 4 ++-- ui/tailwind.config.ts | 4 ++-- ui/tests/api-auth.spec.ts | 4 ++-- ui/tests/drawer.spec.ts | 4 ++-- ui/tests/monitor.spec.ts | 4 ++-- ui/tests/navigation.spec.ts | 4 ++-- ui/tests/packages/podinfo/zarf.yaml | 3 +++ ui/tests/sidebar.spec.ts | 4 ++-- ui/tests/sse.spec.ts | 4 ++-- ui/tests/table.spec.ts | 4 ++-- ui/tsconfig.json | 3 +++ ui/vite.config.ts | 4 ++-- zarf.yaml | 3 +++ 303 files changed, 723 insertions(+), 436 deletions(-) rename .github/workflows/{dependency-review.yml => dependency-review.yaml} (78%) create mode 100644 LICENSING.md diff --git a/.github/actions/setup/action.yaml b/.github/actions/setup/action.yaml index cc7be9b04..5409a9f9c 100644 --- a/.github/actions/setup/action.yaml +++ b/.github/actions/setup/action.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + name: Setup Environment description: Environment Setup diff --git a/.github/codeql.yaml b/.github/codeql.yaml index 882d942d5..3144686ea 100644 --- a/.github/codeql.yaml +++ b/.github/codeql.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + paths-ignore: - build/** - ui/build/** diff --git a/.github/test-infra/packer/install-tools.sh b/.github/test-infra/packer/install-tools.sh index 3c33c1eef..de716dc02 100644 --- a/.github/test-infra/packer/install-tools.sh +++ b/.github/test-infra/packer/install-tools.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + set -e # renovate: datasource=github-tags depName=k3d-io/k3d versioning=semver diff --git a/.github/test-infra/packer/runtime.pkr.hcl b/.github/test-infra/packer/runtime.pkr.hcl index 455a4bcb1..1bd43779c 100644 --- a/.github/test-infra/packer/runtime.pkr.hcl +++ b/.github/test-infra/packer/runtime.pkr.hcl @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + packer { required_version = ">= 1.8.7" diff --git a/.github/test-infra/tasks/infra.yaml b/.github/test-infra/tasks/infra.yaml index 845be20ac..83d14cac7 100644 --- a/.github/test-infra/tasks/infra.yaml +++ b/.github/test-infra/tasks/infra.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + variables: - name: REGION - name: STATE_BUCKET diff --git a/.github/test-infra/terraform/main.tf b/.github/test-infra/terraform/main.tf index 114001433..276f28683 100644 --- a/.github/test-infra/terraform/main.tf +++ b/.github/test-infra/terraform/main.tf @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + provider "aws" { region = var.region diff --git a/.github/test-infra/terraform/setup.sh b/.github/test-infra/terraform/setup.sh index 02d84e6f9..3a997eb36 100755 --- a/.github/test-infra/terraform/setup.sh +++ b/.github/test-infra/terraform/setup.sh @@ -1,5 +1,8 @@ #!/bin/sh +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + # clone and alter uds-k3d with new domain git clone https://github.com/defenseunicorns/uds-k3d.git diff --git a/.github/test-infra/terraform/variables.tf b/.github/test-infra/terraform/variables.tf index 05340b88c..da5310cc7 100644 --- a/.github/test-infra/terraform/variables.tf +++ b/.github/test-infra/terraform/variables.tf @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + variable "region" { description = "The AWS region to deploy the EC2 instance" type = string diff --git a/.github/test-infra/terraform/versions.tf b/.github/test-infra/terraform/versions.tf index 51e4a81e6..8f8bd47c7 100644 --- a/.github/test-infra/terraform/versions.tf +++ b/.github/test-infra/terraform/versions.tf @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + terraform { backend "s3" {} required_version = ">= 1.6.0, <= 1.8.1" diff --git a/.github/workflows/api-auth-tests.yaml b/.github/workflows/api-auth-tests.yaml index cc27b6e52..d6659e74e 100644 --- a/.github/workflows/api-auth-tests.yaml +++ b/.github/workflows/api-auth-tests.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + name: API Auth Tests on: workflow_call: diff --git a/.github/workflows/commitlint.yaml b/.github/workflows/commitlint.yaml index 757209e92..623583d23 100644 --- a/.github/workflows/commitlint.yaml +++ b/.github/workflows/commitlint.yaml @@ -1,5 +1,12 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + name: PR Title and Commit Lint +permissions: + pull-requests: read + contents: read + on: pull_request: branches: [main] @@ -8,4 +15,4 @@ on: jobs: validate: name: Validate - uses: defenseunicorns/uds-common/.github/workflows/commitlint.yaml@e3008473beab00b12a94f9fcc7340124338d5c08 # v0.13.1 + uses: defenseunicorns/uds-common/.github/workflows/callable-commitlint.yaml@f0164622ffc2007e96a0e1deaa3f5064db04b148 # v1.1.0 diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yaml similarity index 78% rename from .github/workflows/dependency-review.yml rename to .github/workflows/dependency-review.yaml index cffb4acb2..43a5bcbfa 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + name: Dependency Review on: pull_request: diff --git a/.github/workflows/nightly-infra.yaml b/.github/workflows/nightly-infra.yaml index cb53082d1..e11303ee6 100644 --- a/.github/workflows/nightly-infra.yaml +++ b/.github/workflows/nightly-infra.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + name: Deploy Runtime + Core on AWS on: diff --git a/.github/workflows/nightly-release.yaml b/.github/workflows/nightly-release.yaml index d55ac40d9..01b188396 100644 --- a/.github/workflows/nightly-release.yaml +++ b/.github/workflows/nightly-release.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + name: Nightly Release on: workflow_dispatch: diff --git a/.github/workflows/pr-tests.yaml b/.github/workflows/pr-tests.yaml index c2724d46f..87cf16162 100644 --- a/.github/workflows/pr-tests.yaml +++ b/.github/workflows/pr-tests.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + name: Tests on: workflow_call: diff --git a/.github/workflows/scan-codeql.yaml b/.github/workflows/scan-codeql.yaml index 1a7862eda..5472c099e 100644 --- a/.github/workflows/scan-codeql.yaml +++ b/.github/workflows/scan-codeql.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + name: Analyze CodeQL permissions: diff --git a/.github/workflows/scan-lint.yaml b/.github/workflows/scan-lint.yaml index 956c1e3b4..802288ac2 100644 --- a/.github/workflows/scan-lint.yaml +++ b/.github/workflows/scan-lint.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + name: Lint on: pull_request: diff --git a/.github/workflows/scorecard.yaml b/.github/workflows/scorecard.yaml index abcc4245c..577040197 100644 --- a/.github/workflows/scorecard.yaml +++ b/.github/workflows/scorecard.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + name: Scorecards supply-chain security on: # Only the default branch is supported. diff --git a/.github/workflows/tag-and-release.yaml b/.github/workflows/tag-and-release.yaml index bb5737e2b..973edb287 100644 --- a/.github/workflows/tag-and-release.yaml +++ b/.github/workflows/tag-and-release.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + name: Release UDS Runtime on: @@ -5,6 +8,9 @@ on: branches: - main +permissions: + contents: read + jobs: tag-new-version: permissions: write-all diff --git a/.golangci.yml b/.golangci.yml index 02b83b7cd..c14570525 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + run: concurrency: 6 timeout: 5m diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cfed03c53..18fa0d93c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + exclude: '^pkg/api/docs/swagger.*\.json$|^pkg/api/docs/swagger.*\.yaml$' repos: diff --git a/Dockerfile b/Dockerfile index d1aa094f1..94bc2e4fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + FROM cgr.dev/chainguard/static:latest # grab auto platform arg diff --git a/LICENSING.md b/LICENSING.md new file mode 100644 index 000000000..a439b77d2 --- /dev/null +++ b/LICENSING.md @@ -0,0 +1,18 @@ +# Dual Licensing + +This software is licensed under either of: + +- GNU Affero General Public License v3.0 (AGPLv3), see [LICENSE.md](./LICENSE.md) +- Defense Unicorns Commercial License, see below + +## Defense Unicorns Commercial License + +The use of this software under a commercial license is subject to the individual +terms of the license agreement between the licensee and Defense Unicorns. The +content of this license depends on the specific agreement and may vary. For +more information about obtaining a commercial license, please contact +Defense Unicorns at [defenseunicorns.com](https://defenseunicorns.com). + +To use this software under the commercial license, you must have a valid license +agreement with Defense Unicorns. The terms of the Defense Unicorns, Inc. license +agreement supplant and supersede the terms of the AGPL v3 license. diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 1cee81b22..502a11d0a 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + apiVersion: v2 name: uds-runtime description: A Helm chart for Kubernetes diff --git a/chart/templates/cluster-role-binding.yaml b/chart/templates/cluster-role-binding.yaml index 4f1e91d60..38f0f3173 100644 --- a/chart/templates/cluster-role-binding.yaml +++ b/chart/templates/cluster-role-binding.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/chart/templates/cluster-role.yaml b/chart/templates/cluster-role.yaml index 1087f9d69..28c83ee0b 100644 --- a/chart/templates/cluster-role.yaml +++ b/chart/templates/cluster-role.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 1072b3f01..4d629897e 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/chart/templates/service.yaml b/chart/templates/service.yaml index 5b7d4bf86..03a2e2eaf 100644 --- a/chart/templates/service.yaml +++ b/chart/templates/service.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + apiVersion: v1 kind: Service metadata: diff --git a/chart/templates/serviceaccount.yaml b/chart/templates/serviceaccount.yaml index 9e9464566..391425448 100644 --- a/chart/templates/serviceaccount.yaml +++ b/chart/templates/serviceaccount.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/chart/templates/uds-package.yaml b/chart/templates/uds-package.yaml index faf8cf132..824730e43 100644 --- a/chart/templates/uds-package.yaml +++ b/chart/templates/uds-package.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + apiVersion: uds.dev/v1alpha1 kind: Package metadata: diff --git a/chart/values.yaml b/chart/values.yaml index 5238b5266..7fac4d2a8 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + replicaCount: 1 image: repository: ghcr.io/defenseunicorns/uds-runtime diff --git a/commitlint.config.js b/commitlint.config.js index 5073c20db..41beea55f 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1,4 @@ +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + module.exports = { extends: ["@commitlint/config-conventional"] }; diff --git a/go.mod b/go.mod index 4e9576fe6..6f55f6172 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,6 @@ +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + module github.com/defenseunicorns/uds-runtime go 1.22.7 diff --git a/hack/load-test/load-api.js b/hack/load-test/load-api.js index 89efff34f..a147c2a1a 100644 --- a/hack/load-test/load-api.js +++ b/hack/load-test/load-api.js @@ -1,3 +1,6 @@ +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + import { K8s, kind } from "kubernetes-fluent-client"; const namespace = "load-api" + Math.floor(Math.random() * 1000); diff --git a/hack/load-test/load.js b/hack/load-test/load.js index 7791ddde3..428b8d606 100644 --- a/hack/load-test/load.js +++ b/hack/load-test/load.js @@ -1,3 +1,6 @@ +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + import { K8s, kind } from 'kubernetes-fluent-client' const namespace = 'load-test' + Math.floor(Math.random() * 1000); diff --git a/hack/load-test/package.json b/hack/load-test/package.json index 0185c4fcb..8a04ed487 100644 --- a/hack/load-test/package.json +++ b/hack/load-test/package.json @@ -2,6 +2,7 @@ "name": "load-test", "description": "Load tests for UDS Runtime", "version": "1.0.0", + "license": "AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial", "main": "load.js", "type": "module", "dependencies": { diff --git a/hack/load-test/rc.yaml b/hack/load-test/rc.yaml index d33f1de1f..ccfecd844 100644 --- a/hack/load-test/rc.yaml +++ b/hack/load-test/rc.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + apiVersion: node.k8s.io/v1 kind: RuntimeClass metadata: diff --git a/hack/nightly/nightly-values.yaml b/hack/nightly/nightly-values.yaml index bfb176d47..105c9e9c3 100644 --- a/hack/nightly/nightly-values.yaml +++ b/hack/nightly/nightly-values.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + image: tag: nightly-unstable pullPolicy: Always diff --git a/hack/nightly/zarf.yaml b/hack/nightly/zarf.yaml index f6eafe691..bc4303f41 100644 --- a/hack/nightly/zarf.yaml +++ b/hack/nightly/zarf.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + kind: ZarfPackageConfig metadata: name: uds-runtime diff --git a/hack/smoke-test/smoke-values.yaml b/hack/smoke-test/smoke-values.yaml index 49879dbdc..70b765c3e 100644 --- a/hack/smoke-test/smoke-values.yaml +++ b/hack/smoke-test/smoke-values.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + image: repository: uds-runtime tag: smoke-test diff --git a/hack/smoke-test/zarf.yaml b/hack/smoke-test/zarf.yaml index 2a82a2510..4094056ee 100644 --- a/hack/smoke-test/zarf.yaml +++ b/hack/smoke-test/zarf.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + kind: ZarfPackageConfig metadata: name: uds-runtime diff --git a/hack/watch-metrics.sh b/hack/watch-metrics.sh index e117e11b9..0f21b430e 100755 --- a/hack/watch-metrics.sh +++ b/hack/watch-metrics.sh @@ -1,5 +1,8 @@ #!/bin/sh +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + NAMESPACE="uds-runtime" INTERVAL=1 # in seconds diff --git a/main.go b/main.go index 808e6fa4b..d93051bd1 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,6 @@ +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + package main import ( diff --git a/pkg/api/auth/random.go b/pkg/api/auth/random.go index e69797f82..bdc8ebf29 100644 --- a/pkg/api/auth/random.go +++ b/pkg/api/auth/random.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package auth diff --git a/pkg/api/auth/session.go b/pkg/api/auth/session.go index 635817fd9..5d8f532cb 100644 --- a/pkg/api/auth/session.go +++ b/pkg/api/auth/session.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package auth diff --git a/pkg/api/auth/session_test.go b/pkg/api/auth/session_test.go index 4cc8f0016..706d12ed8 100644 --- a/pkg/api/auth/session_test.go +++ b/pkg/api/auth/session_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package auth diff --git a/pkg/api/docs/docs.go b/pkg/api/docs/docs.go index 0f86ace1d..55d062098 100644 --- a/pkg/api/docs/docs.go +++ b/pkg/api/docs/docs.go @@ -1,3 +1,6 @@ +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + // Package docs Code generated by swaggo/swag. DO NOT EDIT package docs diff --git a/pkg/api/docs/swagger.yaml b/pkg/api/docs/swagger.yaml index 5ca933e78..d829f2b93 100644 --- a/pkg/api/docs/swagger.yaml +++ b/pkg/api/docs/swagger.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + info: contact: {} paths: diff --git a/pkg/api/handlers.go b/pkg/api/handlers.go index b35d9df39..2cdcc0de5 100644 --- a/pkg/api/handlers.go +++ b/pkg/api/handlers.go @@ -1,3 +1,6 @@ +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + package api import ( diff --git a/pkg/api/middleware/api_auth.go b/pkg/api/middleware/api_auth.go index a1e762920..b3fb2b9d4 100644 --- a/pkg/api/middleware/api_auth.go +++ b/pkg/api/middleware/api_auth.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package middleware diff --git a/pkg/api/middleware/compress.go b/pkg/api/middleware/compress.go index fbae6b2f1..4a741d766 100644 --- a/pkg/api/middleware/compress.go +++ b/pkg/api/middleware/compress.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package middleware diff --git a/pkg/api/middleware/compress_test.go b/pkg/api/middleware/compress_test.go index 1216a336b..782ead257 100644 --- a/pkg/api/middleware/compress_test.go +++ b/pkg/api/middleware/compress_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial //go:build unit diff --git a/pkg/api/monitor/cache.go b/pkg/api/monitor/cache.go index f0ab4d9fa..b82524ce5 100644 --- a/pkg/api/monitor/cache.go +++ b/pkg/api/monitor/cache.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package monitor diff --git a/pkg/api/monitor/cluster.go b/pkg/api/monitor/cluster.go index 3057fa230..6a1fa9da8 100644 --- a/pkg/api/monitor/cluster.go +++ b/pkg/api/monitor/cluster.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package monitor diff --git a/pkg/api/monitor/cluster_test.go b/pkg/api/monitor/cluster_test.go index b8b8f0b80..c66b86eac 100644 --- a/pkg/api/monitor/cluster_test.go +++ b/pkg/api/monitor/cluster_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial //go:build unit diff --git a/pkg/api/monitor/pepr.go b/pkg/api/monitor/pepr.go index 8f2fa4846..52eb30332 100644 --- a/pkg/api/monitor/pepr.go +++ b/pkg/api/monitor/pepr.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package monitor diff --git a/pkg/api/resources/cache.go b/pkg/api/resources/cache.go index 7a5cab802..efa6a6aad 100644 --- a/pkg/api/resources/cache.go +++ b/pkg/api/resources/cache.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package resources diff --git a/pkg/api/resources/cache_test.go b/pkg/api/resources/cache_test.go index 40069791e..b5b11be35 100644 --- a/pkg/api/resources/cache_test.go +++ b/pkg/api/resources/cache_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial //go:build unit diff --git a/pkg/api/resources/crds.go b/pkg/api/resources/crds.go index 91bfef6d3..f5f8a08d8 100644 --- a/pkg/api/resources/crds.go +++ b/pkg/api/resources/crds.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package resources diff --git a/pkg/api/resources/list.go b/pkg/api/resources/list.go index 4f8f16314..c08272faf 100644 --- a/pkg/api/resources/list.go +++ b/pkg/api/resources/list.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package resources diff --git a/pkg/api/resources/list_test.go b/pkg/api/resources/list_test.go index 696a37a1e..df3f75279 100644 --- a/pkg/api/resources/list_test.go +++ b/pkg/api/resources/list_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial //go:build unit diff --git a/pkg/api/resources/metrics.go b/pkg/api/resources/metrics.go index 88efbb976..e65f48ad0 100644 --- a/pkg/api/resources/metrics.go +++ b/pkg/api/resources/metrics.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package resources diff --git a/pkg/api/resources/metrics_test.go b/pkg/api/resources/metrics_test.go index 8838615fe..5caad5235 100644 --- a/pkg/api/resources/metrics_test.go +++ b/pkg/api/resources/metrics_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial //go:build unit diff --git a/pkg/api/resources/utils.go b/pkg/api/resources/utils.go index 49cc87582..909582342 100644 --- a/pkg/api/resources/utils.go +++ b/pkg/api/resources/utils.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package resources diff --git a/pkg/api/resources/utils_test.go b/pkg/api/resources/utils_test.go index 23a366c76..b4fca646f 100644 --- a/pkg/api/resources/utils_test.go +++ b/pkg/api/resources/utils_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial //go:build unit diff --git a/pkg/api/rest/bind.go b/pkg/api/rest/bind.go index 16419c1f3..c3d8a2904 100644 --- a/pkg/api/rest/bind.go +++ b/pkg/api/rest/bind.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package rest diff --git a/pkg/api/rest/bind_test.go b/pkg/api/rest/bind_test.go index e8ea04d73..86ed659ea 100644 --- a/pkg/api/rest/bind_test.go +++ b/pkg/api/rest/bind_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial //go:build unit diff --git a/pkg/api/rest/filter.go b/pkg/api/rest/filter.go index db8b26f9d..d12c2f6ce 100644 --- a/pkg/api/rest/filter.go +++ b/pkg/api/rest/filter.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package rest diff --git a/pkg/api/rest/filter_test.go b/pkg/api/rest/filter_test.go index 48cd94ee6..24fb1f031 100644 --- a/pkg/api/rest/filter_test.go +++ b/pkg/api/rest/filter_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial //go:build unit diff --git a/pkg/api/rest/sse.go b/pkg/api/rest/sse.go index c44223ccc..02a64ba88 100644 --- a/pkg/api/rest/sse.go +++ b/pkg/api/rest/sse.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package rest diff --git a/pkg/api/rest/sse_test.go b/pkg/api/rest/sse_test.go index c42d9a725..3aaf13890 100644 --- a/pkg/api/rest/sse_test.go +++ b/pkg/api/rest/sse_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial //go:build unit diff --git a/pkg/api/start.go b/pkg/api/start.go index cc24abde9..c10f9b5fe 100644 --- a/pkg/api/start.go +++ b/pkg/api/start.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package api @@ -30,8 +30,6 @@ import ( // @title UDS Runtime API // @version 0.0.0 -// @license.name Apache 2.0 -// @license.url http://www.apache.org/licenses/LICENSE-2.0.html // @BasePath /api/v1 // @schemes http https func Setup(assets *embed.FS) (*chi.Mux, bool, error) { diff --git a/pkg/k8s/client/client.go b/pkg/k8s/client/client.go index 9c2f775b4..79857b851 100644 --- a/pkg/k8s/client/client.go +++ b/pkg/k8s/client/client.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial // Package k8s contains k8s client logic package client diff --git a/pkg/k8s/session/session.go b/pkg/k8s/session/session.go index b9f0fbb57..a5826b745 100644 --- a/pkg/k8s/session/session.go +++ b/pkg/k8s/session/session.go @@ -1,3 +1,6 @@ +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + package session import ( diff --git a/pkg/k8s/session/session_test.go b/pkg/k8s/session/session_test.go index ec2469e18..cd300b1bf 100644 --- a/pkg/k8s/session/session_test.go +++ b/pkg/k8s/session/session_test.go @@ -1,3 +1,6 @@ +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + package session import ( diff --git a/pkg/pepr/stream.go b/pkg/pepr/stream.go index d7d315bef..75fb7fea4 100644 --- a/pkg/pepr/stream.go +++ b/pkg/pepr/stream.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial // Package pepr contains the logic monitoring Pepr operations in a UDS Cluster package pepr diff --git a/pkg/pepr/stream_test.go b/pkg/pepr/stream_test.go index 6f16dbe01..e1785387f 100644 --- a/pkg/pepr/stream_test.go +++ b/pkg/pepr/stream_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial //go:build unit diff --git a/pkg/stream/common.go b/pkg/stream/common.go index 9cc7377f4..453bc9092 100644 --- a/pkg/stream/common.go +++ b/pkg/stream/common.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial // Package stream contains the logic for streaming logs from from UDS Core package stream diff --git a/pkg/stream/common_test.go b/pkg/stream/common_test.go index 7a37a2ffa..8bca088d3 100644 --- a/pkg/stream/common_test.go +++ b/pkg/stream/common_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial //go:build unit diff --git a/pkg/style/style.go b/pkg/style/style.go index 08aaec518..ec6edee6c 100644 --- a/pkg/style/style.go +++ b/pkg/style/style.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial // Package style contains the styles for the UDS CLI and UDS Runtime streaming output. package style diff --git a/pkg/test/api_test.go b/pkg/test/api_test.go index f41075bff..333cd3c8c 100644 --- a/pkg/test/api_test.go +++ b/pkg/test/api_test.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial //go:build integration diff --git a/pkg/test/utils.go b/pkg/test/utils.go index 0cb8eba7b..c4059afeb 100644 --- a/pkg/test/utils.go +++ b/pkg/test/utils.go @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial package test diff --git a/tasks.yaml b/tasks.yaml index c6eab0190..667f67d86 100644 --- a/tasks.yaml +++ b/tasks.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + includes: - test: tasks/test.yaml - lint: tasks/lint.yaml diff --git a/tasks/build.yaml b/tasks/build.yaml index d669d230c..9c44510c0 100644 --- a/tasks/build.yaml +++ b/tasks/build.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + variables: - name: REF description: "reference for the runtime image and zarf package" diff --git a/tasks/lint.yaml b/tasks/lint.yaml index f3a70cec8..77e842604 100644 --- a/tasks/lint.yaml +++ b/tasks/lint.yaml @@ -1,5 +1,8 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + includes: - - common: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.13.1/tasks/lint.yaml + - common: https://raw.githubusercontent.com/defenseunicorns/uds-common/v1.1.0/tasks/lint.yaml - setup: ./setup.yaml tasks: diff --git a/tasks/setup.yaml b/tasks/setup.yaml index 2aadcecae..1345bb6fd 100644 --- a/tasks/setup.yaml +++ b/tasks/setup.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + includes: - common: https://raw.githubusercontent.com/defenseunicorns/uds-common/v0.13.1/tasks/setup.yaml diff --git a/tasks/swagger.yaml b/tasks/swagger.yaml index 239c4d6cd..f2cc9e6d4 100644 --- a/tasks/swagger.yaml +++ b/tasks/swagger.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + tasks: - name: generate description: "Generate Swagger docs" diff --git a/tasks/test.yaml b/tasks/test.yaml index e5c0981d2..f59cbec93 100644 --- a/tasks/test.yaml +++ b/tasks/test.yaml @@ -1,3 +1,6 @@ +# Copyright 2024 Defense Unicorns +# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + includes: - setup: ./setup.yaml - build: ./build.yaml diff --git a/ui/.prettierrc.cjs b/ui/.prettierrc.cjs index bcd86b9a6..367aa84ba 100644 --- a/ui/.prettierrc.cjs +++ b/ui/.prettierrc.cjs @@ -1,3 +1,6 @@ +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + module.exports = { useTabs: false, tabWidth: 2, diff --git a/ui/eslint.config.js b/ui/eslint.config.js index 2e8bd9e0c..698c64ae6 100644 --- a/ui/eslint.config.js +++ b/ui/eslint.config.js @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial import js from '@eslint/js' import prettier from 'eslint-config-prettier' diff --git a/ui/package.json b/ui/package.json index 11c81a00c..19b934c7a 100644 --- a/ui/package.json +++ b/ui/package.json @@ -2,6 +2,7 @@ "name": "uds-runtime", "version": "0.0.1", "private": true, + "license": "AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial", "scripts": { "dev": "vite dev", "build": "vite build", diff --git a/ui/playwright.config.apiauth.ts b/ui/playwright.config.apiauth.ts index 345969931..926e3d97c 100644 --- a/ui/playwright.config.apiauth.ts +++ b/ui/playwright.config.apiauth.ts @@ -1,3 +1,6 @@ +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + import { defineConfig } from '@playwright/test' import { loadEnv } from 'vite' diff --git a/ui/playwright.config.ts b/ui/playwright.config.ts index 0e4bb463d..65685f857 100644 --- a/ui/playwright.config.ts +++ b/ui/playwright.config.ts @@ -1,3 +1,6 @@ +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial + import { defineConfig } from '@playwright/test' import { loadEnv } from 'vite' diff --git a/ui/postcss.config.js b/ui/postcss.config.js index 7e72b9f5d..18dfe5109 100644 --- a/ui/postcss.config.js +++ b/ui/postcss.config.js @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial export default { plugins: { diff --git a/ui/src/app.d.ts b/ui/src/app.d.ts index db942fb37..2454aa81a 100644 --- a/ui/src/app.d.ts +++ b/ui/src/app.d.ts @@ -1,5 +1,5 @@ -// SPDX-License-Identifier: Apache-2.0 -// SPDX-FileCopyrightText: 2024-Present The UDS Authors +// Copyright 2024 Defense Unicorns +// SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial // See https://kit.svelte.dev/docs/types#app // for information about these interfaces diff --git a/ui/src/app.html b/ui/src/app.html index 927754ec2..56e3883ed 100644 --- a/ui/src/app.html +++ b/ui/src/app.html @@ -1,5 +1,5 @@ - - + + diff --git a/ui/src/app.postcss b/ui/src/app.postcss index 412ef73f0..b29389486 100644 --- a/ui/src/app.postcss +++ b/ui/src/app.postcss @@ -1,3 +1,8 @@ +/* + Copyright 2024 Defense Unicorns + SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial +*/ + @tailwind base; @tailwind components; @tailwind utilities; diff --git a/ui/src/lib/components/AnsiDisplay/component.svelte b/ui/src/lib/components/AnsiDisplay/component.svelte index 127de4180..5266691b7 100644 --- a/ui/src/lib/components/AnsiDisplay/component.svelte +++ b/ui/src/lib/components/AnsiDisplay/component.svelte @@ -1,5 +1,5 @@ - - + + diff --git a/ui/src/routes/(resources)/cluster-ops/priority-classes/[[uid]]/+page.svelte b/ui/src/routes/(resources)/cluster-ops/priority-classes/[[uid]]/+page.svelte index 25df29b2d..64c36fae9 100644 --- a/ui/src/routes/(resources)/cluster-ops/priority-classes/[[uid]]/+page.svelte +++ b/ui/src/routes/(resources)/cluster-ops/priority-classes/[[uid]]/+page.svelte @@ -1,5 +1,5 @@ - - + +