Azure / appcat-rulesets

Repository for maintaining Rulesets for Windup
Eclipse Public License 2.0
6 stars 10 forks source link

Create rule "External worker process" #10

Closed agoncal closed 1 year ago

agoncal commented 1 year ago

While it is possible to launch new worker processes in either Azure App Service or Azure Kubernetes Service environments, it is an anti-pattern to do so. Both expect to have a single process running and launching others can make it difficult to manage and debug the applications. Expecting another process or service to already be running in parallel with the service will not work in Azure App Service and is an anti-pattern in Kubernetes.

Such metadata in .NET apps can be detected by identifying usage of the System.Diagnostics.Process class.

### PRs
- [ ] https://github.com/windup/windup-rulesets/pull/995
- [ ] https://github.com/windup/windup-rulesets/pull/967
- [ ] https://github.com/Azure/windup-rulesets/pull/90
- [ ] https://github.com/Azure/windup-rulesets/pull/72
showpune commented 1 year ago

Customer use ···java Process p = Runtime.getRuntime().exec(exec); ···java to execute some worker process

agoncal commented 1 year ago

I reopened it because I realized that there is a pending PR on the WindUp side: https://github.com/windup/windup-rulesets/pull/995