summaryrefslogtreecommitdiffstats
path: root/vespaclient-java
Commit message (Collapse)AuthorAgeFilesLines
* Use Base62 for tokens and Base58 for keysTor Brede Vekterli2022-11-097-19/+15
| | | | | | | | * Base62 minimizes extra size overhead relative to Base64. * Base58 removes ambiguous characters from key encodings. Common for both bases is that they do not emit any characters that interfer with easily selecting them on web pages or in the CLI.
* Add a simple base conversion toolTor Brede Vekterli2022-11-085-2/+143
| | | | | | | | Currently supports converting from and to any combination of base {16, 58, 62, 64}. Input is read from STDIN and is intentionally limited in length due to the algorithmic complexity of base conversions that are not a power of two. Converted value is written to STDOUT.
* Encapsulate key identifier in own objectTor Brede Vekterli2022-11-023-4/+6
| | | | Enforces invariants and avoids having to pass raw byte arrays around.
* Add simple token info dumping toolTor Brede Vekterli2022-11-017-4/+103
| | | | Dumps key version, ID and HPKE components
* Let token key IDs be UTF-8 byte strings instead of just an integerTor Brede Vekterli2022-11-013-15/+23
| | | | | | | | | | | | | | This makes key IDs vastly more expressive. Max size is 255 bytes, and UTF-8 form is enforced by checking that the byte sequence can be identity-transformed to and from a string with UTF-8 encoding. In addition, we now protect the integrity of the key ID by supplying it as the AAD parameter to the key sealing and opening operations. Reduce v1 token max length of `enc` part to 255, since this is always an X25519 public key, which is never bigger than 32 bytes (but may be _less_ if the random `BigInteger` is small enough, so we still have to encode the length).
* Don't use legacy file existence checking APITor Brede Vekterli2022-11-012-7/+7
|
* Support standard IO streams for several encryption tool commandsTor Brede Vekterli2022-10-319-41/+137
| | | | | | | | | | | | Useful for avoiding the need for intermediate files, such as when piping the output of decryption to a Zstd decompressor. Adds stdio support to: * Encryption input * Decryption input * Decryption output Specified by substituting the file name with a single `-` character.
* Add basic tooling for public key encryption and decryptionTor Brede Vekterli2022-10-2715-0/+943
| | | | | | | Adds support for: * X25519 key pair generation * HPKE stream encryption with public key and token generation * HPKE stream decryption with private key
* * apply new common bootstrapArne Juul2022-10-249-0/+27
| | | | | * remove now-duplicated code * prefer using ${VESPA_HOME} environment variable
* Return X-Vespa-Ignored-Fields if fields were ignoredJon Bratseth2022-10-061-1/+2
|
* Simplify and unify the use of Timers.Henning Baldersheim2022-09-142-24/+10
|
* Add method to use Duration as timeout to make unit explicit, and avoid many ↵Henning Baldersheim2022-08-121-1/+2
| | | | magic conversions.
* Convert vespaclient-java to junit5Bjørn Christian Seime2022-07-2812-227/+240
|
* Remove temporary dependency on 'jetty-http' with test scopeBjørn Christian Seime2022-06-081-7/+0
|
* Set project version to 8-SNAPSHOTgjoranv2022-06-081-2/+2
|
* Bump full removal of priorities to Vespa 9Tor Brede Vekterli2022-06-083-9/+9
| | | | | Streaming search still uses this to ensure low latencies, and we don't have a replacement for priorities for this use case yet.
* Don't provide Jetty bundles from 'container' artifactBjørn Christian Seime2022-06-081-0/+13
| | | | Add dependency on 'jetty-http' with scope test instead of adding false dependencies with 'container-test'.
* Use DocumentOnly-fieldset by defaultTor Brede Vekterli2022-06-082-3/+3
| | | | Also remove deprecated and unsupported header-only visitor parameter
* use [document] not [all]Arne H Juul2022-06-083-7/+7
|
* Remove top-level <clients> element and LoadType conceptTor Brede Vekterli2022-06-087-86/+6
| | | | | | | Load types have not been properly supported for some time, so remove the remaining API surfaces exposing them. Since load type config was the last remaining use of <clients> in services.xml, remove that one as well.
* install_jar CMake functionHåkon Hallingstad2022-05-201-1/+1
|
* Use -Xlog:gc instead of -verbose:gcHarald Musum2022-05-101-1/+1
|
* switch to new-style configArne H Juul2022-04-121-113/+82
|
* Do not create dependency-reduced-pom.xmlgjoranv2022-04-081-0/+1
| | | | | | - From maven-shade-plugin 3.3.0 (needed for JDK 17), the DRP is installed and used instead of the ordinary pom.xml, causing transitive dependencies to disappear for dependent modules.
* Deprecate load types from Java APIsTor Brede Vekterli2022-04-057-11/+22
| | | | | | | | | | | Load types have not been used in practice for years, and supporting them in backend metrics etc. has long since been lacking. Prepare for removing these on Vespa 8. Most callsites are unchanged, aside from presumed safe changes such as constructors used by dependency injection. Have added new overloads without load types where these did not already exist to allow for an orderly transition.
* Deprecate DocumentAPI methods using explicit operation priorityTor Brede Vekterli2022-04-013-4/+8
| | | | | This is functionality that made more sense when we had spinning drives and no async write scheduling in the backend. Going away on Vespa 8.
* add special DocumentOnly fieldset in Java as wellArne H Juul2022-02-152-2/+7
| | | | | | * should have same behavior in Java and C++ * extend unit tests to verify * note various places where we want to change the default on Vespa 8 branch
* Improve maven-shade-plugin filter, and move to parent pom.gjoranv2022-02-031-11/+0
| | | | - Removes 223 build warnings (out of 562 for building non-test code)
* Revert "Exclude META-INF files and module-info.class from uber jars."Harald Musum2022-02-021-2/+4
|
* Exclude META-INF files and module-info.class from uber jars.gjoranv2022-02-021-4/+2
| | | | - Generate countless warnings for duplicates and breaking encapsulation.
* Remove undocumented parameter for deprecated featureTor Brede Vekterli2022-01-311-3/+0
|
* unify java warningsArne H Juul2022-01-061-7/+0
| | | | | * these were stricter than in parent, but to simplify we can just use compiler args from parent
* GC use of deprecated junit assertThat and unifyHenning Baldersheim2021-12-213-0/+3
|
* Update 2018 copyright notices.gjoranv2021-10-071-1/+1
|
* Update 2017 copyright notices.gjoranv2021-10-0750-50/+50
|
* 32m -> 64m direct memoryHenning Baldersheim2021-10-011-1/+1
|
* simplify slightly, remove accidental duplicationArne Juul2021-06-091-10/+5
|
* Remove echoJon Bratseth2021-06-091-1/+1
|
* Allow -Xmx to be specified as an argument to vespa-visitJon Bratseth2021-06-091-3/+17
|
* turn up the logging levelArne Juul2021-04-212-1/+8
| | | | | | | * these tools are also in the category where users will consider any INFO level message noise. Since they don't use the vespa LogSetup, just increase the threshold programmatically.
* from usage, it seems nobody wants INFO log messages from vespa-visitArne Juul2021-04-201-0/+4
|
* Remove all dependencies to jdisc_http_servicegjoranv2021-03-231-5/+0
|
* Fix linksJon Bratseth2021-02-152-2/+2
|
* Use "[Content:cluster=...]" for routes instead of (only-sometimes-)generated ↵Jon Marius Venstad2021-01-052-3/+3
| | | | -direct route
* Revert "Revert "Jonmv/remove storage policy""Jon Marius Venstad2021-01-054-14/+14
| | | | This reverts commit 75b2e4c11ea6463c335f1c77dab3fdb5493e5600.
* Revert "Jonmv/remove storage policy"Jon Marius Venstad2021-01-054-14/+14
|
* Use clustername-direct routes for visitorsJon Marius Venstad2021-01-044-5/+5
|
* Use just content cluster name as routeJon Marius Venstad2020-12-304-5/+5
|
* Replace use of [Storage... with [Content... and avoid overriding config idJon Marius Venstad2020-12-304-14/+14
|
* Merge pull request #13985 from vespa-engine/balder/minor-fieldset-cleanupJon Bratseth2020-08-055-16/+29
|\ | | | | Balder/minor fieldset cleanup