feat(project): add cve_allowlist_expires_at to harbor_project (#658)
Fixes #596
Adds an optional
cve_allowlist_expires_atattribute toharbor_project. It is the number of seconds since epoch at which the project CVE allowlist expires, the same format thatharbor_config_securityalready uses forexpires_at. When it is not set the allowlist does not expire, so existing configurations behave as before. The value is only sent whencve_allowlistis non-empty and is read back from the project’scve_allowlist.expires_at.
expires_atis no longer omitted from the request body when it is 0, so removing the attribute clears an expiry that was set earlier.Tests: added a unit test for the request body (
go test ./provider -run TestProjectBodyCveAllowlistExpiresAt). I did not run the acceptance tests because there is no Harbor instance available here.
Signed-off-by: Srinivas Chippagiri cvas22@gmail.com Signed-off-by: SNCF - Florian BLAMPEY florian.blampey@sncf.fr Co-authored-by: SNCF - Florian BLAMPEY florian.blampey@sncf.fr
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Terraform Harbor Provider
Configure and manage Harbor with Terraform and Pulumi.
Usage
See the docs for usage information.
Compatibility and Acceptance Tests
Our acceptance tests are run against specific versions of Harbor and Terraform to ensure compatibility. For the latest version of the provider, we ran the tests against the following versions of Harbor and Terraform:
Harbor Versions
2.132.142.15Terraform Versions
1.121.131.14Please note that while we strive to maintain compatibility with these versions, we recommend always using the latest versions of Harbor and Terraform for the best experience.
Contributing
Everyone is welcome to contribute to this repository. Feel free to raise issues or to submit Pull Requests.
See Contributing guide lines here
Note
This Harbor Terrafrom provider was initially developed by BESTSELLER.
License