-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spring Boot Admin Integration (#3018)
* initial commit Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * add httpclient versions Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * use jakarta packages Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * adapt spring security Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix mail client Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * disable odata module for now Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * more adaptations Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * disable odata Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * more adaptations Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * use newer interface Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * minor fixes Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * remove plugin versions Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix EncryptionBeanPostProcessor Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * remove dep versions Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * disable odata Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * camel 3.21.2 Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix activemq dependencies version Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * adapt Camel Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * adapt tests Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * add synchronized Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * dummy KeycloakSecurityConfiguration Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix integration tests Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix javadoc plugin issue Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * use migrated olingo dependency Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * Update README.md * fix startup errors Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * centralized plugins management Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * maven compiler plugin centralized config Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * maven-compiler-plugin in parent Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * centralized formatter-maven-plugin Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * set fixed plugins version Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * improve logging Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * use olingo from the codbex fork repo https://github.com/codbex/olingo-odata2 Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix javadoc error Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * integration tests on ubuntu as well * Update pull-request.yml * remove provided scopes Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * add keycloak conifugations Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * rebase Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * remove dependencyManagement Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix javadoc generation Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * native images support Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix OData Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * javax replacements javax.annotation.Nullable javax.xml.soap javax.servlet Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * pom cleanup Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix cxf conflict Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * Spring Boot Admin Integration * adapt to the changes from master integration-tests -> tests Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * install Spring Boot Admin using profile Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * exclude SpringBootAdminIT from the tests by default Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * add spring boot job to workflows Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * adapt SpringBootAdminIT Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix spring boot admin profile Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix spring boot itests Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix spring admin versions Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix merge issues Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix more merge issues Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * remove versions Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * rename role Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * protect actuator endpoints Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix integration tests execution Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * clean context after SecurityIT Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * @DirtiesContext on parent level Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> * fix merge issues Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com> --------- Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com>
- Loading branch information
1 parent
02631c8
commit 9ec4efa
Showing
21 changed files
with
418 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
build/application/src/main/resources/application-spring-boot-admin.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
spring.boot.admin.context-path=spring-admin | ||
spring.boot.admin.ui.title=${spring.application.name} Admin | ||
spring.boot.admin.ui.brand=<img src="/services/web/resources/images/dirigible.svg"><span>Eclipse Dirigible Admin</span> | ||
|
||
spring.boot.admin.client.url=http://localhost:${server.port}/spring-admin | ||
spring.boot.admin.client.username=${DIRIGIBLE_SPRING_ADMIN_USERNAME:admin} | ||
spring.boot.admin.client.password=${DIRIGIBLE_SPRING_ADMIN_PASSWORD:admin} | ||
spring.boot.admin.client.instance.metadata.user.name=${spring.boot.admin.client.username} | ||
spring.boot.admin.client.instance.metadata.user.password=${spring.boot.admin.client.password} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...e-base/src/main/java/org/eclipse/dirigible/components/base/http/access/DirigibleRole.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (c) 2023 SAP SE or an SAP affiliate company and Eclipse Dirigible contributors | ||
* | ||
* All rights reserved. This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Eclipse Dirigible | ||
* contributors SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.eclipse.dirigible.components.base.http.access; | ||
|
||
public enum DirigibleRole { | ||
|
||
DEVELOPER(RoleNames.DEVELOPER), OPERATOR(RoleNames.OPERATOR); | ||
|
||
private final String roleName; | ||
|
||
DirigibleRole(String roleName) { | ||
this.roleName = roleName; | ||
} | ||
|
||
public String getName() { | ||
return roleName; | ||
} | ||
|
||
@SuppressWarnings("hiding") | ||
public static class RoleNames { | ||
public static final String OPERATOR = "Operator"; | ||
public static final String DEVELOPER = "Developer"; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.