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
Copy file name to clipboardExpand all lines: docs/docs/CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
10
10
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
11
11
12
12
## [Unreleased]
13
+
<!-- This changes the project to: -->
14
+
- Add `COOKIE_SECURE` option to set the cookie [Secure flag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies#block_access_to_your_cookies)
15
+
- Sets cookie defaults to use [SameSite: None](https://web.dev/articles/samesite-cookies-explained)
13
16
14
17
- Determine the `BIND_NETWORK`/`--bind-network` value from the bind address ([#677](https://github.com/TecharoHQ/anubis/issues/677)).
15
18
- Implement localization system. Find locale files in lib/localization/locales/.
Copy file name to clipboardExpand all lines: docs/docs/admin/installation.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ Anubis uses these environment variables for configuration:
67
67
|`COOKIE_DYNAMIC_DOMAIN`| false | If set to true, automatically set cookie domain fields based on the hostname of the request. EG: if you are making a request to `anubis.techaro.lol`, the Anubis cookie will be valid for any subdomain of `techaro.lol`. |
68
68
|`COOKIE_EXPIRATION_TIME`|`168h`| The amount of time the authorization cookie is valid for. |
69
69
|`COOKIE_PARTITIONED`|`false`| If set to `true`, enables the [partitioned (CHIPS) flag](https://developers.google.com/privacy-sandbox/cookies/chips), meaning that Anubis inside an iframe has a different set of cookies than the domain hosting the iframe. |
70
+
|`COOKIE_SECURE`|`true`| If set to `true`, enables the [Secure flag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies#block_access_to_your_cookies), meaning that the cookies will only be transmitted over HTTPS. If Anubis is used in an unsecure context (plain HTTP), this will be need to be set to false |
70
71
|`DIFFICULTY`|`4`| The difficulty of the challenge, or the number of leading zeroes that must be in successful responses. |
71
72
|`ED25519_PRIVATE_KEY_HEX`| unset | The hex-encoded ed25519 private key used to sign Anubis responses. If this is not set, Anubis will generate one for you. This should be exactly 64 characters long. See below for details. |
72
73
|`ED25519_PRIVATE_KEY_HEX_FILE`| unset | Path to a file containing the hex-encoded ed25519 private key. Only one of this or its sister option may be set. |
0 commit comments