From b1441b0eaf8347a8fe91633e4f4eecbdfdadbe62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Bochy=C5=84ski?= Date: Thu, 29 Aug 2024 15:13:20 +0200 Subject: [PATCH] Initial commit --- .github/ISSUE_TEMPLATE/bug-report.md | 32 +++ .github/ISSUE_TEMPLATE/decision-record.md | 35 +++ .../documentation-improvement.md | 34 +++ .github/ISSUE_TEMPLATE/feature-request.md | 21 ++ .../ISSUE_TEMPLATE/new-sig-or-wg-proposal.md | 80 +++++++ .../ISSUE_TEMPLATE/security-vulnerability.md | 57 +++++ .github/issue-template.md | 8 + .github/pull-request-template.md | 19 ++ .github/workflows/lint-markdown-links.yml | 14 ++ .github/workflows/pull-gitleaks.yml | 23 ++ .github/workflows/stale.yml | 31 +++ .mlc.config.json | 14 ++ .reuse/dep5 | 37 ++++ CODEOWNERS | 38 ++++ CODE_OF_CONDUCT.md | 3 + CONTRIBUTING.md | 4 + LICENSE | 202 ++++++++++++++++++ LICENSES/Apache-2.0.txt | 73 +++++++ NOTICE.md | 1 + README.md | 55 +++++ SECURITY.md | 3 + docs/README.md | 39 ++++ docs/contributor/README.md | 1 + docs/user/README.md | 14 ++ docs/user/_sidebar.md | 1 + 25 files changed, 839 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug-report.md create mode 100644 .github/ISSUE_TEMPLATE/decision-record.md create mode 100644 .github/ISSUE_TEMPLATE/documentation-improvement.md create mode 100644 .github/ISSUE_TEMPLATE/feature-request.md create mode 100644 .github/ISSUE_TEMPLATE/new-sig-or-wg-proposal.md create mode 100644 .github/ISSUE_TEMPLATE/security-vulnerability.md create mode 100644 .github/issue-template.md create mode 100644 .github/pull-request-template.md create mode 100644 .github/workflows/lint-markdown-links.yml create mode 100644 .github/workflows/pull-gitleaks.yml create mode 100644 .github/workflows/stale.yml create mode 100644 .mlc.config.json create mode 100755 .reuse/dep5 create mode 100644 CODEOWNERS create mode 100644 CODE_OF_CONDUCT.md create mode 100644 CONTRIBUTING.md create mode 100644 LICENSE create mode 100644 LICENSES/Apache-2.0.txt create mode 100644 NOTICE.md create mode 100644 README.md create mode 100644 SECURITY.md create mode 100644 docs/README.md create mode 100644 docs/contributor/README.md create mode 100644 docs/user/README.md create mode 100644 docs/user/_sidebar.md diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md new file mode 100644 index 0000000..5360ddf --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -0,0 +1,32 @@ +--- +name: Bug report +about: Report a bug in the project +--- + + + +**Description** + + + + + +**Expected result** + + + +**Actual result** + + + +**Steps to reproduce** + + + +**Troubleshooting** + + diff --git a/.github/ISSUE_TEMPLATE/decision-record.md b/.github/ISSUE_TEMPLATE/decision-record.md new file mode 100644 index 0000000..bb997a1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/decision-record.md @@ -0,0 +1,35 @@ +--- +name: Decision record +about: Decision record +--- + + +Created on {YYYY-MM-DD} by {name and surname (@Github username)}. + +## Decision log + +| Name | Description | +|-----------------------|------------------------------------------------------------------------------------| +| Title | {Provide a brief summary of the decision.} | +| Due date | {Specify the date by which the SIG or WG members need to make the decision. Use the `YYYY-MM-DD` date format.} | +| Status | {The status of the document can be `Accepted`, `Declined`, or `Proposed` when it is waiting for a decision. This section should contain one of these three words followed by the date on which the status of the document is agreed on. Follow the `YYYY-MM-DD` format for the date. For example, write `Proposed on 2018-03-20` or `Accepted on 2018-03-23`. Add the new status when it changes. Do not overwrite previous status entries.}| +| Decision type | {Type in `Binary`, `Choice`, or `Prioritization`. The `Binary` type refers to the yes/no decisions, the `Choice` type means that the decision involves choosing between many possibilities, such as a name for a new product, and the `Prioritization` type involves ranking a number of options, such as choosing the next five features to build out of one hundred possible options.} | +| Affected decisions | {Specify the ID of the decision issue or a link to the previous decision record which is affected by this decision. Use the `#{issueid}\|{decision-record-URL}(replaces\|extends\|depends on)` format. For example, write `#265(replaces)` or `#278(depends on)` which means that the decision you propose replaces the issue 265 or depends on the issue 278. Specify as many references as possible and separate them with a comma. Write `None` if no other decision is affected.}| + +## Context + + + +## Decision + + + +## Consequences + + diff --git a/.github/ISSUE_TEMPLATE/documentation-improvement.md b/.github/ISSUE_TEMPLATE/documentation-improvement.md new file mode 100644 index 0000000..9fbb8a2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation-improvement.md @@ -0,0 +1,34 @@ +--- +name: Documentation improvement +about: Suggest an improvement or report a bug in the documentation +--- + + + +**Description** + + + +**Area** + + + +**Reasons** + + + +**Assignees** + +@kyma-project/technical-writers + +**Attachments** + + \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md new file mode 100644 index 0000000..8040e55 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -0,0 +1,21 @@ +--- +name: Feature request +about: Suggest an improvement to the project +--- + + + +**Description** + + + +**Reasons** + + + +**Attachments** + + diff --git a/.github/ISSUE_TEMPLATE/new-sig-or-wg-proposal.md b/.github/ISSUE_TEMPLATE/new-sig-or-wg-proposal.md new file mode 100644 index 0000000..9c62616 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/new-sig-or-wg-proposal.md @@ -0,0 +1,80 @@ +--- +name: SIG or WG proposal +about: Propose a new SIG or WG +--- + + + +**Proposal type** + +* Special Interest Group (SIG) +* Working Group (WG) + +**Name** +* Full name of the group: + +* Abbreviated name: + +**Earliest start date** + +* {YYYY-MM-DD} + +**Visibility** + +* Internal +* Public + +**Keywords** (optional) + +* ... +* ... +* ... + +**Proposers** + +* ... +* ... +* ... + +**Purpose and goals** + + +**Benefits** + + +**Expected results** + + +**Expected membership and governance** + +* Meeting frequency: +* Membership: +* Duration: + +**Previous approach** (optional) + + +**Measures of success** (optional for SIG) + +* ... +* ... +* ... + +**Assessment frequency** + +* Monthly +* Quarterly +* Biannually +* Annually + +**Exit criteria** + +* ... +* ... +* ... diff --git a/.github/ISSUE_TEMPLATE/security-vulnerability.md b/.github/ISSUE_TEMPLATE/security-vulnerability.md new file mode 100644 index 0000000..b3d422e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/security-vulnerability.md @@ -0,0 +1,57 @@ +--- +name: Security vulnerability +about: Report vulnerability in the project +--- + + + +**Description** + + + + + +**Steps to exploit** + + + +**Risk assessment** + + +[{CVSS Vector String}]({CVSS Calculator URL}) **{CVSS Base Score} ({CVSS Base Severity})** + + + + + +**Proposed mitigation** + + diff --git a/.github/issue-template.md b/.github/issue-template.md new file mode 100644 index 0000000..9032a0e --- /dev/null +++ b/.github/issue-template.md @@ -0,0 +1,8 @@ + + +**Description** + + diff --git a/.github/pull-request-template.md b/.github/pull-request-template.md new file mode 100644 index 0000000..28e137f --- /dev/null +++ b/.github/pull-request-template.md @@ -0,0 +1,19 @@ + + +**Description** + +Changes proposed in this pull request: + +- ... +- ... +- ... + +**Related issue(s)** + diff --git a/.github/workflows/lint-markdown-links.yml b/.github/workflows/lint-markdown-links.yml new file mode 100644 index 0000000..d179022 --- /dev/null +++ b/.github/workflows/lint-markdown-links.yml @@ -0,0 +1,14 @@ +name: Lint Markdown Links +run-name: ${{github.event.pull_request.title}} +on: [ pull_request ] +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-verbose-mode: 'no' + config-file: '.mlc.config.json' + folder-path: '.' + max-depth: -1 diff --git a/.github/workflows/pull-gitleaks.yml b/.github/workflows/pull-gitleaks.yml new file mode 100644 index 0000000..ee92cf4 --- /dev/null +++ b/.github/workflows/pull-gitleaks.yml @@ -0,0 +1,23 @@ +name: pull-gitleaks +on: + pull_request: + types: [opened, edited, synchronize, reopened, ready_for_review] + +env: + GITLEAKS_VERSION: 8.18.2 + +jobs: + scan: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Fetch gitleaks ${{ env.GITLEAKS_VERSION }} + run: curl -Lso gitleaks.tar.gz https://github.com/gitleaks/gitleaks/releases/download/v${{ env.GITLEAKS_VERSION }}/gitleaks_${{ env.GITLEAKS_VERSION }}_linux_x64.tar.gz && tar -xvzf ./gitleaks.tar.gz + - name: Run gitleaks + # Scan commits between base and head of the pull request + run: ./gitleaks detect --log-opts=${PULL_BASE_SHA}...${PULL_HEAD_SHA} --verbose --redact + env: + PULL_BASE_SHA: ${{ github.event.pull_request.base.sha }} + PULL_HEAD_SHA: ${{ github.event.pull_request.head.sha }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..1d415fe --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,31 @@ +name: 'Manage Stale Issues and Pull Requests' + +on: + schedule: + - cron: '0 0 * * *' # Runs daily at midnight + workflow_dispatch: # Allows manual triggering of the workflow + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + days-before-stale: 60 + days-before-close: 7 + stale-issue-label: 'lifecycle/stale' + stale-pr-label: 'lifecycle/stale' + exempt-issue-labels: 'lifecycle/frozen,lifecycle/active' + exempt-pr-labels: 'lifecycle/frozen,lifecycle/active' + stale-issue-message: | + This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. + Thank you for your contributions. + stale-pr-message: | + This pull request has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. + Thank you for your contributions. + close-issue-message: | + This issue has been automatically closed due to the lack of recent activity. + /lifecycle rotten + close-pr-message: | + This pull request has been automatically closed due to the lack of recent activity. + /lifecycle rotten diff --git a/.mlc.config.json b/.mlc.config.json new file mode 100644 index 0000000..9e9e139 --- /dev/null +++ b/.mlc.config.json @@ -0,0 +1,14 @@ +{ + "_comment": "This is a configuration file for the [Markdown link check](https://github.com/tcort/markdown-link-check).", + "_comment": "All `/kyma-project` repositories in GitHub use [Markdown link check](https://github.com/tcort/markdown-link-check) to check their Markdown files for broken links.", + "_comment": "Configuration and maintenance of the Markdown link check tool is the responsibility of a repository owner.", + "_comment": "See the following configuration example.", + "_comment": "For more details read the [repository guidelines](https://github.com/kyma-project/community/blob/main/docs/guidelines/repository-guidelines/01-new-repository-settings.md).", + "replacementPatterns": [ + { + "_comment": "a replacement rule for all the in-repository references", + "pattern": "^/", + "replacement": "{{BASEURL}}/" + } + ] +} diff --git a/.reuse/dep5 b/.reuse/dep5 new file mode 100755 index 0000000..96d499f --- /dev/null +++ b/.reuse/dep5 @@ -0,0 +1,37 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: +Upstream-Contact: +Source: +Disclaimer: The code in this project may include calls to APIs ("API Calls") of + SAP or third-party products or services developed outside of this project + ("External Products"). + "APIs" means application programming interfaces, as well as their respective + specifications and implementing code that allows software to communicate with + other software. + API Calls to External Products are not licensed under the open source license + that governs this project. The use of such API Calls and related External + Products are subject to applicable additional agreements with the relevant + provider of the External Products. In no event shall the open source license + that governs this project grant any rights in or to any External Products,or + alter, expand or supersede any terms of the applicable additional agreements. + If you have a valid license agreement with SAP for the use of a particular SAP + External Product, then you may make use of any API Calls included in this + project's code for that SAP External Product, subject to the terms of such + license agreement. If you do not have a valid license agreement for the use of + a particular SAP External Product, then you may only make use of any API Calls + in this project for that SAP External Product for your internal, non-productive + and non-commercial test and evaluation of such API Calls. Nothing herein grants + you any rights to use or access any SAP External Product, or provide any third + parties the right to use of access any SAP External Product, through API Calls. + +Files: +Copyright: SAP SE or an SAP affiliate company and contributors +License: Apache-2.0 + +Files: +Copyright: +License: + +Files: +Copyright: +License: \ No newline at end of file diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..35d9974 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,38 @@ +# Overview + +# The CODEOWNERS file is a GitHub's feature which allows you to create an overview of the code ownership structure in your repository. +# Specify the default owners of your repository and code owners of particular repository parts to define who is automatically requested for a review each time a contributor creates a pull request to the main branch. +# Modify the default settings of the repository and select the "Require review from Code Owners" option on the protected main branch to require one approval from the owners of every part of the repository included in the pull request. For more details, read the following article on GitHub: https://help.github.com/articles/enabling-required-reviews-for-pull-requests/. + +# Details + +# The CODEOWNERS file is located at the root of your repository and includes a specification of the code ownership structure of the repository. +# It is up to you to decide who is responsible for the review of particular parts and types of files in your repository. + +# When defining the file, keep in mind the following rules: + +# Lines starting with a hash (#) are comments. +# Each line of the file is a file pattern followed by one or more owners. +# You can use individual GitHub usernames, e-mail addresses, or team names to define owners. To define the owners with a team name, first add the team to your repository as collaborators with write access permissions. For more details, read the following article on GitHub: https://help.github.com/articles/adding-outside-collaborators-to-repositories-in-your-organization/. +# Define the default owners of the repository. They are automatically requested for a review of any content at the root of the repository and any content for which no owners are specified in this file. +# Provide granular ownership specification for folders and subfolders. You can also define the owners of specific file types in your repository. +# The order is important. The last matching pattern in the file has the most precedence. + +# Examples + +# These are the default owners for the whole content of the repository, including the content for which no owners are specified in the file. +# * @global-owner1 globalowner@example.com @org/team-name +# The following rule indicates that if a pull request affects folder1 at the root of the repository and any content in that folder, only this owner is requested for a review. +# /folder1/ @testuser1 +# When you use the following pattern, you specify that @testuser2 is responsible for the review of any file in folder2, excluding subfolders located therein. +# /folder2/* @testuser2 +# In this example, you define @testuser3 as the owner of any content in every "docs" folder in the repository. +# docs/ @testuser3 +# When you open a pull request that modifies the "yaml" files, only @testuser4 is requested for a review, and the global owner(s) are not. +# *.yaml @testuser4 + +# Reference + +# For more details, read the following articles on GitHub: +# https://help.github.com/articles/about-codeowners/ +# https://github.com/blog/2392-introducing-code-owners/ diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..ed7a6b0 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,3 @@ +# Code of Conduct + +Each contributor and maintainer of this project agrees to follow the community [Code of Conduct](https://github.com/kyma-project/community/blob/main/docs/contributing/01-code-of-conduct.md) that relies on the CNCF Code of Conduct. Read it to learn about the agreed standards of behavior, shared values that govern our community, and details on how to report any suspected Code of Conduct violations. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..1ac0012 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,4 @@ + +# Contributing + +To contribute to this project, follow the general [Contributing Rules](https://github.com/kyma-project/community/blob/main/docs/contributing/02-contributing.md). diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..be36d55 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + 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 (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. + + 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/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 0000000..137069b --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +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 [yyyy] [name of copyright owner] + +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/NOTICE.md b/NOTICE.md new file mode 100644 index 0000000..ccf38a4 --- /dev/null +++ b/NOTICE.md @@ -0,0 +1 @@ +Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. diff --git a/README.md b/README.md new file mode 100644 index 0000000..5714e17 --- /dev/null +++ b/README.md @@ -0,0 +1,55 @@ +> **NOTE:** This is a general template that you can use for a project README.md. Except for the mandatory sections, use only those sections that suit your use case but keep the proposed section order. +> +> Mandatory sections: +> - `Overview` +> - `Prerequisites`, if there are any requirements regarding hard- or software +> - `Installation` +> - `Contributing` - do not change this! +> - `Code of Conduct` - do not change this! +> - `Licensing` - do not change this! + +# {Project Title} + +> Modify the title and insert the name of your project. Use Heading 1 (H1). + +## Overview + + +> Provide a description of the project's functionality. +> +> If it is an example README.md, describe what the example illustrates. + +## Prerequisites + +> List the requirements to run the project or example. + +## Installation + +> Explain the steps to install your project. If there are multiple installation options, mention the recommended one and include others in a separate document. Create an ordered list for each installation task. +> +> If it is an example README.md, describe how to build, run locally, and deploy the example. Format the example as code blocks and specify the language, highlighting where possible. Explain how you can validate that the example ran successfully. For example, define the expected output or commands to run which check a successful deployment. +> +> Add subsections (H3) for better readability. + +## Usage + +> Explain how to use the project. You can create multiple subsections (H3). Include the instructions or provide links to the related documentation. + +## Development + +> Add instructions on how to develop the project or example. It must be clear what to do and, for example, how to trigger the tests so that other contributors know how to make their pull requests acceptable. Include the instructions or provide links to related documentation. + +## Contributing + + +See the [Contributing Rules](CONTRIBUTING.md). + +## Code of Conduct + + +See the [Code of Conduct](CODE_OF_CONDUCT.md) document. + +## Licensing + + +See the [license](./LICENSE) file. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..7be67fc --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,3 @@ +# Security Policy + +If you suspect you have found a security vulnerability in Kyma, please report it to us as described in the [SAP Open Source Security Policy](https://github.com/SAP/.github/blob/main/SECURITY.md). diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..84aca7b --- /dev/null +++ b/docs/README.md @@ -0,0 +1,39 @@ +# Docs + +## Overview + +The `docs` folder contains two subfolders - `user` and `contributor`. + +The `user` subfolder contains the end-user documentation, which is displayed on the [Kyma website](https://kyma-project.io/#/). Depending on your module needs, the subfolder must include overview, usage, or technical reference documents. To display the content on the website properly, create a `_sidebar.md` file in the `user` subfolder and list the documents it contains there. For more information on how to publish user documentation, follow [this guide](https://github.com/kyma-project/community/blob/main/docs/guidelines/content-guidelines/01-user-docs.md). + +The `contributor` subfolder includes any developer-related documentation to help them manually install, develop, and operate a module. + +To have a common structure across all modules, all documents must be properly numbered according to the following structure: + +> **NOTE:** It is suggested to use the following titles if you have the content that matches them; otherwise use your own, more suitable titles, or simply skip the ones you find irrelevant. + + - 00-xx-overview + - 01-xx-tutorial/configuration + - 02-xx-usage + - 03-xx-troubleshooting + +where `xx` is the number of the given document. For example: + + ```bash + 00-00-overview-telemetry-manager + 00-10-overview-logs + 00-20-overview-traces + 00-30-overview-metrics + 01-10-configure-logs + 01-20-configure-traces + 01-30-configure-metrics + 02-10-use-logs + 02-20-use-traces + 02-30-use-metrics + (...) + ``` +> **NOTE:** Before introducing [docsify](https://docsify.js.org/#/?id=docsify), we agreed to use the `10`, `20`, `30` numbering. It was to help maintain the proper order of docs if they were rendered automatically on the website. With docsify, you manually add the content to the `_sidebar.md` file, and docs are displayed in the order you add them. However, this numbering is still recommended to have the unified structure of the docs in the module repositories. + +If you have other content that does not fit into the above topics, create your own 04-10-module-specific document(s). + +You can divide your documentation into subfolders to avoid having too many documents in one `docs/user` or `docs/contributor` folder. For example, if you have many technical reference documents, you can create a `technical reference` subfolder in `docs/user` and keep relevant documentation there. Each subfolder in the `user` folder must have its own `_sidebar.md` file with the links to the main module page and the list of docs it contains. \ No newline at end of file diff --git a/docs/contributor/README.md b/docs/contributor/README.md new file mode 100644 index 0000000..9a22d6f --- /dev/null +++ b/docs/contributor/README.md @@ -0,0 +1 @@ +In this folder, you can add any developer-related documentation, for example, advanced installation options, testing strategy, governance, etc. \ No newline at end of file diff --git a/docs/user/README.md b/docs/user/README.md new file mode 100644 index 0000000..1c6854d --- /dev/null +++ b/docs/user/README.md @@ -0,0 +1,14 @@ +> **TIP:** Apart from the {Module Name} heading, you can use your own titles for the remaining sections. You can also add more module-specific sections. + +# {Module Name} +> Modify the title and insert the name of your module. Use Heading 1 (H1). + +## Overview +> Provide a description of your module and its components. Describe its features and functionalities. Mention the scope and add information on the CustomResourceDefinitions (CRDs). +> You can divide this section to the relevant subsections. + +## Useful Links (Optional) +> Provide links to the most relevant module documentation (tutorials, technical references, resources, etc.). + +## Feedback (Optional) +> Describe how users can provide feedback. \ No newline at end of file diff --git a/docs/user/_sidebar.md b/docs/user/_sidebar.md new file mode 100644 index 0000000..467416e --- /dev/null +++ b/docs/user/_sidebar.md @@ -0,0 +1 @@ +Use this file to create an unordered list of documents you want to display on the [Kyma website](https://kyma-project.io). The list serves to navigate through the user documentation. For more information, visit the [User documentation](https://github.com/kyma-project/community/blob/main/docs/guidelines/content-guidelines/01-user-docs.md) guide. \ No newline at end of file