Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xray report resources don't support import #157

Closed
neatcoder opened this issue Jan 17, 2024 · 4 comments · Fixed by #160
Closed

Xray report resources don't support import #157

neatcoder opened this issue Jan 17, 2024 · 4 comments · Fixed by #160
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@neatcoder
Copy link

Describe the bug
Xray report resources, namely, xray_vulnerabilities_report, xray_violations_report, xray_licenses_report, don't support import opposed to the documentation that claims otherwise.

Requirements for and issue

Planning failed. Terraform encountered an error while generating this plan.

│ Error: resource xray_vulnerabilities_report doesn't support import
│
│
Planning failed. Terraform encountered an error while generating this plan.

│ Error: resource xray_violations_report doesn't support import
│
│
Planning failed. Terraform encountered an error while generating this plan.

│ Error: resource xray_licenses_report doesn't support import
│
│

Jfrog artifactory version: 7.77.1
XRay version: 3.86.10
Terraform version: 1.5.5

Expected behavior
Resources should support import.

@neatcoder neatcoder added the bug Something isn't working label Jan 17, 2024
@alexhung
Copy link
Member

@neatcoder Thanks for the report. Looks like a bug from first glance. I'll add this to our plan to investigate.

@alexhung
Copy link
Member

alexhung commented Jan 22, 2024

@neatcoder After familiarize myself with this part of the code (haven't touched it in many months), I understand that these report resources do not support import. So the documentations are incorrect and I'll be removing the "Import" section.

@alexhung alexhung added documentation Improvements or additions to documentation and removed bug Something isn't working labels Jan 22, 2024
alexhung added a commit that referenced this issue Jan 22, 2024
@neatcoder
Copy link
Author

Any plans for extending the import support to these resources in future?

@alexhung
Copy link
Member

alexhung commented Jan 31, 2024

@neatcoder Before we can add import support to the provider, the Xray API must support getting all the report generation detail. AFAIK, there's no plan from Xray team to add this support. You should contact your JFrog support team to make this feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants