Skip to content

Commit a42d1a0

Browse files
authored
Verify spelling fixes pass check-spelling
2 parents 9f1d33c + 006dbc9 commit a42d1a0

File tree

10 files changed

+24
-24
lines changed

10 files changed

+24
-24
lines changed

data/botPolicies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dnsbl: false
5454

5555
# By default, send HTTP 200 back to clients that either get issued a challenge
5656
# or a denial. This seems weird, but this is load-bearing due to the fact that
57-
# the most aggressive scraper bots seem to really really want an HTTP 200 and
57+
# the most aggressive scraper bots seem to really, really, want an HTTP 200 and
5858
# will stop sending requests once they get it.
5959
status_codes:
6060
CHALLENGE: 200

docs/docs/CHANGELOG.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020
## v1.17.1: Asahi sas Brutus: Echo 1
2121

2222
- Added customization of authorization cookie expiration time with `--cookie-expiration-time` flag or envvar
23-
- Updated the `OG_PASSTHROUGH` to be true by default, thereby allowing OpenGraph tags to be passed through by default
23+
- Updated the `OG_PASSTHROUGH` to be true by default, thereby allowing Open Graph tags to be passed through by default
2424
- Added the ability to [customize Anubis' HTTP status codes](./admin/configuration/custom-status-codes.mdx) ([#355](https://github.com/TecharoHQ/anubis/issues/355))
2525

2626
## v1.17.0: Asahi sas Brutus
@@ -35,7 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3535
- Added support to allow to restrict the allowed redirect domains
3636
- Whitelisted [DuckDuckBot](https://duckduckgo.com/duckduckgo-help-pages/results/duckduckbot/) in botPolicies
3737
- Improvements to build scripts to make them less independent of the build host
38-
- Improved the OpenGraph error logging
38+
- Improved the Open Graph error logging
3939
- Added `Opera` to the `generic-browser` bot policy rule
4040
- Added FreeBSD rc.d script so can be run as a FreeBSD daemon
4141
- Allow requests from the Internet Archive
@@ -53,9 +53,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5353
- Fixed mojeekbot user agent regex
5454
- Added support for running anubis behind a base path (e.g. `/myapp`)
5555
- Reduce Anubis' paranoia with user cookies ([#365](https://github.com/TecharoHQ/anubis/pull/365))
56-
- Added support for Opengraph passthrough while using unix sockets
57-
- The opengraph subsystem now passes the HTTP `HOST` header through to the origin
58-
- Updated the `OG_PASSTHROUGH` to be true by default, thereby allowing OpenGraph tags to be passed through by default
56+
- Added support for Open Graph passthrough while using unix sockets
57+
- The Open Graph subsystem now passes the HTTP `HOST` header through to the origin
58+
- Updated the `OG_PASSTHROUGH` to be true by default, thereby allowing Open Graph tags to be passed through by default
5959

6060
## v1.16.0
6161

@@ -69,7 +69,7 @@ The following features are the "big ticket" items:
6969
- A prebaked tarball has been added, allowing distros to build Anubis like they could in v1.15.x
7070
- The placeholder Anubis mascot has been replaced with a design by [CELPHASE](https://bsky.app/profile/celphase.bsky.social)
7171
- Verification page now shows hash rate and a progress bar for completion probability
72-
- Added support for [OpenGraph tags](https://ogp.me/) when rendering the challenge page. This allows for social previews to be generated when sharing the challenge page on social media platforms ([#195](https://github.com/TecharoHQ/anubis/pull/195))
72+
- Added support for [Open Graph tags](https://ogp.me/) when rendering the challenge page. This allows for social previews to be generated when sharing the challenge page on social media platforms ([#195](https://github.com/TecharoHQ/anubis/pull/195))
7373
- Added support for passing the ed25519 signing key in a file with `-ed25519-private-key-hex-file` or `ED25519_PRIVATE_KEY_HEX_FILE`
7474

7575
The other small fixes have been made:

docs/docs/admin/configuration/expressions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This is an advanced feature and as such it is easy to get yourself in trouble wi
1818
1919
## Common Expression Language (CEL)
2020
21-
CEL is an expression language made by Google as a part of their access control lists system. As programs grow more complicated and users have the need to express more complicated security requirements, they often want the ability to just run a small bit of code to check things for themselves. CEL expressions are built for this. They are implictly sandboxed so that they cannot affect the system they are running in and also designed to evaluate as fast as humanly possible.
21+
CEL is an expression language made by Google as a part of their access control lists system. As programs grow more complicated and users have the need to express more complicated security requirements, they often want the ability to just run a small bit of code to check things for themselves. CEL expressions are built for this. They are implicitly sandboxed so that they cannot affect the system they are running in and also designed to evaluate as fast as humanly possible.
2222
2323
Imagine a CEL expression as the contents of an `if` statement in JavaScript or the `WHERE` clause in SQL. Consider this example expression:
2424

@@ -79,7 +79,7 @@ For this rule, if a request comes in from `8.8.8.8` or `1.1.1.1`, Anubis will de
7979

8080
#### `all` blocks
8181

82-
An `all` block that contains a list of expessions. If all expressions in the list return `true`, then the action specified in the rule will be taken. If any of the expressions in the list returns `false`, Anubis will move on to the next rule.
82+
An `all` block that contains a list of expressions. If all expressions in the list return `true`, then the action specified in the rule will be taken. If any of the expressions in the list returns `false`, Anubis will move on to the next rule.
8383

8484
For example, consider this rule:
8585

docs/docs/admin/configuration/open-graph.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Open Graph Configuration
55

66
# Open Graph Configuration
77

8-
This page provides detailed information on how to configure [OpenGraph tag](https://ogp.me/) passthrough in Anubis. This enables social previews of resources protected by Anubis without having to exempt each scraper individually.
8+
This page provides detailed information on how to configure [Open Graph tag](https://ogp.me/) passthrough in Anubis. This enables social previews of resources protected by Anubis without having to exempt each scraper individually.
99

1010
## Configuration Options
1111

docs/docs/admin/environments/traefik.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ services:
174174
networks:
175175
- traefik
176176
labels:
177-
- traefik.enable=true # Eneabling Traefik
177+
- traefik.enable=true # Enabling Traefik
178178
- traefik.docker.network=traefik # Telling Traefik which network to use
179179
- traefik.http.routers.target2.rule=Host(`another.com`) # Only Matching Requests for example.com
180180
- traefik.http.routers.target2.entrypoints=websecure # Listening on the exclusive Anubis Network

docs/docs/admin/installation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Anubis uses these environment variables for configuration:
5454
| `BASE_PREFIX` | unset | If set, adds a global prefix to all Anubis endpoints. For example, setting this to `/myapp` would make Anubis accessible at `/myapp/` instead of `/`. This is useful when running Anubis behind a reverse proxy that routes based on path prefixes. |
5555
| `BIND` | `:8923` | The network address that Anubis listens on. For `unix`, set this to a path: `/run/anubis/instance.sock` |
5656
| `BIND_NETWORK` | `tcp` | The address family that Anubis listens on. Accepts `tcp`, `unix` and anything Go's [`net.Listen`](https://pkg.go.dev/net#Listen) supports. |
57-
| `COOKIE_DOMAIN` | unset | The domain the Anubis challenge pass cookie should be set to. This should be set to the domain you bought from your registrar (EG: `techaro.lol` if your webapp is running on `anubis.techaro.lol`). See [here](https://stackoverflow.com/a/1063760) for more information. |
57+
| `COOKIE_DOMAIN` | unset | The domain the Anubis challenge pass cookie should be set to. This should be set to the domain you bought from your registrar (EG: `techaro.lol` if your webapp is running on `anubis.techaro.lol`). See this [stackoverflow explanation of cookies](https://stackoverflow.com/a/1063760) for more information. |
5858
| `COOKIE_EXPIRATION_TIME` | `168h` | The amount of time the authorization cookie is valid for. |
5959
| `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. |
6060
| `DIFFICULTY` | `4` | The difficulty of the challenge, or the number of leading zeroes that must be in successful responses. |

internal/ogtags/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func TestIntegrationGetOGTags(t *testing.T) {
9393
expectError: false,
9494
},
9595
{
96-
name: "Non-existent page",
96+
name: "Nonexistent page",
9797
path: "/not-found",
9898
query: "",
9999
expectedTags: nil,

lib/anubis_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ func TestCookieCustomExpiration(t *testing.T) {
183183
q.Set("elapsedTime", fmt.Sprint(elapsedTime))
184184
req.URL.RawQuery = q.Encode()
185185

186-
requestRecieveLowerBound := time.Now()
186+
requestReceiveLowerBound := time.Now()
187187
resp, err = cli.Do(req)
188-
requestRecieveUpperBound := time.Now()
188+
requestReceiveUpperBound := time.Now()
189189
if err != nil {
190190
t.Fatalf("can't do challenge passing")
191191
}
@@ -208,8 +208,8 @@ func TestCookieCustomExpiration(t *testing.T) {
208208
return
209209
}
210210

211-
expirationLowerBound := requestRecieveLowerBound.Add(ckieExpiration)
212-
expirationUpperBound := requestRecieveUpperBound.Add(ckieExpiration)
211+
expirationLowerBound := requestReceiveLowerBound.Add(ckieExpiration)
212+
expirationUpperBound := requestReceiveUpperBound.Add(ckieExpiration)
213213
// Since the cookie expiration precision is only to the second due to the Unix() call, we can
214214
// lower the level of expected precision.
215215
if ckie.Expires.Unix() < expirationLowerBound.Unix() || ckie.Expires.Unix() > expirationUpperBound.Unix() {
@@ -273,9 +273,9 @@ func TestCookieSettings(t *testing.T) {
273273
q.Set("elapsedTime", fmt.Sprint(elapsedTime))
274274
req.URL.RawQuery = q.Encode()
275275

276-
requestRecieveLowerBound := time.Now()
276+
requestReceiveLowerBound := time.Now()
277277
resp, err = cli.Do(req)
278-
requestRecieveUpperBound := time.Now()
278+
requestReceiveUpperBound := time.Now()
279279
if err != nil {
280280
t.Fatalf("can't do challenge passing")
281281
}
@@ -302,8 +302,8 @@ func TestCookieSettings(t *testing.T) {
302302
t.Errorf("cookie domain is wrong, wanted local.cetacean.club, got: %s", ckie.Domain)
303303
}
304304

305-
expirationLowerBound := requestRecieveLowerBound.Add(anubis.CookieDefaultExpirationTime)
306-
expirationUpperBound := requestRecieveUpperBound.Add(anubis.CookieDefaultExpirationTime)
305+
expirationLowerBound := requestReceiveLowerBound.Add(anubis.CookieDefaultExpirationTime)
306+
expirationUpperBound := requestReceiveUpperBound.Add(anubis.CookieDefaultExpirationTime)
307307
// Since the cookie expiration precision is only to the second due to the Unix() call, we can
308308
// lower the level of expected precision.
309309
if ckie.Expires.Unix() < expirationLowerBound.Unix() || ckie.Expires.Unix() > expirationUpperBound.Unix() {

lib/policy/celchecker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ func NewCELChecker(cfg *config.ExpressionOrList) (*CELChecker, error) {
2828
if cfg.Expression != "" {
2929
src = cfg.Expression
3030
var iss *cel.Issues
31-
interm, iss := env.Compile(src)
31+
uncheckedAst, iss := env.Compile(src)
3232
if iss != nil {
3333
return nil, iss.Err()
3434
}
3535

36-
ast, iss = env.Check(interm)
36+
ast, iss = env.Check(uncheckedAst)
3737
if iss != nil {
3838
return nil, iss.Err()
3939
}

yeetfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $`npm run assets`;
3737
// NOTE(Xe): Fixes #217. This is a "half baked" tarball that includes the harder
3838
// parts for deterministic distros already done. Distributions like NixOS, Gentoo
3939
// and *BSD ports have a difficult time fitting the square peg of their dependency
40-
// model into the bazarr of round holes that various modern languages use. Needless
40+
// model into the bazaar of round holes that various modern languages use. Needless
4141
// to say, this makes adoption easier.
4242
tarball.build({
4343
name: "anubis-src-vendor",

0 commit comments

Comments
 (0)