cloudfoundry/silk-release

No Spring Boot metric/actuator info for app with internal domain (C2C)

dsyer opened this issue · 3 comments

dsyer commented

Probably similar to #14. I have a Spring Boot app that is deployed as a backend service. It shows up in apps manager, but there are no Spring Boot features (thread dumps, info endpoint, log level setting etc.).

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/166382618

The labels on this github issue will be updated when the story is started.

Hey @dsyer
We were able to reproduce this issue for validation and found that Apps Manger currently has no ability to talk to internal routes.

This is because your browser is the one that makes downstream calls to your application rather than an Apps Manager backend hosted on CF. You can find out more with this link.

Because it is not a CF app making the request but rather your browser, you cannot setup a network policy to allow browser traffic to talk to the internal route.

We see two ways forward.

  1. workaround: always create an external route
  2. feature work: apps manager is the one who sends the request, rather than the browser. Then a network policy between the apps manager app and the backend app could allow traffic to the internal route. This would be a non-trivial amount of work to get such a feature running as Apps Manager doesn't actually have a stateful backend. cc @sweinstein22 @pivotal-mikegresham

Steps to reproduce (for future readers):

  1. Deploy a Spring Boot app with the actuator to CF (we used spring-music) with an external route
  2. Make sure to follow this checklist so that Apps Manager can talk to spring-boot actuator
  3. Map any internal route to your application
  4. See that Apps manager contains the "Actuator tabs"
  5. Unmap the external route so that only an internal route exists
  6. See that Apps manager no longer contains the "Actuator tabs"

cc @ameowlia @adobley

Closing this issue due to inactivity. If this is still a desired feature, please consider reaching out to your Pivotal Support representative!

Note: Apps Manager is a pivotal based(proprietary) product