Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create rule "Windows services or other local OS services" #8

Closed
2 tasks done
agoncal opened this issue May 19, 2023 · 6 comments
Closed
2 tasks done

Create rule "Windows services or other local OS services" #8

agoncal opened this issue May 19, 2023 · 6 comments
Assignees
Labels
Milestone

Comments

@agoncal
Copy link
Member

agoncal commented May 19, 2023

It is a best practice for applications running in Azure App Service or Azure Kubernetes Service to be self-contained and not depend on OS-level services. Service Control Manager access is disallowed in the App Service sandbox. Some users install custom Windows services which is not possible in Azure App Service environments and not recommended in containers. Although Java apps are unlikely to interact with Windows services, they should generally not interact with local Linux services.

For .NET, identifying this metadata is possible by looking for use of the System.ServiceProcess namespace.

PRs

Preview Give feedback
  1. rule
    agoncal
@KaiqianYang
Copy link
Collaborator

@brunoborges
Copy link
Member

brunoborges commented Jun 30, 2023

I believe this rule is about the Java application communicating with an existing process in running in the background, on the OS. This can be done with things like IIOP or localhost HTTP (which is covered in a different ruleset). You may want to look at IIOP and/or RMI. Another solution is D-BUS.

This is substantially different than issue #10 where it talks about launching an external process.

@agoncal
Copy link
Member Author

agoncal commented Jul 3, 2023

We have the following rules already:

For CORBA, shall we just look for org.omg.CORBA, javax.rmi.CORBA or PortableRemoteObject ?

For DBus, would we just look into https://www.freedesktop.org/wiki/Software/dbus ? I don't know if this is the right place

@brunoborges
Copy link
Member

We can look for CORBA and then close this issue. DBus for after the MVP.

@agoncal
Copy link
Member Author

agoncal commented Jul 12, 2023

CORBA PR is on its way: windup/windup-rulesets#1008

I've created a DBus issue for after the MVP: #113

@brunoborges brunoborges moved this from Todo to In progress in AppCAT for Java (WindUp) Jul 12, 2023
@agoncal agoncal closed this as completed Jul 13, 2023
@github-project-automation github-project-automation bot moved this from In progress to Done in AppCAT for Java (WindUp) Jul 13, 2023
@agoncal agoncal self-assigned this Jul 13, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
Development

No branches or pull requests

4 participants