Greg Wilkins
6edd6d0ed0
Improve handling of SSL metadata in ConnectionMetaData, proxied connections and forwarded requests #10775 ( #10853 )
...
Improve handling of SSL metadata in ConnectionMetaData, proxied connections and forwarded requests
+ Added an Attributes.Synthetic mechanism to better (and mor commonly) handle additional attributes, whilst meeting the new TCK requirement that they can be deleted or replaced.
+ Made SslSessionData a reusable type provided by EndPoint
+ Added the EndPoint.Securable subtype that can provide a SslSessionData instance for secure EndPoints
+ Updated ForwardedRequestCustomizer, SecureRequestCustomizer to understand Securable and SslSessionData
+ Javadocs improvements.
+ Removed unnecessary attribute constants in SecureRequestCustomizer.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
---------
Signed-off-by: Olivier Lamy <olamy@apache.org>
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Olivier Lamy <olamy@apache.org>
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
2023-11-09 14:07:19 +11:00
Olivier Lamy
91d11941b3
Jetty 12 merge from 11 and fix JAAS ldap login test ( #10857 )
...
* Merge from jetty-10.0.x to jetty-11.0.x
* Fixes #10812 - Correct awaitility dependency scope (#10813 )
* Bump org.apache.logging.log4j:log4j-api from 2.20.0 to 2.21.1
Bumps org.apache.logging.log4j:log4j-api from 2.20.0 to 2.21.1.
---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump maven.plugin-tools.version from 3.9.0 to 3.10.1
Bumps `maven.plugin-tools.version` from 3.9.0 to 3.10.1.
Updates `org.apache.maven.plugin-tools:maven-plugin-annotations` from 3.9.0 to 3.10.1
- [Release notes](https://github.com/apache/maven-plugin-tools/releases )
- [Commits](https://github.com/apache/maven-plugin-tools/compare/maven-plugin-tools-3.9.0...maven-plugin-tools-3.10.1 )
Updates `org.apache.maven.plugin-tools:maven-plugin-tools-api` from 3.9.0 to 3.10.1
- [Release notes](https://github.com/apache/maven-plugin-tools/releases )
- [Commits](https://github.com/apache/maven-plugin-tools/compare/maven-plugin-tools-3.9.0...maven-plugin-tools-3.10.1 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugin-tools:maven-plugin-annotations
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: org.apache.maven.plugin-tools:maven-plugin-tools-api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump org.apache.maven.plugins:maven-clean-plugin from 3.3.1 to 3.3.2
Bumps [org.apache.maven.plugins:maven-clean-plugin](https://github.com/apache/maven-clean-plugin ) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/apache/maven-clean-plugin/releases )
- [Commits](https://github.com/apache/maven-clean-plugin/compare/maven-clean-plugin-3.3.1...maven-clean-plugin-3.3.2 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-clean-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump org.apache.maven.plugins:maven-dependency-plugin
Bumps [org.apache.maven.plugins:maven-dependency-plugin](https://github.com/apache/maven-dependency-plugin ) from 3.6.0 to 3.6.1.
- [Commits](https://github.com/apache/maven-dependency-plugin/compare/maven-dependency-plugin-3.6.0...maven-dependency-plugin-3.6.1 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-dependency-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump commons-io:commons-io from 2.14.0 to 2.15.0
Bumps commons-io:commons-io from 2.14.0 to 2.15.0.
---
updated-dependencies:
- dependency-name: commons-io:commons-io
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump org.apache.maven.plugins:maven-plugin-plugin from 3.9.0 to 3.10.1
Bumps [org.apache.maven.plugins:maven-plugin-plugin](https://github.com/apache/maven-plugin-tools ) from 3.9.0 to 3.10.1.
- [Release notes](https://github.com/apache/maven-plugin-tools/releases )
- [Commits](https://github.com/apache/maven-plugin-tools/compare/maven-plugin-tools-3.9.0...maven-plugin-tools-3.10.1 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-plugin-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump maven.surefire.plugin.version from 3.1.2 to 3.2.1
Bumps `maven.surefire.plugin.version` from 3.1.2 to 3.2.1.
Updates `org.apache.maven.plugins:maven-failsafe-plugin` from 3.1.2 to 3.2.1
- [Release notes](https://github.com/apache/maven-surefire/releases )
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.1.2...surefire-3.2.1 )
Updates `org.apache.maven.plugins:maven-surefire-plugin` from 3.1.2 to 3.2.1
- [Release notes](https://github.com/apache/maven-surefire/releases )
- [Commits](https://github.com/apache/maven-surefire/compare/surefire-3.1.2...surefire-3.2.1 )
Updates `org.apache.maven.surefire:surefire-junit47` from 3.1.2 to 3.2.1
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-failsafe-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: org.apache.maven.plugins:maven-surefire-plugin
dependency-type: direct:production
update-type: version-update:semver-minor
- dependency-name: org.apache.maven.surefire:surefire-junit47
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump org.apache.maven.plugins:maven-checkstyle-plugin
Bumps [org.apache.maven.plugins:maven-checkstyle-plugin](https://github.com/apache/maven-checkstyle-plugin ) from 3.3.0 to 3.3.1.
- [Commits](https://github.com/apache/maven-checkstyle-plugin/compare/maven-checkstyle-plugin-3.3.0...maven-checkstyle-plugin-3.3.1 )
---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-checkstyle-plugin
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump apacheds.version from 2.0.0.AM26 to 2.0.0.AM27 (#10836 )
* Bump apacheds.version from 2.0.0.AM26 to 2.0.0.AM27
Bumps `apacheds.version` from 2.0.0.AM26 to 2.0.0.AM27.
Updates `org.apache.directory.server:apacheds-test-framework` from 2.0.0.AM26 to 2.0.0.AM27
- [Commits](https://github.com/apache/directory-server/compare/2.0.0.AM26...2.0.0.AM27 )
Updates `org.apache.directory.server:apacheds-server-integ` from 2.0.0.AM26 to 2.0.0.AM27
- [Commits](https://github.com/apache/directory-server/compare/2.0.0.AM26...2.0.0.AM27 )
Updates `org.apache.directory.server:apacheds-core-integ` from 2.0.0.AM26 to 2.0.0.AM27
- [Commits](https://github.com/apache/directory-server/compare/2.0.0.AM26...2.0.0.AM27 )
---
updated-dependencies:
- dependency-name: org.apache.directory.server:apacheds-test-framework
dependency-type: direct:development
update-type: version-update:semver-patch
- dependency-name: org.apache.directory.server:apacheds-server-integ
dependency-type: direct:development
update-type: version-update:semver-patch
- dependency-name: org.apache.directory.server:apacheds-core-integ
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* get this work
Signed-off-by: Olivier Lamy <olamy@apache.org>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Olivier Lamy <olamy@apache.org>
* Bump org.infinispan:infinispan-bom from 11.0.17.Final to 11.0.18.Final (#10724 )
Bumps [org.infinispan:infinispan-bom](https://github.com/infinispan/infinispan ) from 11.0.17.Final to 11.0.18.Final.
- [Release notes](https://github.com/infinispan/infinispan/releases )
- [Changelog](https://github.com/infinispan/infinispan/blob/main/Jenkinsfile-release )
- [Commits](https://github.com/infinispan/infinispan/compare/11.0.17.Final...11.0.18.Final )
---
updated-dependencies:
- dependency-name: org.infinispan:infinispan-bom
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* not needed, bad merge
Signed-off-by: Olivier Lamy <olamy@apache.org>
* fix version
Signed-off-by: Olivier Lamy <olamy@apache.org>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Olivier Lamy <olamy@apache.org>
Co-authored-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Co-authored-by: Chad Wilson <chadw@thoughtworks.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-06 15:27:40 +11:00
Joakim Erdfelt
c01baac85c
Updating to version 12.0.4-SNAPSHOT
2023-10-26 22:47:29 -05:00
Joakim Erdfelt
a873259fd5
Updating to version 12.0.3
2023-10-26 22:24:43 -05:00
Olivier Lamy
fcc88274a4
Jetty 12.0.x use automatic formatter for poms to have same style for every poms ( #10578 )
...
* apply spotless sort pom
---------
Signed-off-by: Olivier Lamy <olamy@apache.org>
2023-10-12 03:51:36 +02:00
Joakim Erdfelt
6b3f760b80
Updating to version 12.0.3-SNAPSHOT
2023-10-09 21:16:46 -05:00
Joakim Erdfelt
b01e3611cf
Updating to version 12.0.2
2023-10-09 20:59:14 -05:00
Simone Bordet
0981c22c33
Merged branch 'jetty-11.0.x' into 'jetty-12.0.x'.
...
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2023-10-01 22:48:58 +02:00
Lachlan Roberts
665cae2ec2
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.0.x-10490-websocketServerUpgradeRequest
2023-09-21 07:24:08 +10:00
Greg Wilkins
09710c7cb6
Fix jetty 12 javadoc ( #10527 )
...
Fixes for javadoc warnings
2023-09-18 17:30:02 +10:00
gregw
fb80522675
Merge remote-tracking branch 'origin/jetty-11.0.x' into jetty-12.0.x
2023-09-18 17:25:11 +10:00
Lachlan Roberts
4bdd21f777
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.0.x-10490-websocketServerUpgradeRequest
2023-09-14 09:57:50 +10:00
Lachlan Roberts
3066737016
Issue #10490 - fixes and testing for websocket JakartaServerUpgradeRequest
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-09-11 17:00:02 +10:00
Joakim Erdfelt
1d226403da
Updating to version 12.0.2-SNAPSHOT
2023-08-29 16:55:36 -05:00
Joakim Erdfelt
4768745849
Updating to version 12.0.1
2023-08-29 16:38:20 -05:00
Lachlan Roberts
3b1e07ef99
make AuthenticationState.ServeAs as class instead of interface
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-23 17:10:39 +10:00
Lachlan Roberts
5a28d48b93
Move ServeAs code to Request, so it can be used elsewhere
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-23 12:32:46 +10:00
Lachlan Roberts
7e875d1411
make the ServeAs.PathWrapper take HttpURI instead of String
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-23 11:23:19 +10:00
Lachlan Roberts
f0953e4d29
add javadoc and rename AuthenticationState.ServeAs.PathWrapper
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-22 15:02:37 +10:00
Lachlan Roberts
a8832c4fa9
fixes for BasicAuthenticatorTest
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-18 14:57:15 +10:00
Lachlan Roberts
9f6da9a11e
add some javadoc and cleanup to Request.get
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-18 12:42:03 +10:00
Lachlan Roberts
f9f42d5303
add testing for core FormAuthenticator dispatch
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-18 12:27:28 +10:00
Lachlan Roberts
6e5ea8196f
cleanups and changes from review
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-18 11:55:36 +10:00
Lachlan Roberts
a418e0db71
Merge remote-tracking branch 'origin/jetty-12.0.x' into jetty-12.0.x-10295-formAuthDispatch
2023-08-18 11:43:31 +10:00
Greg Wilkins
5aea1e44b7
Experiment/12/improve default servlet ( #10222 )
...
* Improve Jetty 12 DefaultServlet
+ don't wrap the httpServletRequest unless necessary due to wrapping
+ don't wrap the httpServletResponse unless necessary due to wrapping
+ send content asynchronously if large and unfiltered
+ Remove unused boolean return from ServletChannel.handle
+ added TODOs where range request handling could calculate content length
+ Call multipartlength, even though it is always -1
+ Use static for bytes written
2023-08-18 00:54:05 +10:00
Lachlan Roberts
8c645abf7f
make some protected methods private in FormAuthenticator
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-17 17:27:11 +10:00
Lachlan Roberts
1b6b8331fa
fix bug in SecurityHandler and remove EE10 FormAuthenticator
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-17 15:44:20 +10:00
Lachlan Roberts
9208629e95
make the dispatch feature work for core securityHandler
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-17 15:32:40 +10:00
gregw
db5209e97a
Implement ServeAs in core SecurityHandler
2023-08-17 11:18:08 +10:00
Lachlan Roberts
87396105fb
Issue #10295 - use ServletChannel states for the security handler dispatch
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-15 11:18:25 +10:00
Lachlan Roberts
e9ab7498a9
Issue #10295 - create an EE10 FormAuthenticator
...
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2023-08-15 10:38:02 +10:00
Joakim Erdfelt
9c324326c5
Merge `release/12.0.0` back into `jetty-12.0.x` ( #10237 )
...
* Updating to version 12.0.0
* Updating to version 12.0.1-SNAPSHOT
2023-08-08 00:55:19 +02:00
Greg Wilkins
0ee0716d33
Various cleanups of StringUtil and TypeUtil ( #10082 )
...
* Various cleanups of StringUtil and TypeUtil
Removed deprecated and unused methods
Moved charset handling to MimeTypes
resolve IDE warnings
* updates from review
2023-07-12 10:31:28 +02:00
Ludovic Orban
457d41ccad
Add constructors accepting the handler to wrap to all core handler wrappers ( #9988 )
...
Add constructors accepting the handler to wrap to all core handler wrappers
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2023-06-30 13:15:45 +02:00
Ludovic Orban
8e79c1b58b
Add `EventsHandler` API ( #9901 )
...
* #8885 add EventsHandler API
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
2023-06-15 17:31:11 +02:00
Greg Wilkins
d3e88a95fe
Jetty 12.0.x custom request log #8819 ( #9896 )
...
* Resolve #8819 CustomRequestLog improvement
Resolves #8819 CustomRequestLog improvements:
+ only add extra detail if the log is a CustomRequestLog
+ add extra detail as a record
+ get authentication state directly from request attribute
* protect against null core request
* protect against null core request
* Use nanotime for logged latency
2023-06-13 11:12:45 +02:00
Greg Wilkins
068a60a868
Simplified QuotedStringTokenizer ( #9729 )
...
Simplified QuotedStringTokenizer #9729
* Now implements a simple subset of `quoted-string` from RFC9110
* introduced builder
* Extracted QuotedStringTokenizer interface and re-introduced the legacy implementation
* Re-introduced the ability to have unescaped \ in filenames
* Whitespace is Character.isWhiteSpace
* Disable test pending RFC8187
* No OWS around =
2023-05-18 08:25:53 +02:00
Jan Bartel
ba676021b6
Issue #9750 Fix value of login-config/auth-method for CLIENT-CERT ( #9751 )
2023-05-10 01:06:35 +10:00
Greg Wilkins
4c16e6a707
Jetty 12 content length 0 take3 ( #9740 )
...
* Optimize Content-Length: 0 handling
Create and use a pre-encoded HttpFields.CONTENT_LENGTH_0 constant
Used the constant in more places
renamed the `putLongField` methods of HttpFields.Mutable to just `put`
Fixed wrong docs examples
2023-05-07 19:22:15 +02:00
Jan Bartel
11a67fbdd7
Issue #9731 infinite loop in role refs ( #9732 )
...
* Issue #9731 infinite loop in role refs
* Update jetty-ee9/jetty-ee9-nested/src/main/java/org/eclipse/jetty/ee9/nested/UserIdentityScope.java
Co-authored-by: Greg Wilkins <gregw@webtide.com>
---------
Co-authored-by: Greg Wilkins <gregw@webtide.com>
2023-05-06 00:58:22 +10:00
Olivier Lamy
99a2853547
add missing entry jetty-security in core bom
...
Signed-off-by: Olivier Lamy <olamy@apache.org>
2023-05-03 20:11:56 +10:00
Greg Wilkins
7275bf15a9
Jetty 12.0.x core security ( #9405 )
...
core security module
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: gregw <gregw@webtide.com>
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Lachlan Roberts <lachlan@webtide.com>
Co-authored-by: Jan Bartel <janb@webtide.com>
Co-authored-by: Simone Bordet <simone.bordet@gmail.com>
2023-05-02 15:35:49 +02:00