You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 504abc6
Browse filesBrowse the repository at this point in the historyBrowse files
- The client id and client secret are percent-decoded. Encode reserved characters such as `@`, `:`, `/`, `?`, `#` and
28
-
`%` in them.
29
-
- An IPv6 host must be enclosed in brackets, for example `chronicle://id:secret@[::1]:35000`.
27
+
- The client id and client secret are percent-decoded and must be valid UTF-8, without lone Unicode surrogates.
28
+
Encode reserved characters such as `@`, `:`, `/`, `?`, `#`, `[`, `]` and `%` in them. Raw Unicode whitespace,
29
+
control and format characters are rejected; explicitly percent-encoded credential characters are preserved.
30
+
- Host names have non-empty labels of 1–63 characters, starting and ending with a letter or digit. The total name
31
+
length is at most 253 characters, ignoring an optional trailing dot, which is preserved.
32
+
- An IPv6 host must be enclosed in brackets, for example `chronicle://id:secret@[::1]:35000`. For a scoped address,
33
+
both `[fe80::1%eth0]` and `[fe80::1%25eth0]` produce the host `fe80::1%eth0`.
30
34
- Direct kernel connections default to TLS (`options.tls` is `True`).
31
35
- Option names are case-insensitive.
32
36
@@ -66,13 +70,17 @@ Every rejection is a subclass of `ConnectionStringError` (itself a `ValueError`)
66
70
| --- | --- |
67
71
| A scheme other than `chronicle://`, including `chronicle+srv://`|`UnsupportedSchemeError`|
68
72
| No host |`MissingHostError`|
69
-
| An invalid host, or more than one host |`InvalidHostError`|
73
+
| An invalid host, empty or over-long host name labels, a host name over 253 characters, invalid or misplaced brackets, or more than one host |`InvalidHostError`|
70
74
| A port that is not an integer from 1 to 65535 |`InvalidPortError`|
71
75
| Only one of the client id and client secret, or an empty one |`IncompleteCredentialsError`|
72
-
| Credentials that are not valid percent-encoded UTF-8 |`InvalidCredentialsEncodingError`|
76
+
| Credentials containing invalid percent-encoded UTF-8 or lone Unicode surrogates|`InvalidCredentialsEncodingError`|
73
77
| Client credentials combined with a non-empty `apiKey`|`AmbiguousAuthenticationError`|
74
78
| A non-empty `apiKey` without credentials, any `auth=...`, a `skipTlsValidation` that is not `true` or `false`, any other query parameter, a path other than `/`, or a fragment |`UnsupportedOptionError`|
75
-
| Whitespace or control characters |`MalformedConnectionStringError`|
79
+
| Raw Unicode whitespace, control or format characters (categories `Cc`, `Cf`, `Zs`, `Zl`, `Zp`) |`MalformedConnectionStringError`|
80
+
81
+
Malformed bracketed hosts and unescaped brackets in the authority always raise `InvalidHostError` on every
0 commit comments