jenkins-infra / repository-permissions-updater

Artifactory permissions synchronization tool and data set
77 stars 1.03k forks source link

Sofy Upload Jenkins Plugin #3637

Closed SOFYDEVELOPER closed 7 months ago

SOFYDEVELOPER commented 9 months ago

Repository URL

https://github.com/SOFYDEVELOPER/sofy-app-upload-jenkins-plugin

New Repository Name

sofy-app-upload-jenkins-plugin

Description

The plugin in question is designed for customer interaction and facilitates the seamless uploading of their builds to our platform, Sofy.ai. This customer-facing tool serves as a valuable resource, streamlining the process of submitting their software builds to enhance the overall user experience on our platform. Through this plugin, customers can efficiently contribute their builds, fostering a more collaborative and user-friendly environment on Sofy.ai.

GitHub users to have commit permission

@Ayeshasaifsofy @SOFYDEVELOPER

Jenkins project users to have release permission

sofydevelopers

Issue tracker

GitHub issues

jenkins-cert-app commented 9 months ago

Security audit, information and commands

The security team is auditing all the hosting requests, to ensure a better security by default.

This message informs you that a Jenkins Security Scan was triggered on your repository. It takes ~10 minutes to complete.

Commands The bot will parse all comments, and it will check if any line start with a command. Security team only:
  • /audit-ok => the audit is complete, the hosting can continue :tada:.
  • /audit-skip => the audit is not necessary, the hosting can continue :tada:.
  • /audit-findings => the audit reveals some issues that require corrections :pencil2:.
Anyone:
  • /request-security-scan => the findings from the Jenkins Security Scan were corrected, this command will re-scan your repository :mag:.
  • /audit-review => the findings from the audit were corrected, this command will ping the security team to review the findings :eyes:. It's only applicable when the previous audit required changes.
Only one command can be requested per comment.

(automatically generated message, version: 1.26.21)

github-actions[bot] commented 9 months ago

Hello from your friendly Jenkins Hosting Checker

It appears you have some issues with your hosting request. Please see the list below and correct all issues marked Required. Your hosting request will not be approved until these issues are corrected. Issues marked with Warning or Info are just recommendations and will not stall the hosting process.

You can re-trigger a check by editing your hosting request or by commenting /hosting re-check

jenkins-cert-app commented 9 months ago

The Jenkins Security Scan discovered 2 finding(s) :mag:. For each of them, either apply the recommended correction, suppress the warning or provide a justification.

Once you're done, either re-run the scan with /request-security-scan or request the Security team to review your justifications with /audit-review.


Stapler: Missing POST/RequirePOST annotation

You can find detailed information about this finding here.

TestMobileAppWithSofy.java#174 ``` Potential CSRF vulnerability: If DescriptorImpl#doCheckAuthTokenValidity connects to user-specified URLs, modifies state, or is expensive to run, it should be annotated with @POST or @RequirePOST ```

Jenkins: Plaintext password storage

You can find detailed information about this finding here.

TestMobileAppWithSofy.java#47 ``` Field should be reviewed whether it stores a password and is serialized to disk: apiToken ```
Wadeck commented 9 months ago

👋 Related to the scan, some additional information:

mawinter69 commented 9 months ago

All the plugin does is uploading a file to a hard coded url. In a Jenkins pipeline this can be easily achieved with the https://plugins.jenkins.io/http_request/ plugin. Put some glue code in a pipeline library and you have an easy to use step in your pipeline. I assume you plan to provide some sort of feedback about the result of the scan.

mawinter69 commented 9 months ago

This looks pretty much identical to the existing plugin https://plugins.jenkins.io/sofy-ai/

SOFYDEVELOPER commented 9 months ago

This looks pretty much identical to the existing plugin https://plugins.jenkins.io/sofy-ai/

@mawinter69 Unfortunately, due to unforeseen circumstances, we have lost access to our previous account. In light of this, we have setup a new account to resume our activities. Therefore, the need for a new Jenkins plugin. We won't be using our previous plugin anymore. Currently we are working on the changes mentioned above.

NotMyFault commented 8 months ago

we have lost access to our previous account.

We can surely grant you access to the existing plugin, there's no need for an additional plugin.

SOFYDEVELOPER commented 8 months ago

@NotMyFault Can you please elaborate how? As our previous account is not to be considered but only the new account (SOFYDEVELOPERS). Your help would be appreciated.

NotMyFault commented 8 months ago

We can grant you access to the existing plugin while you propose your changes as pull request, which we will review.

If all changes made are according to our requirements for plugins, we can grant you release access.

NotMyFault commented 8 months ago

I've invited both users mentioned in the initial issue body to https://github.com/jenkinsci/upload-build-to-sofy-plugin.

Please file your proposed plugin as PR to the existing plugin and link it here for a review. Once reviewed, we will grant you release permission.

NotMyFault commented 7 months ago

I'll go ahead and close the request given you have been granted access to the existing resource.