|
| 1 | +<!-- |
| 2 | + SPDX-License-Identifier: Apache-2.0 |
| 3 | + SPDX-FileCopyrightText: 2021 The Elixir Team |
| 4 | +--> |
| 5 | + |
| 6 | +# Open Source Policy |
| 7 | + |
| 8 | +## 1. Introduction |
| 9 | + |
| 10 | +This Open Source Policy outlines the licensing, contribution, and compliance |
| 11 | +requirements for all code released under the Elixir project. By adhering to |
| 12 | +these guidelines, we ensure that our community, maintainers, and contributors |
| 13 | +uphold both legal and ethical standards while fostering a collaborative, |
| 14 | +transparent environment. |
| 15 | + |
| 16 | +This policy exists to support and protect the Elixir community. It aims to |
| 17 | +balance openness, collaboration, and respect for all contributors’ rights, |
| 18 | +ensuring that Elixir remains a trusted and innovative open source project. |
| 19 | + |
| 20 | +## 2. Scope |
| 21 | + |
| 22 | +This policy applies to the Elixir Programming language, located at |
| 23 | +https://github.com/elixir-lang/elixir. It covers every file, and contribution |
| 24 | +made, including documentation and any associated assets. |
| 25 | + |
| 26 | +## 3. Licensing |
| 27 | + |
| 28 | +All code released by the Elixir team is licensed under the |
| 29 | +[Apache-2.0](./LICENSES/Apache-2.0.txt) license. Additionally, the following |
| 30 | +licenses are recognized as permissible in this project: |
| 31 | + |
| 32 | +- The Unicode license, as documented at |
| 33 | + [LicenseRef-scancode-unicode](./LICENSES/LicenseRef-scancode-unicode.txt) |
| 34 | +- The Elixir Trademark Policy, as documented at |
| 35 | + [LicenseRef-elixir-trademark-policy](./LICENSES/LicenseRef-elixir-trademark-policy.txt) |
| 36 | + |
| 37 | +These licenses are considered acceptable for any files or code that form part of |
| 38 | +an Elixir repository. If a contribution requires a different license, it must |
| 39 | +either be rejected or prompt an update to this policy. |
| 40 | + |
| 41 | +## 4. Contributing to Elixir Projects |
| 42 | + |
| 43 | +Any code contributed to Elixir repositories must fall under one of the accepted |
| 44 | +licenses (Apache-2.0, Unicode, or Elixir Trademark). Contributions under any |
| 45 | +other license will be rejected unless this policy is formally revised to include |
| 46 | +that license. All files except those specifically exempted (e.g., certain test |
| 47 | +fixture files) must contain SPDX license and copyright headers |
| 48 | +(`SPDX-License-Identifier` and `SPDX-FileCopyrightText`). If a file qualifies |
| 49 | +for an exception, this must be configured in the ORT (Open Source Review Toolkit) |
| 50 | +configuration and undergo review. |
| 51 | + |
| 52 | +Contributions must not introduce executable binary files into the codebase. |
| 53 | + |
| 54 | +Every Elixir project within the organization will have an automated GitHub |
| 55 | +Action to enforce these rules. This mechanism aids in detecting non-compliant |
| 56 | +licenses or files early in the review process. |
| 57 | + |
| 58 | +## 5. Preservation of Copyright and License Information |
| 59 | + |
| 60 | +Any third-party code incorporated into Elixir projects must retain original |
| 61 | +copyright and license headers. If no such headers exist in the source, they must |
| 62 | +be added. This practice ensures that original authors receive proper credit and |
| 63 | +that the licensing lineage is preserved. |
| 64 | + |
| 65 | +## 6. Objectives |
| 66 | + |
| 67 | +The Elixir project aims to promote a culture of responsible open source usage. |
| 68 | +Specifically, our objectives include: |
| 69 | + |
| 70 | +### 6.1 Clearly Define and Communicate Licensing & Compliance Policies |
| 71 | + |
| 72 | +We will identify and document all third-party dependencies, ensure that license |
| 73 | +information is communicated clearly, and maintain a project-wide license policy |
| 74 | +or compliance handbook. |
| 75 | + |
| 76 | +### 6.2 Implement Clear Processes for Reviewing Contributions |
| 77 | + |
| 78 | +We will provide well-defined contribution guidelines. We implement the |
| 79 | +Developer Certificate of Origin (DCO) for additional clarity regarding |
| 80 | +contributor rights and obligations. |
| 81 | + |
| 82 | +### 6.3 Track and Audit Third-Party Code Usage |
| 83 | + |
| 84 | +All projects will implement a Software Bill of Materials (SBoM) strategy and |
| 85 | +regularly verify license compliance for direct and transitive dependencies. |
| 86 | + |
| 87 | +### 6.4 Monitor and Continuously Improve Open Source Compliance |
| 88 | + |
| 89 | +We will conduct periodic internal audits, integrate compliance checks into |
| 90 | +continuous integration (CI/CD) pipelines, and regularly review and refine these |
| 91 | +objectives to align with best practices. |
| 92 | + |
| 93 | +## 7. Roles and Responsibilities |
| 94 | + |
| 95 | +### 7.1 Core Team Member |
| 96 | + |
| 97 | +Core Team Members are responsible for being familiar with this policy and |
| 98 | +ensuring it is consistently enforced. They must demonstrate sufficient |
| 99 | +competencies to understand the policy requirements and must reject or request |
| 100 | +changes to any pull requests that violate these standards. |
| 101 | + |
| 102 | +### 7.2 Contributor |
| 103 | + |
| 104 | +Contributors are expected to follow this policy when submitting code. If a |
| 105 | +contributor submits a pull request that does not comply with the policy |
| 106 | +(e.g., introduces a disallowed license), Core Team Members have the authority to |
| 107 | +reject it or request changes. No special competencies are required for |
| 108 | +contributors beyond awareness and adherence to the policy. |
| 109 | + |
| 110 | +### 7.3 EEF CISO |
| 111 | + |
| 112 | +The CISO designated by the Erlang Ecosystem Foundation (EEF) provides oversight |
| 113 | +on queries and guidance regarding open source compliance or legal matters for |
| 114 | +Elixir. The CISO is responsible for checking ongoing compliance with the policy, |
| 115 | +escalating potential violations to the Core Team, and involving legal counsel if |
| 116 | +necessary. This role does not require legal expertise but does involve |
| 117 | +initiating legal or community discussions when needed. |
| 118 | + |
| 119 | +## 8. Implications of Failing to Follow the Program Requirements |
| 120 | + |
| 121 | +If a violation of this policy is identified, the Elixir Core Team will undertake |
| 122 | +the following actions: |
| 123 | + |
| 124 | +## 8.1 Review the Codebase for Additional Violations |
| 125 | + |
| 126 | +We will investigate the codebase thoroughly to detect any similar instances of |
| 127 | +non-compliance. |
| 128 | + |
| 129 | +## 8.2 Review and Update the Process or Policy |
| 130 | + |
| 131 | +In collaboration with the EEF CISO, the Elixir Core Team will assess the policy |
| 132 | +and our internal workflows, making any necessary clarifications or amendments to |
| 133 | +reduce the likelihood of recurrence. |
| 134 | + |
| 135 | +## 8.3 Notify and Train Core Team Members |
| 136 | + |
| 137 | +We will ensure that all active Core Team Members are informed about any policy |
| 138 | +changes and understand how to apply them in everyday development. |
| 139 | + |
| 140 | +## 8.4 Remove or Replace the Offending Code |
| 141 | + |
| 142 | +If required, we will remove or replace the non-compliant code. |
| 143 | + |
| 144 | +## 9. Contact |
| 145 | + |
| 146 | +The project maintains a private mailing list at |
| 147 | +[[email protected]](mailto:[email protected]) for handling licensing |
| 148 | +and policy-related queries. Email is the preferred communication channel, and |
| 149 | +the EEF CISO will be included on this list to provide assistance and ensure |
| 150 | +timely responses. While solutions may take longer to implement, the project |
| 151 | +commits to acknowledging all queries within five business days. |
| 152 | + |
| 153 | +## 10. External Contributions of Core Team Members |
| 154 | + |
| 155 | +When Core Team Members contribute to repositories outside Elixir, they do so in |
| 156 | +a personal capacity or via their employer. They will not act as official |
| 157 | +representatives of the Elixir team in those external contexts. |
| 158 | + |
| 159 | +## 11. Policy Review and Amendments |
| 160 | + |
| 161 | +This policy will be revisited annually to address new concerns, accommodate |
| 162 | +changes in community standards, or adjust to emerging legal or technical |
| 163 | +requirements. Proposed amendments must be reviewed by the Core Team and, if |
| 164 | +necessary, by the EEF CISO. Any significant changes will be communicated to |
| 165 | +contributors and made publicly available. |
| 166 | + |
| 167 | +*Effective Date: 2025-02-20* |
| 168 | +*Last Reviewed: 2025-02-20* |
0 commit comments