From 34c89e814ded666ab081aeffc21b649c9ee2a3b2 Mon Sep 17 00:00:00 2001 From: pptx704 Date: Tue, 10 Mar 2026 04:28:51 +0600 Subject: [PATCH] Added basic license information --- LICENSE | 97 +++++++++ NOTICE | 15 ++ THIRD_PARTY_LICENSES/apache-2.0.txt | 201 ++++++++++++++++++ envd/internal/api/auth.go | 2 + envd/internal/api/auth_test.go | 2 + envd/internal/api/cfg.yaml | 2 + envd/internal/api/download.go | 2 + envd/internal/api/download_test.go | 2 + envd/internal/api/encoding.go | 2 + envd/internal/api/encoding_test.go | 2 + envd/internal/api/envs.go | 2 + envd/internal/api/error.go | 2 + envd/internal/api/generate.go | 2 + envd/internal/api/init.go | 3 + envd/internal/api/init_test.go | 3 + envd/internal/api/secure_token.go | 2 + envd/internal/api/secure_token_test.go | 2 + envd/internal/api/store.go | 2 + envd/internal/api/upload.go | 2 + envd/internal/api/upload_test.go | 2 + envd/internal/execcontext/context.go | 2 + envd/internal/host/metrics.go | 3 + envd/internal/host/mmds.go | 3 + envd/internal/logs/bufferedEvents.go | 2 + envd/internal/logs/exporter/exporter.go | 2 + envd/internal/logs/interceptor.go | 2 + envd/internal/logs/logger.go | 2 + envd/internal/permissions/authenticate.go | 2 + envd/internal/permissions/keepalive.go | 2 + envd/internal/permissions/path.go | 2 + envd/internal/permissions/user.go | 2 + envd/internal/port/forward.go | 2 + envd/internal/port/scan.go | 2 + envd/internal/port/scanSubscriber.go | 2 + envd/internal/port/scanfilter.go | 2 + envd/internal/services/cgroups/cgroup2.go | 2 + .../internal/services/cgroups/cgroup2_test.go | 2 + envd/internal/services/cgroups/iface.go | 2 + envd/internal/services/cgroups/noop.go | 2 + envd/internal/services/filesystem/dir.go | 2 + envd/internal/services/filesystem/dir_test.go | 2 + envd/internal/services/filesystem/move.go | 2 + .../internal/services/filesystem/move_test.go | 2 + envd/internal/services/filesystem/remove.go | 2 + envd/internal/services/filesystem/service.go | 3 + .../services/filesystem/service_test.go | 2 + envd/internal/services/filesystem/stat.go | 2 + .../internal/services/filesystem/stat_test.go | 2 + envd/internal/services/filesystem/utils.go | 2 + .../services/filesystem/utils_test.go | 2 + envd/internal/services/filesystem/watch.go | 2 + .../services/filesystem/watch_sync.go | 2 + envd/internal/services/process/connect.go | 2 + .../services/process/handler/handler.go | 2 + .../services/process/handler/multiplex.go | 2 + envd/internal/services/process/input.go | 2 + envd/internal/services/process/list.go | 2 + envd/internal/services/process/service.go | 2 + envd/internal/services/process/signal.go | 2 + envd/internal/services/process/start.go | 2 + envd/internal/services/process/update.go | 2 + envd/internal/shared/filesystem/entry.go | 2 + envd/internal/shared/filesystem/entry_test.go | 2 + envd/internal/shared/filesystem/model.go | 2 + envd/internal/shared/id/id.go | 2 + envd/internal/shared/id/id_test.go | 2 + envd/internal/shared/keys/constants.go | 3 + envd/internal/shared/keys/hashing.go | 2 + envd/internal/shared/keys/hmac_sha256.go | 2 + envd/internal/shared/keys/hmac_sha256_test.go | 2 + envd/internal/shared/keys/key.go | 2 + envd/internal/shared/keys/key_test.go | 2 + envd/internal/shared/keys/sha256.go | 2 + envd/internal/shared/keys/sha256_test.go | 2 + envd/internal/shared/keys/sha512.go | 2 + envd/internal/shared/smap/smap.go | 2 + envd/internal/shared/utils/ptr.go | 2 + envd/internal/utils/atomic.go | 2 + envd/internal/utils/atomic_test.go | 2 + envd/internal/utils/map.go | 2 + envd/internal/utils/multipart.go | 2 + envd/internal/utils/rfsnotify.go | 2 + envd/main.go | 3 + envd/spec/envd.yaml | 2 + proto/envd/filesystem.proto | 2 + proto/envd/process.proto | 2 + 86 files changed, 486 insertions(+) create mode 100644 LICENSE create mode 100644 NOTICE create mode 100644 THIRD_PARTY_LICENSES/apache-2.0.txt diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ca87729 --- /dev/null +++ b/LICENSE @@ -0,0 +1,97 @@ +Wrenn Sandbox License + +Business Source License 1.1 + +Copyright (c) 2026 M/S Omukk, Bangladesh + +--- + +Licensor + +M/S Omukk, Bangladesh + +Contact: [contact@omukk.dev](mailto:contact@omukk.dev) + +--- + +Licensed Work + +The Licensed Work is the software project known as "Wrenn Sandbox", including all source code and associated files in this repository, except the directory `envd/`, which is licensed separately under the Apache License Version 2.0. + +Initial development of the Licensed Work began in March 2026. + +--- + +Change Date + +January 1, 2030 + +--- + +Change License + +On the Change Date, the Licensed Work will automatically become available under the terms of the GNU General Public License, Version 3 (GPL-3.0). + +--- + +Additional Use Grant (SaaS Restriction) + +The Licensor grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work, provided that you comply with the limitations of this License. + +You may: + +* Use the software for personal use +* Use the software internally within your organization +* Modify the source code +* Experiment, test, and evaluate the software +* Distribute unmodified copies of the source code for evaluation + +You may not: + +Provide the Licensed Work to third parties as a managed service, hosted service, software-as-a-service (SaaS), platform service, or any similar commercial offering where the primary value of the service derives from the Licensed Work. + +You may not sell the Licensed Work or offer paid services primarily based on the Licensed Work without a commercial license from M/S Omukk. + +Commercial licenses may be obtained by contacting: + +[contact@omukk.dev](mailto:contact@omukk.dev) + +--- + +Contributions + +Unless otherwise stated, any Contribution intentionally submitted for inclusion in the Licensed Work shall be licensed under the terms of this Business Source License 1.1. + +--- + +Business Source License Terms + +Use of the Licensed Work is governed by the Business Source License included in this file. + +The Business Source License is not an Open Source license. However, the Licensed Work will automatically become available under the Change License on the Change Date. + +Licensor grants you a non-exclusive, worldwide, royalty-free license to use, copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work, provided that you comply with the limitations stated in this License. + +All copies of the Licensed Work must include this License file. + +Any use of the Licensed Work in violation of this License will automatically terminate your rights under this License. + +--- + +Disclaimer of Warranty + +THE LICENSED WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. + +--- + +Limitation of Liability + +IN NO EVENT SHALL THE LICENSOR OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM THE USE OF THE LICENSED WORK. + +--- + +Third-Party Components + +Portions of this project include software licensed under separate open-source licenses. + +See the NOTICE file and THIRD_PARTY_LICENSES directory for details. diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..4e9c1a6 --- /dev/null +++ b/NOTICE @@ -0,0 +1,15 @@ +Wrenn Sandbox +Copyright (c) 2026 M/S Omukk, Bangladesh + +This project includes software derived from the following project: + +Project: e2b infra +Repository: https://github.com/e2b-dev/infra +Original directory: packages/envd + +The envd/ directory and proto/envd/*.proto files in this repository contains code derived from the above project and is licensed under the Apache License Version 2.0. + +Modifications to this code were made by M/S Omukk. + +Copyright (c) 2023 FoundryLabs, Inc. +Modifications Copyright (c) 2026 M/S Omukk, Bangladesh diff --git a/THIRD_PARTY_LICENSES/apache-2.0.txt b/THIRD_PARTY_LICENSES/apache-2.0.txt new file mode 100644 index 0000000..ec47fef --- /dev/null +++ b/THIRD_PARTY_LICENSES/apache-2.0.txt @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2023 FoundryLabs, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/envd/internal/api/auth.go b/envd/internal/api/auth.go index 0e85954..b626f5a 100644 --- a/envd/internal/api/auth.go +++ b/envd/internal/api/auth.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/api/auth_test.go b/envd/internal/api/auth_test.go index 00b9221..4e80ec7 100644 --- a/envd/internal/api/auth_test.go +++ b/envd/internal/api/auth_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/api/cfg.yaml b/envd/internal/api/cfg.yaml index da46226..f72ca5e 100644 --- a/envd/internal/api/cfg.yaml +++ b/envd/internal/api/cfg.yaml @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 + # yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json package: api diff --git a/envd/internal/api/download.go b/envd/internal/api/download.go index b643484..b90a8ac 100644 --- a/envd/internal/api/download.go +++ b/envd/internal/api/download.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/api/download_test.go b/envd/internal/api/download_test.go index e0f78b0..235a613 100644 --- a/envd/internal/api/download_test.go +++ b/envd/internal/api/download_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/api/encoding.go b/envd/internal/api/encoding.go index 8ccf2fb..d324c1c 100644 --- a/envd/internal/api/encoding.go +++ b/envd/internal/api/encoding.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/api/encoding_test.go b/envd/internal/api/encoding_test.go index 1a639e7..6cb311b 100644 --- a/envd/internal/api/encoding_test.go +++ b/envd/internal/api/encoding_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/api/envs.go b/envd/internal/api/envs.go index 4dcc0cd..6de61b7 100644 --- a/envd/internal/api/envs.go +++ b/envd/internal/api/envs.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/api/error.go b/envd/internal/api/error.go index 2634d03..f3362b0 100644 --- a/envd/internal/api/error.go +++ b/envd/internal/api/error.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/api/generate.go b/envd/internal/api/generate.go index 40fc05e..8d906a6 100644 --- a/envd/internal/api/generate.go +++ b/envd/internal/api/generate.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api //go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -config cfg.yaml ../../spec/envd.yaml diff --git a/envd/internal/api/init.go b/envd/internal/api/init.go index dd55c5c..a489459 100644 --- a/envd/internal/api/init.go +++ b/envd/internal/api/init.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// Modifications by M/S Omukk + package api import ( diff --git a/envd/internal/api/init_test.go b/envd/internal/api/init_test.go index b44924c..8ebfad8 100644 --- a/envd/internal/api/init_test.go +++ b/envd/internal/api/init_test.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// Modifications by M/S Omukk + package api import ( diff --git a/envd/internal/api/secure_token.go b/envd/internal/api/secure_token.go index fee152a..bdb6fab 100644 --- a/envd/internal/api/secure_token.go +++ b/envd/internal/api/secure_token.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/api/secure_token_test.go b/envd/internal/api/secure_token_test.go index 3664c6d..ccb5a78 100644 --- a/envd/internal/api/secure_token_test.go +++ b/envd/internal/api/secure_token_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/api/store.go b/envd/internal/api/store.go index f52f0a0..088222a 100644 --- a/envd/internal/api/store.go +++ b/envd/internal/api/store.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/api/upload.go b/envd/internal/api/upload.go index 9c7cbeb..e42e0b5 100644 --- a/envd/internal/api/upload.go +++ b/envd/internal/api/upload.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/api/upload_test.go b/envd/internal/api/upload_test.go index 0d66b0b..9a142cb 100644 --- a/envd/internal/api/upload_test.go +++ b/envd/internal/api/upload_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/envd/internal/execcontext/context.go b/envd/internal/execcontext/context.go index 03bac33..f150d61 100644 --- a/envd/internal/execcontext/context.go +++ b/envd/internal/execcontext/context.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package execcontext import ( diff --git a/envd/internal/host/metrics.go b/envd/internal/host/metrics.go index 1f09837..3e80518 100644 --- a/envd/internal/host/metrics.go +++ b/envd/internal/host/metrics.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// Modifications by M/S Omukk + package host import ( diff --git a/envd/internal/host/mmds.go b/envd/internal/host/mmds.go index 7d2976c..99efcf2 100644 --- a/envd/internal/host/mmds.go +++ b/envd/internal/host/mmds.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// Modifications by M/S Omukk + package host import ( diff --git a/envd/internal/logs/bufferedEvents.go b/envd/internal/logs/bufferedEvents.go index 7e7da48..24d5158 100644 --- a/envd/internal/logs/bufferedEvents.go +++ b/envd/internal/logs/bufferedEvents.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package logs import ( diff --git a/envd/internal/logs/exporter/exporter.go b/envd/internal/logs/exporter/exporter.go index f07d872..038ef51 100644 --- a/envd/internal/logs/exporter/exporter.go +++ b/envd/internal/logs/exporter/exporter.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package exporter import ( diff --git a/envd/internal/logs/interceptor.go b/envd/internal/logs/interceptor.go index 92b99c0..2aa7c83 100644 --- a/envd/internal/logs/interceptor.go +++ b/envd/internal/logs/interceptor.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package logs import ( diff --git a/envd/internal/logs/logger.go b/envd/internal/logs/logger.go index 0aef809..ff17b0b 100644 --- a/envd/internal/logs/logger.go +++ b/envd/internal/logs/logger.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package logs import ( diff --git a/envd/internal/permissions/authenticate.go b/envd/internal/permissions/authenticate.go index 8b525dc..1b799ad 100644 --- a/envd/internal/permissions/authenticate.go +++ b/envd/internal/permissions/authenticate.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package permissions import ( diff --git a/envd/internal/permissions/keepalive.go b/envd/internal/permissions/keepalive.go index 3d7a046..e39b38b 100644 --- a/envd/internal/permissions/keepalive.go +++ b/envd/internal/permissions/keepalive.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package permissions import ( diff --git a/envd/internal/permissions/path.go b/envd/internal/permissions/path.go index 8ac278b..9a15495 100644 --- a/envd/internal/permissions/path.go +++ b/envd/internal/permissions/path.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package permissions import ( diff --git a/envd/internal/permissions/user.go b/envd/internal/permissions/user.go index ead7a5d..e2d3ffd 100644 --- a/envd/internal/permissions/user.go +++ b/envd/internal/permissions/user.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package permissions import ( diff --git a/envd/internal/port/forward.go b/envd/internal/port/forward.go index 11020f4..e836519 100644 --- a/envd/internal/port/forward.go +++ b/envd/internal/port/forward.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + // portf (port forward) periodaically scans opened TCP ports on the 127.0.0.1 (or localhost) // and launches `socat` process for every such port in the background. // socat forward traffic from `sourceIP`:port to the 127.0.0.1:port. diff --git a/envd/internal/port/scan.go b/envd/internal/port/scan.go index a9925df..766202a 100644 --- a/envd/internal/port/scan.go +++ b/envd/internal/port/scan.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package port import ( diff --git a/envd/internal/port/scanSubscriber.go b/envd/internal/port/scanSubscriber.go index ca3615b..6a4f5b0 100644 --- a/envd/internal/port/scanSubscriber.go +++ b/envd/internal/port/scanSubscriber.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package port import ( diff --git a/envd/internal/port/scanfilter.go b/envd/internal/port/scanfilter.go index 88914b2..941023d 100644 --- a/envd/internal/port/scanfilter.go +++ b/envd/internal/port/scanfilter.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package port import ( diff --git a/envd/internal/services/cgroups/cgroup2.go b/envd/internal/services/cgroups/cgroup2.go index b834bbe..b60251e 100644 --- a/envd/internal/services/cgroups/cgroup2.go +++ b/envd/internal/services/cgroups/cgroup2.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package cgroups import ( diff --git a/envd/internal/services/cgroups/cgroup2_test.go b/envd/internal/services/cgroups/cgroup2_test.go index a7085d2..ff16787 100644 --- a/envd/internal/services/cgroups/cgroup2_test.go +++ b/envd/internal/services/cgroups/cgroup2_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package cgroups import ( diff --git a/envd/internal/services/cgroups/iface.go b/envd/internal/services/cgroups/iface.go index 103c5bb..04bbfa0 100644 --- a/envd/internal/services/cgroups/iface.go +++ b/envd/internal/services/cgroups/iface.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package cgroups type ProcessType string diff --git a/envd/internal/services/cgroups/noop.go b/envd/internal/services/cgroups/noop.go index 55bf014..3b5f076 100644 --- a/envd/internal/services/cgroups/noop.go +++ b/envd/internal/services/cgroups/noop.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package cgroups type NoopManager struct{} diff --git a/envd/internal/services/filesystem/dir.go b/envd/internal/services/filesystem/dir.go index f6ed0f3..c3ee752 100644 --- a/envd/internal/services/filesystem/dir.go +++ b/envd/internal/services/filesystem/dir.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/services/filesystem/dir_test.go b/envd/internal/services/filesystem/dir_test.go index 1c065f7..5dba82e 100644 --- a/envd/internal/services/filesystem/dir_test.go +++ b/envd/internal/services/filesystem/dir_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/services/filesystem/move.go b/envd/internal/services/filesystem/move.go index accfc73..adf5b7e 100644 --- a/envd/internal/services/filesystem/move.go +++ b/envd/internal/services/filesystem/move.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/services/filesystem/move_test.go b/envd/internal/services/filesystem/move_test.go index 5d2197c..f094e9b 100644 --- a/envd/internal/services/filesystem/move_test.go +++ b/envd/internal/services/filesystem/move_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/services/filesystem/remove.go b/envd/internal/services/filesystem/remove.go index a536479..fd8ce62 100644 --- a/envd/internal/services/filesystem/remove.go +++ b/envd/internal/services/filesystem/remove.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/services/filesystem/service.go b/envd/internal/services/filesystem/service.go index 3b02f88..51f948d 100644 --- a/envd/internal/services/filesystem/service.go +++ b/envd/internal/services/filesystem/service.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// Modifications by M/S Omukk + package filesystem import ( diff --git a/envd/internal/services/filesystem/service_test.go b/envd/internal/services/filesystem/service_test.go index 6629535..3e6db01 100644 --- a/envd/internal/services/filesystem/service_test.go +++ b/envd/internal/services/filesystem/service_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/services/filesystem/stat.go b/envd/internal/services/filesystem/stat.go index b29be22..d3bc4f5 100644 --- a/envd/internal/services/filesystem/stat.go +++ b/envd/internal/services/filesystem/stat.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/services/filesystem/stat_test.go b/envd/internal/services/filesystem/stat_test.go index 42029e1..56d4af7 100644 --- a/envd/internal/services/filesystem/stat_test.go +++ b/envd/internal/services/filesystem/stat_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/services/filesystem/utils.go b/envd/internal/services/filesystem/utils.go index 9ccb7dc..6e94ce0 100644 --- a/envd/internal/services/filesystem/utils.go +++ b/envd/internal/services/filesystem/utils.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/services/filesystem/utils_test.go b/envd/internal/services/filesystem/utils_test.go index 8b7ca87..0f0f9ad 100644 --- a/envd/internal/services/filesystem/utils_test.go +++ b/envd/internal/services/filesystem/utils_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/services/filesystem/watch.go b/envd/internal/services/filesystem/watch.go index d6b957a..0ad0105 100644 --- a/envd/internal/services/filesystem/watch.go +++ b/envd/internal/services/filesystem/watch.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/services/filesystem/watch_sync.go b/envd/internal/services/filesystem/watch_sync.go index c08eebe..217f86b 100644 --- a/envd/internal/services/filesystem/watch_sync.go +++ b/envd/internal/services/filesystem/watch_sync.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/services/process/connect.go b/envd/internal/services/process/connect.go index b495406..6d900ef 100644 --- a/envd/internal/services/process/connect.go +++ b/envd/internal/services/process/connect.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package process import ( diff --git a/envd/internal/services/process/handler/handler.go b/envd/internal/services/process/handler/handler.go index 51b75e4..dc5a8dd 100644 --- a/envd/internal/services/process/handler/handler.go +++ b/envd/internal/services/process/handler/handler.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package handler import ( diff --git a/envd/internal/services/process/handler/multiplex.go b/envd/internal/services/process/handler/multiplex.go index 4ba16e9..4fe696e 100644 --- a/envd/internal/services/process/handler/multiplex.go +++ b/envd/internal/services/process/handler/multiplex.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package handler import ( diff --git a/envd/internal/services/process/input.go b/envd/internal/services/process/input.go index 5cb0230..da82d37 100644 --- a/envd/internal/services/process/input.go +++ b/envd/internal/services/process/input.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package process import ( diff --git a/envd/internal/services/process/list.go b/envd/internal/services/process/list.go index 1a4a302..3b42655 100644 --- a/envd/internal/services/process/list.go +++ b/envd/internal/services/process/list.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package process import ( diff --git a/envd/internal/services/process/service.go b/envd/internal/services/process/service.go index 7585d02..e00f345 100644 --- a/envd/internal/services/process/service.go +++ b/envd/internal/services/process/service.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package process import ( diff --git a/envd/internal/services/process/signal.go b/envd/internal/services/process/signal.go index ce5ea5d..23795da 100644 --- a/envd/internal/services/process/signal.go +++ b/envd/internal/services/process/signal.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package process import ( diff --git a/envd/internal/services/process/start.go b/envd/internal/services/process/start.go index 75f3ddf..b9a61b1 100644 --- a/envd/internal/services/process/start.go +++ b/envd/internal/services/process/start.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package process import ( diff --git a/envd/internal/services/process/update.go b/envd/internal/services/process/update.go index 2753e27..1778f89 100644 --- a/envd/internal/services/process/update.go +++ b/envd/internal/services/process/update.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package process import ( diff --git a/envd/internal/shared/filesystem/entry.go b/envd/internal/shared/filesystem/entry.go index 7e0bffb..fb1cc2d 100644 --- a/envd/internal/shared/filesystem/entry.go +++ b/envd/internal/shared/filesystem/entry.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/shared/filesystem/entry_test.go b/envd/internal/shared/filesystem/entry_test.go index 485fb26..537d6e0 100644 --- a/envd/internal/shared/filesystem/entry_test.go +++ b/envd/internal/shared/filesystem/entry_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/shared/filesystem/model.go b/envd/internal/shared/filesystem/model.go index b586ca1..6024cce 100644 --- a/envd/internal/shared/filesystem/model.go +++ b/envd/internal/shared/filesystem/model.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package filesystem import ( diff --git a/envd/internal/shared/id/id.go b/envd/internal/shared/id/id.go index 4524261..45f68fe 100644 --- a/envd/internal/shared/id/id.go +++ b/envd/internal/shared/id/id.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package id import ( diff --git a/envd/internal/shared/id/id_test.go b/envd/internal/shared/id/id_test.go index 5155c75..38de0a7 100644 --- a/envd/internal/shared/id/id_test.go +++ b/envd/internal/shared/id/id_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package id import ( diff --git a/envd/internal/shared/keys/constants.go b/envd/internal/shared/keys/constants.go index 4d00bdb..72e8d68 100644 --- a/envd/internal/shared/keys/constants.go +++ b/envd/internal/shared/keys/constants.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// Modifications by M/S Omukk + package keys const ( diff --git a/envd/internal/shared/keys/hashing.go b/envd/internal/shared/keys/hashing.go index a5572f2..4826637 100644 --- a/envd/internal/shared/keys/hashing.go +++ b/envd/internal/shared/keys/hashing.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package keys type Hasher interface { diff --git a/envd/internal/shared/keys/hmac_sha256.go b/envd/internal/shared/keys/hmac_sha256.go index b0957a4..de7e04c 100644 --- a/envd/internal/shared/keys/hmac_sha256.go +++ b/envd/internal/shared/keys/hmac_sha256.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package keys import ( diff --git a/envd/internal/shared/keys/hmac_sha256_test.go b/envd/internal/shared/keys/hmac_sha256_test.go index f592cc3..22bd49e 100644 --- a/envd/internal/shared/keys/hmac_sha256_test.go +++ b/envd/internal/shared/keys/hmac_sha256_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package keys import ( diff --git a/envd/internal/shared/keys/key.go b/envd/internal/shared/keys/key.go index 24379a0..c73c830 100644 --- a/envd/internal/shared/keys/key.go +++ b/envd/internal/shared/keys/key.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package keys import ( diff --git a/envd/internal/shared/keys/key_test.go b/envd/internal/shared/keys/key_test.go index b06b9ea..50dcfb2 100644 --- a/envd/internal/shared/keys/key_test.go +++ b/envd/internal/shared/keys/key_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package keys import ( diff --git a/envd/internal/shared/keys/sha256.go b/envd/internal/shared/keys/sha256.go index 49a3683..879bb10 100644 --- a/envd/internal/shared/keys/sha256.go +++ b/envd/internal/shared/keys/sha256.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package keys import ( diff --git a/envd/internal/shared/keys/sha256_test.go b/envd/internal/shared/keys/sha256_test.go index 266e430..9722fbe 100644 --- a/envd/internal/shared/keys/sha256_test.go +++ b/envd/internal/shared/keys/sha256_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package keys import ( diff --git a/envd/internal/shared/keys/sha512.go b/envd/internal/shared/keys/sha512.go index 8b8e463..3bc3039 100644 --- a/envd/internal/shared/keys/sha512.go +++ b/envd/internal/shared/keys/sha512.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package keys import ( diff --git a/envd/internal/shared/smap/smap.go b/envd/internal/shared/smap/smap.go index 2937ef9..fc1f816 100644 --- a/envd/internal/shared/smap/smap.go +++ b/envd/internal/shared/smap/smap.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package smap import ( diff --git a/envd/internal/shared/utils/ptr.go b/envd/internal/shared/utils/ptr.go index ec23908..08c4090 100644 --- a/envd/internal/shared/utils/ptr.go +++ b/envd/internal/shared/utils/ptr.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package utils import "fmt" diff --git a/envd/internal/utils/atomic.go b/envd/internal/utils/atomic.go index d34d6af..6daa190 100644 --- a/envd/internal/utils/atomic.go +++ b/envd/internal/utils/atomic.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package utils import ( diff --git a/envd/internal/utils/atomic_test.go b/envd/internal/utils/atomic_test.go index 206c586..5a01ddd 100644 --- a/envd/internal/utils/atomic_test.go +++ b/envd/internal/utils/atomic_test.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package utils import ( diff --git a/envd/internal/utils/map.go b/envd/internal/utils/map.go index 256b44b..b1e522b 100644 --- a/envd/internal/utils/map.go +++ b/envd/internal/utils/map.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package utils import "sync" diff --git a/envd/internal/utils/multipart.go b/envd/internal/utils/multipart.go index a03bfd9..64dce42 100644 --- a/envd/internal/utils/multipart.go +++ b/envd/internal/utils/multipart.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package utils import ( diff --git a/envd/internal/utils/rfsnotify.go b/envd/internal/utils/rfsnotify.go index 9bfdbec..68918f6 100644 --- a/envd/internal/utils/rfsnotify.go +++ b/envd/internal/utils/rfsnotify.go @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + package utils import "path/filepath" diff --git a/envd/main.go b/envd/main.go index 8975cd3..751788d 100644 --- a/envd/main.go +++ b/envd/main.go @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: Apache-2.0 +// Modifications by M/S Omukk + package main import ( diff --git a/envd/spec/envd.yaml b/envd/spec/envd.yaml index 83091f1..b86d563 100644 --- a/envd/spec/envd.yaml +++ b/envd/spec/envd.yaml @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 + openapi: 3.0.0 info: title: envd diff --git a/proto/envd/filesystem.proto b/proto/envd/filesystem.proto index 54bda3c..44383c6 100644 --- a/proto/envd/filesystem.proto +++ b/proto/envd/filesystem.proto @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package filesystem; diff --git a/proto/envd/process.proto b/proto/envd/process.proto index a26d1c1..414daec 100644 --- a/proto/envd/process.proto +++ b/proto/envd/process.proto @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: Apache-2.0 + syntax = "proto3"; package process;