Skip to content

Commit

Permalink
Add auth proxies config to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
twk3 committed Dec 14, 2024
1 parent bab4b79 commit 8181910
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"spellright.language": [

Check failure

Code scanning / check-spelling

Unrecognized Spelling Error

spellright is not a recognized word. (unrecognized-spelling)
"en_CA",
"en_US"
],
"spellright.documentTypes": [

Check failure

Code scanning / check-spelling

Unrecognized Spelling Error

spellright is not a recognized word. (unrecognized-spelling)
"markdown",
"latex",
"plaintext"
]
}
2 changes: 1 addition & 1 deletion docs/advanced/http-header-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Be careful! A misconfiguration on this next step could make your instance availa
The SSO provider then needs to be configured to pass an extra HTTP header to Actual. The details on how to do this are unique to the SSO provider, but the header `x-actual-password` needs to be set to your actual password.


If your setup needs it, it is possible to config trusted proxies. See [`trustedProxies` configuration](../config/index.md#trustedProxies) for details.
If your setup needs it, it is possible to configure trusted proxies for authentication. See [`trustedAuthProxies` configuration](../config/index.md#trustedAuthProxies) for details.

:::note
This feature is not an HTTP basic auth, but a different form of using a password. For HTTP basic auth or user accounts see [this issue](https://github.com/actualbudget/actual/issues/524)
Expand Down
14 changes: 12 additions & 2 deletions docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,21 @@ If you’re providing a custom frontend, make sure you provide an `index.html` i

## `loginMethod`

Change the authentication method for Actual (environment variable: `ACTUAL_LOGIN_METHOD`). The valid values are:
Change the default authentication method for Actual (environment variable: `ACTUAL_LOGIN_METHOD`). The valid values are:
* `"password"` (default) - This is standard password authentication
* `"header"` - Use the HTTP header `x-actual-password` to automatically login. This is for advanced use and if not done correctly could have security implications.
* `"openid"` - OpenId auth (in preview)

## `allowedLoginMethods`

The list of login methods that are permitted for auth. This defaults to `['password','header','openid']` (environment variable: `ACTUAL_ALLOWED_LOGIN_METHODS`, comma separated string).

If you wish to restrict the server from accepting certain login methods, you should update this setting.

## `trustedProxies`

Config the clients that are allowed to authentic with HTTP headers. This defaults to known internal IP ranges: `[10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7, ::1/128]` (environment variable: `ACTUAL_TRUSTED_PROXIES`, comma separated string).
Updates the servers request forwarding trust to remove known proxy IPs from the client IP list. This helps identify the client IP for things like rate limiting. This defaults to known internal IP ranges: `[10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7, ::1/128]` (environment variable: `ACTUAL_TRUSTED_PROXIES`, comma separated string).

## `trustedAuthProxies`

Configure the clients that are allowed to authentic with HTTP headers. This defaults to what is set in `trustedProxies`, but can be overridden independently. (environment variable: `ACTUAL_TRUSTED_AUTH_PROXIES`, comma separated string).

1 comment on commit 8181910

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@check-spelling-bot Report

🔴 Please review

See the 📜action log or 📝 job summary for details.

Unrecognized words (1)

spellright

To accept these unrecognized words as correct, you could run the following commands

... in a clone of the [email protected]:actualbudget/docs.git repository
on the twk3/add-auth-proxies branch (ℹ️ how do I use this?):

curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/main/apply.pl' |
perl - 'https://github.com/actualbudget/docs/actions/runs/12332631640/attempts/1'
If the flagged items are 🤯 false positives

If items relate to a ...

  • binary file (or some other file you wouldn't want to check at all).

    Please add a file path to the excludes.txt file matching the containing file.

    File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

    ^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

  • well-formed pattern.

    If you can write a pattern that would match it,
    try adding it to the patterns.txt file.

    Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

    Note that patterns can't match multiline strings.

Please sign in to comment.