Difference between spring-boot-admin server and client - spring-boot

There are no much resources on this topic so thought to post it. Also I myself am trying to understand the different. Previously we just had only spring-boot application. So can anybody explain the difference.

Spring boot admin is nice monitoring dashboard for spring boot application. To feed data to this dashboard spring boot admin provide two approaches:
1) Using client library: client libary will send data to spring boot admin dashboard.
2) Use service discovery (eureka)

Related

Access to Spring Boot Application logs

Is there a way to access the Spring Boot Application logs through the REST webservice? I am running my Spring Boot microservices in Openshift, but dont have access to the Admin console, so I am wondering, if I can easily access the logs or copy them per demand somewhere.
I'm not interested in advices such configure ELK, etc, because I am not the owner of the infrastructure, just the microservices.
Many thanks
Finally I solved as follows. Store the logs into the file, connect microservice to SBA and check the logs there.
logging:
file: /log/application.log
And then use Spring Boot Admin, which allows you to see the logs. Hope it helps somebody.

Use single spring boot application as a Spring boot admin and client both

We have one application which is running on the Spring boot, We don't like to add a new application in the environment to manage this application, to do so we like to add spring boot admin feature to the same application. I tried that and able to see the spring admin screen but the client is not getting loaded.
I don't know this is good idea or not.
Please provide your suggestion.
I can see it is working both spring boot admin sever and client both application in one.
But I dont know this is good idea or not. Please provide your inputs
The Spring Boot Admin is invented for monitoring multiple services. In my opinion you should separate them so everyone will has it's job to follow the single responsibility principle. With separation when your application will fail the Spring Boot Admin will catch logs and maybe some additional data, if they are together you won't know what might happen.

How to secure web ui in spark embedded with spring boot application?

I have a spring boot microservices application, some services include spark (embedded). Actually, I secured all the application and I need to secure the access to Spark Web UI. I checked the spark doc and other resources and they say that I should implement a Filter but I don't know if this is the right way and for my case.
The main objective is to limit access to the ui interface. I already added authentication using Kerberos, ldap and jwt so i would like to use same process with spark and make access using ldap.
Any other suggestion are welcome.
Thank you in advance.

Interaction between api gateway (Zuul) and UAA server (Spring OAuth2) with Spring Boot 2.0

I'm trying to build a system with an gateway server (Zuul), and UAA server (Spring OAuth2)
There's lots of examples but they are all used with Spring Boot 1 (1.5.X?). When I tried to migrate to Spring Boot 2, lots of things got moved or removed (in the auto-configure package).
My current understanding is that the gateway server will acts as an oauth2 client with sso. Hope someone can point me to the right direction.
Thanks.

How to configure Spring Boot Tomcat Basic Auth together with Spring Security?

I'm currently trying to make a Spring Boot app. I've managed to create successfully user authentication using LDAP and custom logic.
However, I'm trying to add another layer of security on top of that, something like "htaccess" to prevent unauthorized users from even seeing the web page (client requirement), as well as stop Google from indexing the page. This can be a single predefined user (doesn't need to be connected to ldap auth).
I've read about configuring the tomcat realm, tomcat-users etc. but since it's Spring Boot app with embedded tomcat, I can't find a place to successfully configure it.
Does anyone have any idea how to create such setup?

Resources