You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi 👋
again thanks for the feedback, it always very helpful to hear where the pain points are 🙏
Short answer: No, it currently not possible to change the naming scheme for the result files in the S3 bucket.
The names are deterministic though, they are based on the scans uuid, not the name.
You can list the scans uuid together with the name by running kubectl get scans -o wide
You can also get full urls to directly download the results from by taking a look at the scans status.
We've choosen the uuid for the file name in s3 as they are (nearly) guaranteed to be unique, as to avoid problems where a cleanup of previous results have failed and old results would still be present under the same name. (As the scan name can be repeated for non ScheduledScans, also for scans in separate namespaces). This is a edge case scenario, but one we'd rather not have enabled by default.
It would be possible thought to have this be configurable by allowing the users to pass in a golang template string which could then be used to generate the S3 path. The default would then be something like
scan-{{ .Scan.Metadata.UID }}/{{ .Filename }}
and to achieve the structure you've proposed you could pass in something the follwing template:
{{ .Scan.Metadata.Name }}/{{ .Filename }}
I'll convert this into a enhancment ticket, as this is somethign which we could add as a feature.
Activity
J12934 commentedon Apr 26, 2022
Hi 👋
again thanks for the feedback, it always very helpful to hear where the pain points are 🙏
Short answer: No, it currently not possible to change the naming scheme for the result files in the S3 bucket.
The names are deterministic though, they are based on the scans uuid, not the name.
You can list the scans uuid together with the name by running
kubectl get scans -o wideYou can also get full urls to directly download the results from by taking a look at the scans status.
We've choosen the uuid for the file name in s3 as they are (nearly) guaranteed to be unique, as to avoid problems where a cleanup of previous results have failed and old results would still be present under the same name. (As the scan name can be repeated for non ScheduledScans, also for scans in separate namespaces). This is a edge case scenario, but one we'd rather not have enabled by default.
It would be possible thought to have this be configurable by allowing the users to pass in a golang template string which could then be used to generate the S3 path. The default would then be something like
and to achieve the structure you've proposed you could pass in something the follwing template:
{{ .Scan.Metadata.Name }}/{{ .Filename }}I'll convert this into a enhancment ticket, as this is somethign which we could add as a feature.