Liam java 11
This is a rebased / reworked version of !177 (closed). Credit to @cedricwilleken for doing the initial migrations The biggest difference between the two branches is:
- The schema is stable in this version compared to master. Due to the fixes regarding Id generation.
The problem originated because Hibernate reinterpets
GenerationType.Autoin newer versions. This pr fixes it to Identity generation as it used to be. - Hibernate ddl is set to validate
- A few security classes added in !177 (closed) are now gone namely
Encoderand the infamousSavedRequestAwareAuthenticationSuccessHandler - Formatting has been applied in the original commits that introduced the code changes.
Things to review:
-
SecurityWebApplicationInitializerregisters the web security config regardless of profile? is that correct?i -
Why is the heroku properties file required?
Things left todo:
-
Update the contributing guide to mention java 11+ and the command to insert the yaml template. -
The redirect to the login page is broken in the dev security setup. (Probably has to do with QueueAuthenticationEntryPoint) -
Security in dev setup seems to remember users for to long (even across incognitos?) -
The yaml template currently enables: allow-bean-definition-overriding: truewhich seems slightly hacky.
Merge request reports
Activity
added 13 commits
- 472d7ece - Refactor queue for java 11
- d6764765 - Fix the tests so they work with java 11
- 9a599677 - Also change pom to reflect the gradle file
- d5b92f64 - Use java 11 compatible image to test code
- 8c738b45 - Migrate ci build and test stages to use java 11+
- 54d3573a - Re-enable redis sessions and make encoder and savedrequestawareauthentication...
- 00b073ed - Add the dependency for redis session data
- d59a3529 - Move thymeleaf and hibernate versions to a variable
- 50209bc4 - Thymeleaf versions dont match apperently to remove them
- 335238b9 - Apply the suggested edits by intellij
- c71450c7 - Pick id generation strategy Identity
- 14bd20e3 - Fix all warnings due to deprecated methods/classes
- 0eb63212 - Remove Encoder and SavedRequestAwareAuthenticationSuccessHandler
Toggle commit listassigned to @cedricwilleken, @otto, @taicoaerts, and @sander
- Resolved by Liam Clark
@cedricwilleken The redirect and logout works in development properly again if I remove this line
http // .exceptionHandling().authenticationEntryPoint(new QueueAuthenticationEntryPoint()).and() .authorizeRequests() .antMatchers("/").permitAll()Any input on why you added this or why we would want it?
In ac040524 the bean overriding is no longer required and more extra security classes can be removed. Furthermore the login redirect on dev is working again
- Resolved by Liam Clark
- Resolved by Liam Clark
- Resolved by Liam Clark
- Resolved by Liam Clark
- Resolved by Liam Clark
- Resolved by Liam Clark
@LiamClark regarding
Update the contributing guide to mention java 11+ and the command to insert the yaml template.
Might want to exclude Java 13 here, that requires Gradle 6.x afaik.
- Resolved by Otto Visser
@otto seems like the last remaining problem is that the: sast, container scanning, licence check and dependency scan are failing with warnings.
- container scan fails with:
Can't pull fsLayersI have no idea what that is? @otto do you? - dependency scanning seems to fail on a configuration error of the annotation processors in the mvn config. For the queryDsl classes.
- licence validation fails on the java target version: Fatal error compiling: invalid target release: 11 -> [Help 1]. This raises two questions why is this task done through maven? second why is it not running java 11?
- sast fails on jdk8 aswell
- What went wrong: Execution failed for task ':compileJava'.
Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'.
- container scan fails with:
mentioned in merge request !202 (closed)
Closes: #167 (closed)
mentioned in merge request !210 (merged)
mentioned in merge request !160 (merged)
added 1 commit
- 24c5546a - More refinements on build process and added explanation of build stages
added 1 commit
- f56cbe05 - Remove gradle install stage as pom can be retrieved from cache
added 1 commit
- 36c35186 - Handle the POM as an artifact; not via cache (shared runners do not
added 1 commit
- 36a15261 - Global cache policy is now pull; only build pushes
added 1 commit
- c6918bf8 - - Always do license & dependency checks to make sure automagic merge
closes: #210 (closed)
added 6 commits
- 77aaab55 - Refactor queue for java 11
- 61e7d4ef - Pick id generation strategy Identity
- 4dc2ea01 - Fix all warnings due to deprecated methods/classes
- 59e8aad9 - Remove Encoder and SavedRequestAwareAuthenticationSuccessHandler
- 92735c19 - Reallign security configs
- 706bb32e - More refinements on build process and added explanation of build stages
Toggle commit listadded 97 commits
-
706bb32e...c4d13f9b - 91 commits from branch
development - 7b5ddf21 - Refactor queue for java 11
- a9e85ae7 - Pick id generation strategy Identity
- dc7ef6fd - Fix all warnings due to deprecated methods/classes
- 6f6a7f12 - Remove Encoder and SavedRequestAwareAuthenticationSuccessHandler
- a51c9546 - Reallign security configs
- 2b50ac27 - More refinements on build process and added explanation of build stages
Toggle commit list-
706bb32e...c4d13f9b - 91 commits from branch
mentioned in commit 92a10995