Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Critical
-
Resolution: Fixed
-
Component/s: hp-application-automation-tools-plugin
-
Labels:None
-
Similar Issues:
Description
We are currently evaluating the use of the hp-application-automation-tools-plugin in our setup to better integrate the mf tools with our established CI/CD pipeline. The huge amount of functionality packed into one plugin makes it hared to see the side effects.
After installation of the plugin we observed that internal data about the Jenkins installation and Job names is exposed at the Url: https://<jenkinsRoot>/userContent/nga/logs/ to users with minimum permissions on the Jenkins install. The data includes Jobs that are not related to the mf integration at all.
/userContent/nga/logs/nga.log
26/05/2020 15:47:04,102 INFO [EventsServiceWorker-155 ] EventsServiceImpl : [http://foo.example.com:8080?p=1001] sending [sbs-admin/job/sbs-admin-infra-bitbucket/job/sbs-infra/job/sbs-jenkins-git-backup:7781:STARTED, Checkout:7781:STARTED, Checkout:7781:FINISHED, Backup to GIT:7781:STARTED, Backup to GIT:7781:FINISHED, sbs-admin/job/sbs-admin-infra-bitbucket/job/sbs-infra/job/sbs-jenkins-git-backup:7781:FINISHED] event/s ... 26/05/2020 15:48:14,149 INFO [EventsServiceWorker-155 ] EventsServiceImpl : [http://foo.example.com:8080?p=1001] sending [community/job/sbs-fat-spring-pipeline/job/feature%2Fbitbucket-jenkins-plugin-testing:1:STARTED] event/s ... 26/05/2020 15:48:16,206 INFO [EventsServiceWorker-155 ] EventsServiceImpl : [http://foo.example.com:8080?p=1001] sending [checkout:1:STARTED] event/s ... 26/05/2020 15:48:25,271 INFO [EventsServiceWorker-155 ] EventsServiceImpl : [http://foo.example.com:8080?p=1001] sending [checkout:1:FINISHED, build:1:STARTED] event/s ... 26/05/2020 15:49:44,466 INFO [EventsServiceWorker-155 ] EventsServiceImpl : [http://foo.example.com:8080?p=1001] sending [build:1:FINISHED, static analysis:1:STARTED] event/s ... 26/05/2020 15:51:03,569 INFO [itbucket/sbs-infra/sbs-jenkins-git-backup #15509]]] BuildLogHelper : enqueued build 'sbs-admin/job/sbs-admin-bitbucket/job/sbs-infra/job/sbs-jenkins-git-backup #15509' for log submission 26/05/2020 15:51:03,579 WARN [itbucket/sbs-infra/sbs-jenkins-git-backup #15509]]] VulnerabilitiesWorkflowListener : No Security Scan integration configuration was found sbs-admin/sbs-admin-bitbucket/sbs-infra/sbs-jenkins-git-backup #15509 26/05/2020 15:51:03,939 INFO [BuildLogsPushWorker-156 ] LogsServiceImpl : [http://foo.example.com:8080?p=1001] log of 'sbs-admin/job/sbs-admin-bitbucket/job/sbs-infra/job/sbs-jenkins-git-backup #15509', root job : sbs-admin/job/sbs-admin-bitbucket/job/sbs-infra/job/sbs-jenkins-git-backup, no interested workspace is found 26/05/2020 15:51:04,436 INFO [EventsServiceWorker-155 ] EventsServiceImpl : [http://foo.example.com:8080?p=1001] sending [sbs-admin/job/sbs-admin-bitbucket/job/sbs-infra/job/sbs-jenkins-git-backup:15509:STARTED, Checkout:15509:STARTED, Checkout:15509:FINISHED, Backup to GIT:15509:STARTED, Backup to GIT:15509:FINISHED, sbs-admin/job/sbs-admin-bitbucket/job/sbs-infra/job/sbs-jenkins-git-backup:15509:FINISHED] event/s ... 26/05/2020 15:51:50,025 INFO [EventsServiceWorker-155 ] EventsServiceImpl : [http://foo.example.com:8080?p=1001] sending [static analysis:1:FINISHED, create docker image:1:STARTED] event/s ...
This does not feel right at other places this information is well hidden for users without permission. Is this an error in our setup?
Hi
Your setup is Ok.
The userContent folder is used for saving log files for Octane part of the plugin.
This place really accessible to users with minimum permissions on the Jenkins , but logs contains only job names and no more. The log does not contains sensitive information like secrets,passwords,userNames.
The accessibility of this path is very useful in case when plugin support is required, its very easy to get logs without need of additional permissions to physical machine.
In next version (6.3) of plugin , we can supply possibility to configure “plugin log place” in jenkins.xml by adding -DoctaneAllowedStorage=myNewPlace in <arguments> element
Thanks
Radi