encode user-provided URL parts (#109)
All checks were successful
CI / build-with-it (11, 1.2.0) (push) Successful in 50s
CI / build-with-it (11, 1.20.0) (push) Successful in 1m4s
CI / build-with-it (17, 1.2.0) (push) Successful in 46s
CI / build-with-it (17, 1.20.0) (push) Successful in 1m2s
CI / build-with-it (21, 1.2.0) (push) Successful in 46s
CI / build-with-it (true, 21, 1.20.0) (push) Successful in 54s

In various methods we use user-provided values like role names or lease
ids as parts of the API request path.

Apply URL encoding to these paths that are not expected to contain any
path separators or query args.
This commit is contained in:
2025-09-05 09:34:35 +02:00
parent e96ece3385
commit f79ed98986
4 changed files with 40 additions and 29 deletions

View File

@@ -5,6 +5,7 @@
### Improvements
* Extract API paths into a utility class (#108)
* Encode user-provided URL parts (#109)
### Fix
* Prevent potential off-by-1 error in internal `mapOf()` helper (#107)