Skip to content

How to add a suffix to output files #1137

@Spritekin

Description

@Spritekin

Your Question

I got two scheduled scans to two different sites which appear in the cluster as:

NAME                        TYPE            INTERVAL   FINDINGS
zap-scan-earnd-admin        zap-full-scan   168h       19
zap-scan-egw-adminconsole   zap-full-scan   168h       21

The scans generate pods like these ones.

scan-zap-scan-earnd-admin-1650962558-p77qz-dhn6x
scan-zap-scan-egw-adminconsole-1650962558-82c24-m6zks 

However, when the scan results are written to the S3 bucket, we get folders like:

scan-202639fa-0083-42b0-a401-91b167c44370/
scan-da96b881-9b2f-4b9c-93da-afe3d315ce5c/

There is no way to identify which one is the result of a particular scan or even from a particular run.

What I would like to see is the folders in S3 like this:

zap-scan-earnd-admin-2022-04-03-12-35/
zap-scan-earnd-admin-2022-04-10-12-35/
zap-scan-egw-adminconsole-2022-04-03-12-35/
zap-scan-egw-adminconsole-2022-04-10-12-35/

That is, I would like to see the folder named relative to the scan name and the date/time when it was run.

Is there a way to do this?

Thanks for your help.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions