a8e85b88d1
test: use WireMockTest annotation
2025-04-24 18:30:32 +02:00
cc5ca13aeb
refactor: use builder to instantiate ObjectMapper ( #95 )
...
CI / build-with-it (11, 1.2.0) (push) Successful in 52s
CI / build-with-it (11, 1.19.0) (push) Successful in 58s
CI / build-with-it (17, 1.2.0) (push) Successful in 52s
CI / build-with-it (17, 1.19.0) (push) Successful in 57s
CI / build-with-it (21, 1.2.0) (push) Successful in 47s
CI / build-with-it (true, 21, 1.19.0) (push) Successful in 54s
Instead of applying configuration to a new ObjectMapper instance we use
the JsonMapper builder pattern to create our mapper.
The resulting mappers are not yet fully immutable, but the old way will
be removed in Jackson 3.0.
2025-04-13 10:49:42 +02:00
e9aeda9a55
style: trim multiline indentation to 4 spaces
CI / build-with-it (11, 1.2.0) (push) Successful in 56s
CI / build-with-it (17, 1.2.0) (push) Successful in 56s
CI / build-with-it (21, 1.2.0) (push) Successful in 51s
CI / build-with-it (17, 1.19.0) (push) Successful in 49s
CI / build-with-it (11, 1.19.0) (push) Successful in 51s
CI / build-with-it (true, 21, 1.19.0) (push) Successful in 57s
2025-04-11 17:20:24 +02:00
ee2543e3ad
reuse builder methods when initializing from environment
...
CI / build-with-it (11, 1.2.0) (push) Successful in 51s
CI / build-with-it (17, 1.19.0) (push) Successful in 54s
CI / build-with-it (17, 1.2.0) (push) Successful in 51s
CI / build-with-it (21, 1.2.0) (push) Successful in 46s
CI / build-with-it (true, 21, 1.19.0) (push) Successful in 55s
CI / build-with-it (11, 1.19.0) (push) Successful in 48s
We can just pass the environment variable to other pre-existing methods
instead of parsing the URL twice. This also fixes URLs without explicit
ports where we should not store "-1" in this case.
2025-03-29 11:50:29 +01:00
dad35023eb
replace deprecated java.net.URL usage with java.net.URI ( #94 )
...
Deprecated in Java 20. Migrate URL parsing to backward compatible URI.
2025-03-28 18:30:37 +01:00
0127cf30be
feat: introduce methods for transit API interaction ( #89 )
...
CI / build-with-it (11, 1.2.0) (push) Successful in 50s
CI / build-with-it (11, 1.19.0) (push) Successful in 55s
CI / build-with-it (17, 1.2.0) (push) Successful in 50s
CI / build-with-it (17, 1.19.0) (push) Successful in 56s
CI / build-with-it (21, 1.2.0) (push) Successful in 47s
CI / build-with-it (true, 21, 1.19.0) (push) Successful in 54s
Support hashing and de-/encryption using Vault's transit API.
2025-03-02 18:24:16 +01:00
ff6d2140cf
feat: support PEM certificate string from VAULT_CACERT env var ( #93 )
...
CI / build-with-it (11, 1.2.0) (push) Successful in 53s
CI / build-with-it (11, 1.19.0) (push) Successful in 1m0s
CI / build-with-it (17, 1.19.0) (push) Successful in 57s
CI / build-with-it (17, 1.2.0) (push) Successful in 52s
CI / build-with-it (21, 1.2.0) (push) Successful in 48s
CI / build-with-it (true, 21, 1.19.0) (push) Successful in 54s
Vault CLI and the connector up to 1.4 support providing a path to a CA
certificate file. Introduce support for providing PEM encoded content
directly which might be convenient in container environments to provide
a certificate e.g. from secrets without mounting it to some path.
2025-03-23 12:10:15 +01:00
076cd8b607
replace trim/isEmpty with isBlank
CI / build-with-it (11, 1.2.0) (push) Successful in 53s
CI / build-with-it (11, 1.19.0) (push) Successful in 1m1s
CI / build-with-it (17, 1.2.0) (push) Successful in 53s
CI / build-with-it (21, 1.2.0) (push) Successful in 48s
CI / build-with-it (true, 21, 1.19.0) (push) Successful in 55s
CI / build-with-it (17, 1.19.0) (push) Successful in 49s
2025-03-22 18:39:39 +01:00
d329af2c67
deprecate default methods to read specific database credentials ( #92 )
...
CI / build-with-it (11, 1.2.0) (push) Successful in 57s
CI / build-with-it (11, 1.19.0) (push) Successful in 1m3s
CI / build-with-it (17, 1.2.0) (push) Successful in 57s
CI / build-with-it (17, 1.19.0) (push) Successful in 1m4s
CI / build-with-it (21, 1.2.0) (push) Successful in 54s
CI / build-with-it (true, 21, 1.19.0) (push) Successful in 1m2s
The interface has some methods to read database credentials from
specific mountpoints like "mysql". While ann database mounts share
the same credential endpoints, the mount point itself can have any
name. Let's clean up some methods of low benefit and deprecate the
convenience methods.
Trivial replacement is `getDbCredentials()` with explicit mount point,
if it's actually mounted on that path.
2025-03-09 11:43:15 +01:00
f50f5c5de7
test: run IT against Vault 1.19.0 ( #91 )
CI / build-with-it (11, 1.2.0) (push) Successful in 59s
CI / build-with-it (17, 1.2.0) (push) Successful in 56s
CI / build-with-it (17, 1.19.0) (push) Successful in 1m2s
CI / build-with-it (21, 1.2.0) (push) Successful in 50s
CI / build-with-it (true, 21, 1.19.0) (push) Successful in 57s
CI / build-with-it (11, 1.19.0) (push) Successful in 1m4s
2025-03-07 20:30:48 +01:00
835372eb3b
test: swap expected and actual arguments in some assertions
CI / build (11) (push) Successful in 38s
CI / build (17) (push) Successful in 37s
CI / build (true, 21) (push) Successful in 29s
CI / build-with-it (11, 1.2.0) (push) Successful in 56s
CI / build-with-it (11, 1.18.2) (push) Successful in 59s
CI / build-with-it (17, 1.2.0) (push) Successful in 54s
CI / build-with-it (21, 1.2.0) (push) Successful in 47s
CI / build-with-it (true, 21, 1.18.2) (push) Successful in 54s
CI / build-with-it (17, 1.18.2) (push) Successful in 51s
2025-03-02 18:28:20 +01:00
e5dd207c8c
update license headers to 2025
2025-01-07 17:35:54 +01:00
d3da00372c
test: run IT against Vault 1.18.2 and remove 1.11 job ( #87 )
CI / build-with-it (11, 1.2.0) (push) Successful in 59s
CI / build-with-it (11, 1.18.2) (push) Successful in 1m5s
CI / build-with-it (17, 1.2.0) (push) Successful in 56s
CI / build-with-it (17, 1.18.2) (push) Successful in 1m3s
CI / build-with-it (21, 1.2.0) (push) Successful in 52s
CI / build-with-it (true, 21, 1.18.2) (push) Successful in 1m1s
CI / build (11) (push) Successful in 38s
CI / build (17) (push) Successful in 38s
CI / build (true, 21) (push) Successful in 34s
2024-12-07 11:26:54 +01:00
5a9d6d9183
fix: add jackson annotation module dependency ( #84 )
continuous-integration/drone/push Build is passing
2024-11-23 12:42:50 +01:00
e6ef19f1a1
test: run IT against Vault 1.18.0 ( #82 )
2024-10-09 18:09:30 +02:00
d4066c1829
drop support for deprecated App-ID auth backend ( #61 ) ( #78 )
...
continuous-integration/drone/push Build is passing
App-ID is deprecated since Vault 0.6 and was removed in 1.12.
Our compatibility methods are deprecated since Connector 0.4. It's time
to drop it for good.
2024-06-29 15:09:38 +02:00
498e46d94d
remove deprecated get...TimeString() methods from model classes ( #77 )
continuous-integration/drone/push Build is passing
2024-06-29 15:07:47 +02:00
ae00b29b4d
test: run IT against Vault 1.17.6
continuous-integration/drone/push Build is passing
2024-10-03 12:58:52 +02:00
44f0953998
test: test against Vault 1.17.1
continuous-integration/drone/push Build is passing
2024-06-29 12:23:30 +02:00
318186d9e0
test: minor test code refactoring
continuous-integration/drone/push Build is passing
2024-06-29 12:21:58 +02:00
15ee202167
refactor: add serialVersionUID field to exception classes
continuous-integration/drone/push Build is passing
2024-06-29 10:51:39 +02:00
5f1f94f59c
feat: add custom_metadata, cas_required and delete_version_after fields
continuous-integration/drone/push Build is passing
2024-06-22 14:46:06 +02:00
e0711e6108
fix: rename enable_local_secret_id to local_secret_ids in AppRole model
2024-06-22 14:46:05 +02:00
a3393ae0cb
feat: add auth attribute to common response model
2024-06-22 14:46:04 +02:00
8ec160a436
feat: add mount_type attribute to common response model
2024-06-22 14:46:02 +02:00
69da6b9f14
feat: add missing num_uses field to AuthData
2024-06-22 12:49:01 +02:00
936928a4fb
feat: add Vault 1.16 and 1.17 flags to HealthResponse
2024-06-22 12:48:00 +02:00
20983e5089
test: test against Vault 1.17.0
continuous-integration/drone/push Build is passing
2024-06-14 16:58:56 +02:00
4258489dba
update copyright notice to 2024
2024-04-27 17:09:40 +02:00
e49216f611
docs: fix two typos in comments
continuous-integration/drone/push Build is passing
2024-04-27 12:06:55 +02:00
dd5adf897a
refactor: simplify JSON parsing in handleError()
...
Omit reading lines to String first and pass the reader directly to the
JSON mapper.
2024-04-27 12:04:44 +02:00
703cc0d87b
test: minor code clean-up
continuous-integration/drone/push Build is passing
2024-04-13 13:39:50 +02:00
c35760d0ab
test: use assertInstanceOf() where applicable
2024-04-13 13:39:40 +02:00
2f5b25d847
test: replace deprecated Field.isAccessible() calls
2024-04-13 13:38:56 +02:00
7681e9e2af
test: test against Vault 1.16.0
continuous-integration/drone/push Build is passing
2024-03-28 18:27:25 +01:00
531111cb2b
test against Vault 1.15.4
continuous-integration/drone/push Build is passing
2023-12-11 17:41:31 +01:00
151b58dc82
model: add "build_date" to SealResponse ( #73 )
continuous-integration/drone/push Build is passing
2023-12-03 15:11:10 +01:00
65fb01617d
model: extend AuthMethod model and embedded config ( #72 )
...
Introduce MountConfig and UserLockoutConfig models and add some missing
fields to AuthMethod.
2023-12-03 15:09:45 +01:00
097cb5415a
re-generate serial version of AuthData class
...
continuous-integration/drone/push Build is passing
Fixes: 2dff8930b7770eada7a6602cf138d07093d92efc
2023-12-03 15:09:12 +01:00
2dff8930b7
model: add MFA requirement data to auth response ( #71 )
continuous-integration/drone/push Build is passing
2023-12-03 14:44:15 +01:00
d82554974c
test against Vault 1.15.3
continuous-integration/drone/push Build is passing
2023-12-03 10:39:09 +01:00
52876ef3a4
close HTTPClient when running with JDK21 or newer ( #70 )
...
The Java HTTP client implements AutoCloseable since JDK 21. Closing the
client ensures that asynchronous operations and streams are properly
terminated.
As we support Java 11, we add any old school "finally" wrapper and
conditionally close the client when running on a modern platform.
2023-11-26 11:33:28 +01:00
62f2249a4d
remove redundant java.base requirement from module-info.java ( #69 )
continuous-integration/drone/push Build is passing
2023-11-26 11:08:06 +01:00
10965b01d6
Merge branch 'main' into develop
continuous-integration/drone/push Build is passing
2023-11-26 11:04:17 +01:00
08e8c9f090
test against Vault 1.15.0
continuous-integration/drone/push Build is failing
2023-09-27 20:18:34 +02:00
b72298f2a8
bump Vault versions in integration tests to 1.14.0 and 1.11.12
continuous-integration/drone/push Build is passing
2023-06-23 17:43:22 +02:00
226b6ad6c4
split lines above 120 characters
continuous-integration/drone/push Build is passing
2023-06-17 15:17:06 +02:00
d81fc4e5af
reorder members and elements to comply with language recommendations
2023-06-17 15:23:49 +02:00
1195b447a2
fix regression from redundant String mapping in SecretResponse getter
...
continuous-integration/drone/push Build is passing
Mapping a JSON string into String using a JSON parser will fail, so we
should use the string directly instead of applying double conversion.
Fixes: f3e1f01e38aa74ed20a8ca382e6821b540eb475c
2023-06-16 18:18:55 +02:00
f3e1f01e38
fix type conversion in SecretResponse getter method ( #67 )
...
continuous-integration/drone/push Build is failing
Converting the payload using toString() is not an appropriate way to
feed a JSON parser. We now use JSON roundtrip for type mapping and
introduce shortcuts of the type already matches the target type.
2023-06-16 17:43:30 +02:00