Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
14c530f
updated classes to compile due to upgrade to spring boot 3. No functi…
Nov 17, 2023
093c279
fixed formatting
Nov 17, 2023
e67e0fe
updated java version for api test karate
Nov 21, 2023
6e425c8
specified version in spring-boot-maven-plugin
Nov 21, 2023
da4baba
added java 17 settings
Nov 21, 2023
330c286
updated dockerfile with java 17
Nov 21, 2023
abcbb99
added extra configuration on spring boot maven plugin
Nov 21, 2023
3fd62df
added a wildcard to exclude sources and javadoc jars
Nov 21, 2023
1a835d4
updated run command to exclude javadoc and sources jars
Nov 21, 2023
092312d
updated apiVersions of Ingress as deploy failed
Nov 22, 2023
44e3c02
updated ingress schema
Nov 22, 2023
47fce2e
commented out the pact executions
Nov 22, 2023
5b6c506
updated owasp version
Nov 22, 2023
23f38e3
reverted owasp plugin
Nov 24, 2023
c004613
ci: rename variable groups from amido to ensono
zecarrera Jul 3, 2024
070cf1d
ci: removes ensono prefix
zecarrera Jul 3, 2024
ea199f8
ci: attempt to change endpoint
zecarrera Jul 4, 2024
720cfed
renames github connection to ensonostacks
zecarrera Jul 8, 2024
0c35575
adds vulnerability scan api key as parameter
zecarrera Jul 8, 2024
09a76c0
attempt to use nvd-api-key that comes from key-vault
zecarrera Jul 8, 2024
1a2736e
trying to fix syntax
zecarrera Jul 8, 2024
14ad4b8
changes back to variable
zecarrera Jul 8, 2024
a7a84a3
adds api_key to missing yaml files
zecarrera Jul 8, 2024
cb05278
references variable from ado group
zecarrera Jul 8, 2024
83eca63
one more place
zecarrera Jul 8, 2024
cc66a3b
parameters not variables
zecarrera Jul 8, 2024
ee5e92e
reference variables from azure-sp-creds
zecarrera Jul 9, 2024
a28a1fa
non prod variables from amido to ensono
zecarrera Jul 9, 2024
f7b3671
docker registry name from library variables
zecarrera Jul 9, 2024
044d7e1
fixes variable group name
zecarrera Jul 9, 2024
7f4e1c5
removes duplicated domain
zecarrera Jul 9, 2024
17413e3
remove domain
zecarrera Jul 9, 2024
f920d03
adds variable group to dev deploy
zecarrera Jul 9, 2024
753555f
renames tf state storage back to amido
zecarrera Jul 9, 2024
948df35
state storage to match ancillary resources
zecarrera Jul 9, 2024
80a0eaa
comment out build steps to speed up deploy validation
zecarrera Jul 10, 2024
3fac7b2
fixes linting errors
zecarrera Jul 10, 2024
b9527d9
linting errors
zecarrera Jul 10, 2024
10d812e
more linting errors
zecarrera Jul 10, 2024
d5c3ae0
removes tasks to speed things up
zecarrera Jul 10, 2024
9a779b2
changes tf_state_rg to stacks-terraform-state
zecarrera Jul 10, 2024
a385c9d
tf_app_insights from ensono to ed
zecarrera Jul 10, 2024
054a7f8
domain name renamed to ensono
zecarrera Jul 10, 2024
89d6b89
fixes domain names
zecarrera Jul 10, 2024
1e4095f
fix: fixes Ingress YAML, silly extra dash `-`
ElvenSpellmaker Jul 12, 2024
5348fd3
re-enables steps previously removed to speed up build
zecarrera Jul 15, 2024
c1447c8
fixes linting errors
zecarrera Jul 15, 2024
015f22c
fix: Turn on SonarCloud reporting
ElvenSpellmaker Jul 16, 2024
1fcc7f2
debug: debug values
ElvenSpellmaker Jul 17, 2024
cd5c651
fix: update comment for login to token
ElvenSpellmaker Jul 17, 2024
01c345c
debug: echo build reason
ElvenSpellmaker Jul 17, 2024
b534604
Merge branch 'feat/upgrade-java-versions' of github.com:Ensono/stacks…
ElvenSpellmaker Jul 17, 2024
d71dc16
debug: empty commit to trigger build
ElvenSpellmaker Jul 17, 2024
5e7b524
fix: revert debug lines
ElvenSpellmaker Jul 17, 2024
313a303
feat:upgrade the package to Java 17
Athy17 Jul 17, 2024
b7e7d5c
feat:upgrade the package to Java 17
Athy17 Jul 17, 2024
26b298a
Merge remote-tracking branch 'origin/feat/upgrade-java-versions' into…
Athy17 Jul 17, 2024
251857a
feat:parameterizing lib versions in pom
Athy17 Jul 17, 2024
632c31f
fix: newline
ElvenSpellmaker Jul 18, 2024
8edb38b
Merge pull request #1317 from arathykrishna24/feat/upgrade-java-versions
ElvenSpellmaker Jul 18, 2024
cefd7e8
feat:formatting code & white listing ensono.com domain
Athy17 Jul 18, 2024
fd9a68d
feat:formatting code & white listing ensono.com domain
Athy17 Jul 18, 2024
fdf2682
feat:formatting code & white listing ensono.com domain
Athy17 Jul 18, 2024
d9a38ef
Merge remote-tracking branch 'origin/feat/upgrade-java-versions' into…
Athy17 Jul 18, 2024
4128b26
Merge pull request #1318 from arathykrishna24/feat/upgrade-java-versions
zecarrera Jul 19, 2024
ef9b77e
feat: move owasp cache to same place for all
ElvenSpellmaker Jul 19, 2024
31d3948
fix: ensure proper owasp and update to latest
ElvenSpellmaker Jul 19, 2024
1e0b646
feat: passes the job number down to the child
ElvenSpellmaker Jul 19, 2024
ca23ead
fix: ff fix
ElvenSpellmaker Jul 19, 2024
e0d344d
fix: Log variable set too
ElvenSpellmaker Jul 19, 2024
e01fabb
feat: cache NVD Database in 4 hour segments
ElvenSpellmaker Jul 19, 2024
a90e204
fix: ff fixes
ElvenSpellmaker Jul 19, 2024
90592df
fix: helps if you add the database dir to cache
ElvenSpellmaker Jul 19, 2024
ce042b4
fix: output for file
ElvenSpellmaker Jul 19, 2024
49c305e
fix: ff fix for pathing of NVD Cache
ElvenSpellmaker Jul 19, 2024
e609f4b
fix: download to known location, don't dl 4 infra
ElvenSpellmaker Jul 20, 2024
c1e4150
fix: use real task, aliases are crap
ElvenSpellmaker Jul 20, 2024
01f8229
fix: cache and downloads
ElvenSpellmaker Jul 20, 2024
7b958eb
fix: ff fix
ElvenSpellmaker Jul 20, 2024
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
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Amido
Copyright (c) 2024 Ensono

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
The full documentation on Amido Stacks can be found [here](https://amido.github.io/stacks/).
The full documentation on Ensono Stacks can be found [here](https://stacks.ensono.com/).

## Using the repository to build the Java Spring Boot Rest API application

### Customised solution

To customise the namespaces and create an application for your company please visit the full [documentation](https://stacks.amido.com/docs/)
To customise the namespaces and create an application for your company please visit the full [documentation](https://stacks.ensono.com/docs)

### Running the application locally

1. Clone one of the Java projects to your local machine from one of the following repos:
---
1. Simple web API: [stacks-java repository](https://github.com/amido/stacks-java)
2. Web API with CQRS: [stacks-java-cqrs repository](https://github.com/amido/stacks-java-cqrs)
3. Web API with CQRS and events: [stacks-java-cqrs-events repository](https://github.com/amido/stacks-java-cqrs-events)
1. Simple web API: [stacks-java repository](https://github.com/Ensono/stacks-java)
2. Web API with CQRS: [stacks-java-cqrs repository](https://github.com/Ensono/stacks-java-cqrs)
3. Web API with CQRS and events: [stacks-java-cqrs-events repository](https://github.com/Ensono/stacks-java-cqrs-events)

2. Build and run the application
---

Note that at a minimum [Java 11](https://adoptopenjdk.net/) should be installed.
Note that at a minimum [Java 17](https://adoptopenjdk.net/) should be installed.

Move to the `<PROJECT-NAME>/java` folder, then

Expand Down Expand Up @@ -61,8 +61,8 @@ If using Auth0 for authorization, Auth0 itself will need to be configured with b
There are corresponding configuration values required for the Stacks application, within the `auth.properties` file, e.g.

```text
auth0.issuer=https://amidostacks.eu.auth0.com/
auth0.apiAudience=https://amidostacks.eu.auth0.com/api/v2/
auth0.issuer=https://ensonostacks.eu.auth0.com/
auth0.apiAudience=https://ensonostacks.eu.auth0.com/api/v2/
```

These parameters are used to verify that the JWT supplied in the Authorization header of a request is valid.
Expand Down
11 changes: 11 additions & 0 deletions api-tests-karate/.mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
--add-opens java.base/java.text=ALL-UNNAMED
--add-opens java.desktop/java.awt.font=ALL-UNNAMED
41 changes: 28 additions & 13 deletions api-tests-karate/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,21 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version>
<maven.compiler.version>3.8.1</maven.compiler.version>
<karate.version>0.9.6</karate.version>
<java.version>17</java.version>
<!-- Maven plugins -->
<maven-surefire-plugin.version>3.1.2</maven-surefire-plugin.version>
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
<karate.version>1.4.1</karate.version>
<cucumber.reporting.version>5.5.3</cucumber.reporting.version>
<maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
<puppycrawl-tools-checkstyle.version>8.44</puppycrawl-tools-checkstyle.version>
<spotbugs-maven-plugin.version>4.2.3</spotbugs-maven-plugin.version>
<spotbugs.version>4.5.2</spotbugs.version>
<owasp-dependency-check-plugin.version>10.0.3</owasp-dependency-check-plugin.version>
<exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
</properties>

<dependencies>
<dependency>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-apache</artifactId>
<version>${karate.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.intuit.karate</groupId>
<artifactId>karate-junit5</artifactId>
Expand Down Expand Up @@ -75,6 +72,25 @@
</plugins>
</build>
</profile>
<profile>
<id>owasp-dependency-check</id>
<build>
<plugins>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>${owasp-dependency-check-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
Expand All @@ -93,11 +109,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<encoding>UTF-8</encoding>
<source>${java.version}</source>
<target>${java.version}</target>
<release>${java.version}</release>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -129,7 +144,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
Expand Down
11 changes: 11 additions & 0 deletions api-tests/.mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
--add-opens java.base/java.text=ALL-UNNAMED
--add-opens java.desktop/java.awt.font=ALL-UNNAMED
9 changes: 5 additions & 4 deletions api-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<parallel.tests>4</parallel.tests>
<webdriver.base.url/>
<jackson.version>2.12.3</jackson.version>
<java.version>17</java.version>

<!-- Set 'pact.broker.url' and 'pact.broker.token' -->
<pact.broker.url/>
Expand Down Expand Up @@ -48,12 +49,12 @@

<!-- Maven plugins -->
<spotbugs-maven-plugin.version>4.2.3</spotbugs-maven-plugin.version>
<owasp-dependency-check-plugin.version>6.5.0</owasp-dependency-check-plugin.version>
<owasp-dependency-check-plugin.version>10.0.3</owasp-dependency-check-plugin.version>
<fmt-maven-plugin.version>2.13</fmt-maven-plugin.version>
<maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
<maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
<pact.provider-plugin.version>4.3.2</pact.provider-plugin.version>
<maven-pmd-plugin.version>3.15.0</maven-pmd-plugin.version>
<findbugs-maven-plugin.version>3.0.5</findbugs-maven-plugin.version>
Expand Down Expand Up @@ -427,8 +428,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>11</source>
<target>11</target>
<encoding>UTF-8</encoding>
<release>${java.version}</release>
</configuration>
</plugin>
<plugin>
Expand Down
Loading