| 1 |
# Environment Dependencies Policy |
| 2 |
|
| 3 |
## Purpose |
| 4 |
|
| 5 |
This policy describes how Archivista maintainers consume third-party packages. |
| 6 |
|
| 7 |
## Scope |
| 8 |
|
| 9 |
This policy applies to all Archivista maintainers and all third-party packages used in the Archivista project. |
| 10 |
|
| 11 |
## Policy |
| 12 |
|
| 13 |
Archivista maintainers must follow these guidelines when consuming third-party packages: |
| 14 |
|
| 15 |
- Only use third-party packages that are necessary for the functionality of Archivista. |
| 16 |
- Use the latest version of all third-party packages whenever possible. |
| 17 |
- Avoid using third-party packages that are known to have security vulnerabilities. |
| 18 |
- Pin all third-party packages to specific versions in the Archivista codebase. |
| 19 |
- Use a dependency management tool, such as Go modules, to manage third-party dependencies. |
| 20 |
|
| 21 |
## Procedure |
| 22 |
|
| 23 |
When adding a new third-party package to Archivista, maintainers must follow these steps: |
| 24 |
|
| 25 |
1. Evaluate the need for the package. Is it necessary for the functionality of Archivista? |
| 26 |
2. Research the package. Is it well-maintained? Does it have a good reputation? |
| 27 |
3. Choose a version of the package. Use the latest version whenever possible. |
| 28 |
4. Pin the package to the specific version in the Archivista codebase. |
| 29 |
5. Update the Archivista documentation to reflect the new dependency. |
| 30 |
|
| 31 |
## Enforcement |
| 32 |
|
| 33 |
This policy is enforced by the Archivista maintainers. |
| 34 |
Maintainers are expected to review each other's code changes to ensure that they comply with this policy. |
| 35 |
|
| 36 |
## Exceptions |
| 37 |
|
| 38 |
Exceptions to this policy may be granted by the Archivista project lead on a case-by-case basis. |
| 39 |
|
| 40 |
## Credits |
| 41 |
|
| 42 |
This policy was adapted from the [Kubescape Community](https://github.com/kubescape/kubescape/blob/master/docs/environment-dependencies-policy.md) |