Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Make rule spring boot rule available for spring apps #918

Merged
merged 6 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions rules/rules-reviewed/azure/azure-file-system.windup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
</dependencies>
<sourceTechnology id="eap" versionRange="[7,8)" />
<sourceTechnology id="springboot"/>
<targetTechnology id="azure-spring-apps"/>
<targetTechnology id="azure-appservice"/>
<targetTechnology id="azure-aks"/>
<targetTechnology id="azure-container-apps"/>
Expand All @@ -36,7 +37,7 @@
Any usage of the file system on the application will require reconfiguration or, in rare cases, architectural changes.
]]>
</message>
<link title="Java APIs found in the application to read/write from the file system" href="https://docs.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-app-service#determine-whether-and-how-the-file-system-is-used"/>
<link title="Java APIs found in the application to read/write from the file system" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-cloud-to-azure-spring-apps?pivots=sc-standard-tier#determine-whether-and-how-the-file-system-is-used"/>
<link title="Azure Spring Boot Starter for Azure Storage" href="https://search.maven.org/artifact/com.azure.spring/azure-spring-boot-starter-storage"/>
</hint>
</perform>
Expand All @@ -57,7 +58,7 @@
Any usage of the file system on the application will require reconfiguration or, in rare cases, architectural changes.
]]>
</message>
<link title="Relative path found in the application" href="https://docs.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-app-service#determine-whether-and-how-the-file-system-is-used"/>
<link title="Relative path found in the application" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-cloud-to-azure-spring-apps?pivots=sc-standard-tier#determine-whether-and-how-the-file-system-is-used"/>
</hint>
</perform>
<where param="extensions">
Expand All @@ -80,7 +81,7 @@
Any usage of the file system on the application will require reconfiguration or, in rare cases, architectural changes.
]]>
</message>
<link title="Home path found in the application" href="https://docs.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-app-service#determine-whether-and-how-the-file-system-is-used"/>
<link title="Home path found in the application" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-cloud-to-azure-spring-apps?pivots=sc-standard-tier#determine-whether-and-how-the-file-system-is-used"/>
</hint>
</perform>
<where param="extensions">
Expand Down
3 changes: 2 additions & 1 deletion rules/rules-reviewed/azure/azure-password.windup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
</dependencies>
<sourceTechnology id="springboot"/>
<sourceTechnology id="eap" versionRange="[7,8)" />
<targetTechnology id="azure-spring-apps"/>
<targetTechnology id="azure-appservice"/>
<targetTechnology id="azure-aks"/>
<targetTechnology id="azure-container-apps"/>
Expand All @@ -36,7 +37,7 @@
Consider using Azure Key Vault and/or parameter injection with application settings where possible.
]]>
</message>
<link title="Password found in configuration file" href="https://docs.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-app-service#passwords-and-secure-strings"/>
<link title="Password found in configuration file" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-azure-spring-apps#inventory-configuration-sources-and-secrets"/>
<link title="Key Vault" href="https://docs.microsoft.com/azure/key-vault/"/>
<link title="Use Key Vault references" href="https://docs.microsoft.com/azure/app-service/app-service-key-vault-references?tabs=azure-cli"/>
<link title="Read a secret from Azure Key Vault in a Spring Boot application" href="https://docs.microsoft.com/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-key-vault"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<addon id="org.jboss.windup.rules,windup-rules-xml,3.0.0.Final" />
</dependencies>
<sourceTechnology id="springboot"/>
<targetTechnology id="azure-spring-apps"/>
<targetTechnology id="azure-appservice"/>
<targetTechnology id="azure-aks"/>
<targetTechnology id="azure-container-apps"/>
Expand Down Expand Up @@ -44,7 +45,7 @@
Checkout Azure Cache for Redis for a fully managed cache on Azure.
]]>
</message>
<link title="Redis Cache found in the application" href="https://docs.microsoft.com/en-us/azure/developer/java/migration/migrate-spring-boot-to-app-service#identify-external-caches"/>
<link title="Redis Cache found in the application" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-azure-spring-apps#identify-external-caches"/>
<link title="Azure Cache for Redis" href="https://azure.microsoft.com/services/cache"/>
<link title="Spring Data Redis" href="https://spring.io/projects/spring-data-redis/"/>
<link title="Azure Spring Cloud Starter Cache" href="https://search.maven.org/artifact/com.azure.spring/azure-spring-cloud-starter-cache"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<addon id="org.jboss.windup.rules,windup-rules-xml,3.0.0.Final" />
</dependencies>
<sourceTechnology id="springboot"/>
<targetTechnology id="azure-spring-apps"/>
<targetTechnology id="azure-appservice"/>
<targetTechnology id="azure-aks"/>
<targetTechnology id="azure-container-apps"/>
Expand All @@ -30,7 +31,7 @@
Checkout the different types of databases that are fully managed on Azure.
]]>
</message>
<link title="JDBC connection string found in configuration file" href="https://docs.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-app-service#databases"/>
<link title="JDBC connection string found in configuration file" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-azure-spring-apps#databases"/>
<link title="Types of Databases on Azure" href="https://azure.microsoft.com/product-categories/databases/"/>
<link title="Use Spring Data JDBC with Azure Database for MySQL" href="https://docs.microsoft.com/azure/developer/java/spring-framework/configure-spring-data-jdbc-with-azure-mysql"/>
<link title="Use Spring Data JDBC with Azure Database for PostgreSQL" href="https://docs.microsoft.com/azure/developer/java/spring-framework/configure-spring-data-jdbc-with-azure-postgresql"/>
Expand All @@ -55,7 +56,7 @@
Checkout the different types of databases that are fully managed on Azure.
]]>
</message>
<link title="MongoDB connection string found in configuration file" href="https://docs.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-app-service#databases"/>
<link title="MongoDB connection string found in configuration file" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-azure-spring-apps#databases"/>
<link title="Types of Databases on Azure" href="https://azure.microsoft.com/product-categories/databases/"/>
<link title="How to use Spring Data MongoDB API with Azure Cosmos DB" href="https://docs.microsoft.com/azure/developer/java/spring-framework/configure-spring-data-mongodb-with-cosmos-db"/>
<link title="Spring Cloud Azure Starter Data Cosmos DB" href="https://search.maven.org/artifact/com.azure.spring/spring-cloud-azure-starter-data-cosmos"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<addon id="org.jboss.windup.rules,windup-rules-xml,3.0.0.Final"/>
</dependencies>
<sourceTechnology id="springboot"/>
<targetTechnology id="azure-spring-apps"/>
<targetTechnology id="azure-aks"/>
<targetTechnology id="azure-appservice"/>
<targetTechnology id="azure-container-apps"/>
Expand All @@ -37,15 +38,17 @@
<![CDATA[
The application uses Eureka.

Make sure you configure Eureka with the following properties:
If a setting like this appears in your application configuration, remove it. Azure Spring Apps will automatically inject the connection information of its configuration server

```
eureka.instance.prefer-ip-address=true
eureka.instance.hostname=register-service # no localhost
eureka:
client:
serviceUrl:
defaultZone: http://myusername:mysecretpassword@localhost:8761/eureka/
```
]]>
</message>
<link title="Distributed Tracing" href="https://learn.microsoft.com/azure/azure-monitor/app/distributed-tracing-telemetry-correlation"/>
<link title="Distributed Tracing" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-cloud-to-azure-spring-apps?pivots=sc-standard-tier#remove-explicit-configuration-server-settings"/>
</hint>
</perform>
</rule>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<addon id="org.jboss.windup.rules,windup-rules-xml,3.0.0.Final"/>
</dependencies>
<sourceTechnology id="springboot"/>
<targetTechnology id="azure-spring-apps"/>
<targetTechnology id="azure-appservice"/>
<targetTechnology id="azure-aks"/>
<targetTechnology id="azure-container-apps"/>
Expand All @@ -37,7 +38,7 @@
Update the clients to use Spring Cloud OpenFeign instead.
]]>
</message>
<link title="Migrate clients bypassing the service registry" href="https://docs.microsoft.com/azure/developer/java/migration/migrate-spring-cloud-to-azure-spring-cloud?pivots=sc-standard-tier#identify-clients-that-bypass-the-service-registry"/>
<link title="Migrate clients bypassing the service registry" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-cloud-to-azure-spring-apps?pivots=sc-standard-tier#identify-clients-that-bypass-the-service-registry"/>
<link title="Spring Cloud OpenFeign" href="https://spring.io/projects/spring-cloud-openfeign/"/>
</hint>
</perform>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<addon id="org.jboss.windup.rules,windup-rules-xml,3.0.0.Final" />
</dependencies>
<sourceTechnology id="springboot"/>
<targetTechnology id="azure-spring-apps"/>
<targetTechnology id="azure-appservice"/>
<targetTechnology id="azure-aks"/>
<targetTechnology id="azure-container-apps"/>
Expand All @@ -37,7 +38,7 @@
Checkout Azure Active Directory as an identity provider.
]]>
</message>
<link title="Spring Security-related dependencies found in the project" href="https://docs.microsoft.com/en-us/azure/developer/java/migration/migrate-spring-boot-to-app-service#identity-providers"/>
<link title="Spring Security-related dependencies found in the project" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-app-service#identity-providers"/>
<link title="Azure Active Directory (Azure AD) identity provider for External Identities" href="https://docs.microsoft.com/azure/active-directory/external-identities/azure-ad-account"/>
<link title="Spring Security" href="https://docs.spring.io/spring-security/reference/index.html"/>
<link title="Spring Boot API: Authorization" href="https://auth0.com/docs/quickstart/backend/java-spring-security5/01-authorization"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<addon id="org.jboss.windup.rules,windup-rules-xml,3.0.0.Final"/>
</dependencies>
<sourceTechnology id="springboot"/>
<targetTechnology id="azure-spring-apps"/>
<targetTechnology id="azure-appservice"/>
<targetTechnology id="azure-aks"/>
<targetTechnology id="azure-container-apps"/>
Expand Down Expand Up @@ -38,7 +39,7 @@
Checkout Azure Service Bus for a fully managed message broker.
]]>
</message>
<link title="Spring Boot application using an Active MQ Broker" href="https://docs.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-app-service#jms-message-brokers"/>
<link title="Spring Boot application using an Active MQ Broker" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-azure-spring-apps#jms-message-brokers"/>
<link title="Azure Service Bus" href="https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messaging-overview"/>
<link title="How to use the Spring Boot Starter for Azure Service Bus JMS" href="https://docs.microsoft.com/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-service-bus"/>
<link title="Azure Spring Boot Starter for Azure Service Bus JMS" href="https://search.maven.org/artifact/com.azure.spring/azure-spring-boot-starter-servicebus-jms"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<addon id="org.jboss.windup.rules,windup-rules-xml,3.0.0.Final" />
</dependencies>
<sourceTechnology id="springboot"/>
<targetTechnology id="azure-spring-apps"/>
<targetTechnology id="azure-appservice"/>
<targetTechnology id="azure-aks"/>
<targetTechnology id="azure-container-apps"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<addon id="org.jboss.windup.rules,windup-rules-xml,3.0.0.Final" />
</dependencies>
<sourceTechnology id="springboot"/>
<targetTechnology id="azure-spring-apps"/>
<targetTechnology id="azure-appservice"/>
<targetTechnology id="azure-aks"/>
<targetTechnology id="azure-container-apps"/>
Expand All @@ -30,9 +31,9 @@
For more information, see Static website hosting in Azure Storage and Quickstart: Integrate an Azure storage account with Azure CDN.
]]>
</message>
<link title="Static content found in the application" href="https://docs.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-app-service#read-only-static-content"/>
<link title="Static content found in the application" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-azure-spring-apps#read-only-static-content"/>
<link title="Static website hosting in Azure Storage" href="https://docs.microsoft.com/azure/storage/blobs/storage-blob-static-website"/>
<link title="Quickstart: Integrate an Azure Storage account with Azure CDN" href="https://docs.microsoft.com/en-us/azure/cdn/cdn-create-a-storage-account-with-cdn"/>
<link title="Quickstart: Integrate an Azure Storage account with Azure CDN" href="https://docs.microsoft.com/azure/cdn/cdn-create-a-storage-account-with-cdn"/>
</hint>
</perform>
<where param="extensions">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<addon id="org.jboss.windup.rules,windup-rules-xml,3.0.0.Final"/>
</dependencies>
<sourceTechnology id="springboot"/>
<targetTechnology id="azure-spring-apps"/>
<targetTechnology id="azure-aks"/>
<targetTechnology id="azure-appservice"/>
<targetTechnology id="azure-container-apps"/>
Expand All @@ -35,7 +36,7 @@
The application uses Zipkin.
]]>
</message>
<link title="Spring Boot to Azure - identify Zipkin dependencies" href="https://docs.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-azure-kubernetes-service#identify-zipkin-dependencies"/>
<link title="Spring Boot to Azure - identify Zipkin dependencies" href="https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-cloud-to-azure-spring-apps?pivots=sc-standard-tier#identify-zipkin-dependencies"/>
<link title="Distributed Tracing" href="https://learn.microsoft.com/azure/azure-monitor/app/distributed-tracing-telemetry-correlation"/>
</hint>
</perform>
Expand Down