Skip to content

Commit

Permalink
Update formatting of 6.2.3 rules
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Manuel Leflet Estrada <jleflete@redhat.com>
  • Loading branch information
jmle committed Nov 30, 2023
1 parent 8073ee2 commit 1a124c0
Show file tree
Hide file tree
Showing 233 changed files with 5,875 additions and 7,840 deletions.
26 changes: 10 additions & 16 deletions default/generated/azure/01-azure-file-system.windup.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
- category: optional
customVariables: []
description: |-
The application uses Java APIs to read/write from the file system
The application uses Java APIs to read/write from the file system.. Any usage of the file system on the application will require reconfiguration or, in rare cases, architectural changes.
description: The application uses Java APIs to read/write from the file system
effort: 5
labels:
- konveyor.io/source=eap7
Expand All @@ -18,9 +16,9 @@
url: 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
- title: Azure Spring Boot Starter for Azure Storage
url: https://search.maven.org/artifact/com.azure.spring/azure-spring-boot-starter-storage
message: The application uses Java APIs to read/write from the file system.. Any
usage of the file system on the application will require reconfiguration or, in
rare cases, architectural changes.
message: "\n \n The application uses Java APIs to read/write from the file system.\n
\n Any usage of the file system on the application will require reconfiguration
or, in rare cases, architectural changes.\n \n "
ruleID: azure-file-system-01000
when:
or:
Expand All @@ -34,9 +32,7 @@
pattern: org.apache.commons.io*
- category: optional
customVariables: []
description: |-
Relative path found
Relative path found.. Any usage of the file system on the application will require reconfiguration or, in rare cases, architectural changes.
description: Relative path found
effort: 5
labels:
- konveyor.io/source=eap7
Expand All @@ -50,18 +46,16 @@
links:
- title: Relative path found in the application
url: 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
message: Relative path found.. Any usage of the file system on the application will
require reconfiguration or, in rare cases, architectural changes.
message: "\n \n Relative path found.\n \n Any usage of the file system on the application
will require reconfiguration or, in rare cases, architectural changes.\n \n "
ruleID: azure-file-system-02000
when:
builtin.filecontent:
filePattern: .*\.(java|properties|yaml|yml)
pattern: \.\/.
- category: optional
customVariables: []
description: |-
Home path found
Home path found.. Any usage of the file system on the application will require reconfiguration or, in rare cases, architectural changes.
description: Home path found
effort: 5
labels:
- konveyor.io/source=eap7
Expand All @@ -75,8 +69,8 @@
links:
- title: Home path found in the application
url: 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
message: Home path found.. Any usage of the file system on the application will
require reconfiguration or, in rare cases, architectural changes.
message: "\n \n Home path found.\n \n Any usage of the file system on the application
will require reconfiguration or, in rare cases, architectural changes.\n \n "
ruleID: azure-file-system-03000
when:
builtin.filecontent:
Expand Down
8 changes: 3 additions & 5 deletions default/generated/azure/02-azure-password.windup.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
- category: potential
customVariables: []
description: |-
Password found in configuration file
Password found in configuration file.. Consider using Azure Key Vault and/or parameter injection with application settings where possible.
description: Password found in configuration file
effort: 3
labels:
- konveyor.io/source=springboot
Expand All @@ -25,8 +23,8 @@
url: https://docs.microsoft.com/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-key-vault
- title: Azure Spring Boot Starter for Azure Key Vault Secrets
url: https://search.maven.org/artifact/com.azure.spring/azure-spring-boot-starter-keyvault-secrets
message: Password found in configuration file.. Consider using Azure Key Vault and/or
parameter injection with application settings where possible.
message: "\n \n Password found in configuration file.\n\n Consider using Azure Key
Vault and/or parameter injection with application settings where possible.\n \n "
ruleID: azure-password-01000
when:
or:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
- category: optional
customVariables: []
description: |-
Azure - The application loads certificates into a KeyStore
Azure - The application loads certificates into a KeyStore
description: Azure - The application loads certificates into a KeyStore
effort: 5
labels:
- konveyor.io/source=eap7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
- category: potential
customVariables: []
description: |-
Datasource driver found in configuration file
A datasource driver was found in a configuration file.. There are three core steps when registering a data source with JBoss EAP in Azure App Service: uploading the JDBC driver, adding the JDBC driver as a module, and registering the module.. App Service is a stateless hosting service, so the configuration commands for adding and registering the data source module must be scripted and applied as the container starts.. For more information, see Datasource Management in the JBoss EAP documentation.
description: Datasource driver found in configuration file
effort: 3
labels:
- konveyor.io/source=eap7
Expand All @@ -19,13 +17,13 @@
url: https://docs.microsoft.com/en-us/azure/developer/java/migration/migrate-jboss-eap-to-jboss-eap-on-azure-app-service#set-up-data-sources
- title: Datasource Management
url: https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.4/html/configuration_guide/datasource_management
message: 'A datasource driver was found in a configuration file.. There are three
core steps when registering a data source with JBoss EAP in Azure App Service:
uploading the JDBC driver, adding the JDBC driver as a module, and registering
the module.. App Service is a stateless hosting service, so the configuration
message: "\n \n A datasource driver was found in a configuration file.\n\n There
are three core steps when registering a data source with JBoss EAP in Azure App
Service: uploading the JDBC driver, adding the JDBC driver as a module, and registering
the module.\n\n App Service is a stateless hosting service, so the configuration
commands for adding and registering the data source module must be scripted and
applied as the container starts.. For more information, see Datasource Management
in the JBoss EAP documentation.'
applied as the container starts.\n \n For more information, see Datasource Management
in the JBoss EAP documentation. \n \n "
ruleID: eap-to-azure-appservice-datasource-driver-01000
when:
or:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
- category: optional
customVariables: []
description: |-
App Service - The application reads environment variables
App Service - The application reads environment variables.. Any environment variables used in the code will need to be defined as App Settings, which are exposed. as environment variables in App Service.. Any System properties that the code depends on will need to be provided either in a custom Startup Script. or by defining an App Setting with the name JAVA_OPTS and include any system properties in it.
description: App Service - The application reads environment variables
effort: 1
labels:
- konveyor.io/source=eap7
Expand All @@ -15,12 +13,12 @@
url: https://aka.ms/webapps-java-perf
- title: Environment variables and app settings in Azure App Service
url: https://aka.ms/webapps-env-vars
message: App Service - The application reads environment variables.. Any environment
variables used in the code will need to be defined as App Settings, which are
exposed. as environment variables in App Service.. Any System properties that
the code depends on will need to be provided either in a custom Startup Script.
message: "\n \n App Service - The application reads environment variables.\n\n Any
environment variables used in the code will need to be defined as App Settings,
which are exposed\n as environment variables in App Service.\n\n Any System properties
that the code depends on will need to be provided either in a custom Startup Script\n
or by defining an App Setting with the name JAVA_OPTS and include any system properties
in it.
in it.\n \n "
ruleID: eap-to-azure-appservice-environment-variables-001
when:
or:
Expand Down
28 changes: 13 additions & 15 deletions default/generated/azure/06-eap-to-azure-appservice-pom.windup.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
- category: optional
customVariables: []
description: |-
Get started with JBoss EAP on App Service
Get started with JBoss EAP on App Service with the CLI commands below. Don't have the Azure CLI installed? Go to [https://aka.ms/azure-cli](https://aka.ms/azure-cli). <pre>. # Customize these variables. $resourceGroup=jboss-rg. $location=eastus. $appName=jboss-app. $appServicePlan=jboss-asp. az group create --resource-group $resourceGroup --location $location. az appservice plan create --resource-group $resourceGroup --name $appServicePlan --is-linux --sku P1V3. az webapp create --resource-group $resourceGroup --name $appName --plan $appServicePlan --runtime "JBOSSEAP|7.3-java8". # Build your app with:. mvn package. # Run one of the following commands depending on the artifact type. # To deploy WAR files:. az webapp deploy --resource-group $resourceGroup --plan $appServicePlan --name $appName --type war --src-path app.war. # To deploy EAR files:. az webapp deploy --resource-group $resourceGroup --plan $appServicePlan --name $appName --type ear --src-path app.ear. </pre>
description: Get started with JBoss EAP on App Service
effort: 1
labels:
- konveyor.io/source=eap7
Expand All @@ -16,19 +14,19 @@
url: https://aka.ms/webapps-deployment-apis
- title: Migrate JBoss EAP applications to JBoss EAP on Azure App Service
url: https://aka.ms/webapps-jboss-migrate-guide
message: 'Get started with JBoss EAP on App Service with the CLI commands below.
Don''t have the Azure CLI installed? Go to [https://aka.ms/azure-cli](https://aka.ms/azure-cli).
<pre>. # Customize these variables. $resourceGroup=jboss-rg. $location=eastus.
$appName=jboss-app. $appServicePlan=jboss-asp. az group create --resource-group
$resourceGroup --location $location. az appservice plan create --resource-group
$resourceGroup --name $appServicePlan --is-linux --sku P1V3. az webapp create
message: "\n \n Get started with JBoss EAP on App Service with the CLI commands
below. Don't have the Azure CLI installed? Go to [https://aka.ms/azure-cli](https://aka.ms/azure-cli)\n
\n <pre>\n # Customize these variables\n $resourceGroup=jboss-rg\n $location=eastus\n
$appName=jboss-app\n $appServicePlan=jboss-asp\n\n az group create --resource-group
$resourceGroup --location $location\n\n az appservice plan create --resource-group
$resourceGroup --name $appServicePlan --is-linux --sku P1V3\n\n az webapp create
--resource-group $resourceGroup --name $appName --plan $appServicePlan --runtime
"JBOSSEAP|7.3-java8". # Build your app with:. mvn package. # Run one of the following
commands depending on the artifact type. # To deploy WAR files:. az webapp deploy
--resource-group $resourceGroup --plan $appServicePlan --name $appName --type
war --src-path app.war. # To deploy EAR files:. az webapp deploy --resource-group
$resourceGroup --plan $appServicePlan --name $appName --type ear --src-path app.ear.
</pre>'
\"JBOSSEAP|7.3-java8\"\n\n # Build your app with:\n mvn package\n\n # Run one
of the following commands depending on the artifact type\n\n # To deploy WAR files:\n
az webapp deploy --resource-group $resourceGroup --plan $appServicePlan --name
$appName --type war --src-path app.war\n\n # To deploy EAR files:\n az webapp
deploy --resource-group $resourceGroup --plan $appServicePlan --name $appName
--type ear --src-path app.ear\n </pre>\n \n "
ruleID: eap-to-azure-appservice-pom-001
when:
java.dependency:
Expand Down
39 changes: 3 additions & 36 deletions default/generated/azure/07-spring-boot-to-azure-cache.windup.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
- category: potential
customVariables: []
description: |-
Redis Cache found in the application
The application uses a Redis Cache.. Checkout Azure Cache for Redis for a fully managed cache on Azure.
description: Redis Cache found in the application
effort: 0
labels:
- konveyor.io/source=springboot
Expand All @@ -21,8 +19,8 @@
url: https://spring.io/projects/spring-data-redis/
- title: Azure Spring Cloud Starter Cache
url: https://search.maven.org/artifact/com.azure.spring/azure-spring-cloud-starter-cache
message: The application uses a Redis Cache.. Checkout Azure Cache for Redis for
a fully managed cache on Azure.
message: "\n \n The application uses a Redis Cache.\n\n Checkout Azure Cache for
Redis for a fully managed cache on Azure.\n \n "
ruleID: spring-boot-to-azure-cache-redis-01000
when:
or:
Expand All @@ -38,34 +36,3 @@
- java.dependency:
lowerbound: 0.0.0
name: org.springframework.integration.spring-integration-redis
- category: potential
customVariables: []
description: |-
Redis Cache connection string found
Redis Cache connection string, username, or password used in this application.. Checkout Azure Cache for Redis for a fully managed cache on Azure.
effort: 0
labels:
- konveyor.io/source=springboot
- konveyor.io/target=azure-spring-apps
- konveyor.io/target=azure-appservice
- konveyor.io/target=azure-aks
- konveyor.io/target=azure-container-apps
- cache
- redis
links:
- title: Redis Cache found in the application
url: https://learn.microsoft.com/azure/developer/java/migration/migrate-spring-boot-to-azure-spring-apps#identify-external-caches
- title: Azure Cache for Redis
url: https://azure.microsoft.com/services/cache
- title: Spring Data Redis
url: https://spring.io/projects/spring-data-redis/
- title: Azure Spring Cloud Starter Cache
url: https://search.maven.org/artifact/com.azure.spring/azure-spring-cloud-starter-cache
message: Redis Cache connection string, username, or password used in this application..
Checkout Azure Cache for Redis for a fully managed cache on Azure.
ruleID: spring-boot-to-azure-cache-redis-02000
when:
or:
- builtin.filecontent:
filePattern: application.*\.(properties|yaml|yml)
pattern: (redis|jedis|lettuce)\.(.*\.)?(url|host|nodes|username|password)
Loading

0 comments on commit 1a124c0

Please sign in to comment.