Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic fail2ban support #847

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Add basic fail2ban support #847

merged 1 commit into from
Sep 23, 2024

Conversation

sissbruecker
Copy link
Owner

Failed login attempts now return a 401 status code, resulting in uwsgi logs like:

2024-09-23 14:12:50,557 WARNING Unauthorized: /login/
[pid: 20|app: 0|req: 3/9] ::ffff:192.168.65.1 () {54 vars in 1728 bytes} [Mon Sep 23 14:12:50 2024] POST /login/ => generated 5956 bytes in 276 msecs (HTTP/1.1 401) 11 headers in 519 bytes (1 switches on core 1)

Closes #489

@sissbruecker sissbruecker merged commit f570859 into master Sep 23, 2024
2 checks passed
@sissbruecker sissbruecker deleted the feat/fail2ban-support branch September 23, 2024 14:20
truecharts-admin referenced this pull request in truecharts/public Sep 23, 2024
…0c5dddf by renovate (#26784)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[sissbruecker/linkding](https://redirect.github.com/sissbruecker/linkding)
| minor | `1.34.0` -> `1.35.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>sissbruecker/linkding (sissbruecker/linkding)</summary>

###
[`v1.35.0`](https://redirect.github.com/sissbruecker/linkding/releases/tag/v1.35.0)

[Compare
Source](https://redirect.github.com/sissbruecker/linkding/compare/v1.34.0...v1.35.0)

#### What's Changed

- Add configuration options for pagination by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/835](https://redirect.github.com/sissbruecker/linkding/pull/835)
- Show placeholder if there is no preview image by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/842](https://redirect.github.com/sissbruecker/linkding/pull/842)
- Allow bookmarks to have empty title and description by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/843](https://redirect.github.com/sissbruecker/linkding/pull/843)
- Add clear buttons in bookmark form by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/846](https://redirect.github.com/sissbruecker/linkding/pull/846)
- Add basic fail2ban support by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/847](https://redirect.github.com/sissbruecker/linkding/pull/847)
- Add documentation website by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/833](https://redirect.github.com/sissbruecker/linkding/pull/833)
- Add go-linkding to community projects by
[@&#8203;piero-vic](https://redirect.github.com/piero-vic) in
[https://github.com/sissbruecker/linkding/pull/836](https://redirect.github.com/sissbruecker/linkding/pull/836)
- Fix a broken link to options documentation by
[@&#8203;zbrox](https://redirect.github.com/zbrox) in
[https://github.com/sissbruecker/linkding/pull/844](https://redirect.github.com/sissbruecker/linkding/pull/844)
- Use HTTPS repository link for devcontainer by
[@&#8203;voltagex](https://redirect.github.com/voltagex) in
[https://github.com/sissbruecker/linkding/pull/837](https://redirect.github.com/sissbruecker/linkding/pull/837)
- Bump requests version to 3.23.3 by
[@&#8203;voltagex](https://redirect.github.com/voltagex) in
[https://github.com/sissbruecker/linkding/pull/839](https://redirect.github.com/sissbruecker/linkding/pull/839)
- Bump path-to-regexp and astro in /docs by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/sissbruecker/linkding/pull/840](https://redirect.github.com/sissbruecker/linkding/pull/840)
- Bump dependencies by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/841](https://redirect.github.com/sissbruecker/linkding/pull/841)

#### New Contributors

- [@&#8203;piero-vic](https://redirect.github.com/piero-vic) made their
first contribution in
[https://github.com/sissbruecker/linkding/pull/836](https://redirect.github.com/sissbruecker/linkding/pull/836)
- [@&#8203;voltagex](https://redirect.github.com/voltagex) made their
first contribution in
[https://github.com/sissbruecker/linkding/pull/839](https://redirect.github.com/sissbruecker/linkding/pull/839)
- [@&#8203;zbrox](https://redirect.github.com/zbrox) made their first
contribution in
[https://github.com/sissbruecker/linkding/pull/844](https://redirect.github.com/sissbruecker/linkding/pull/844)

**Full Changelog**:
sissbruecker/linkding@v1.34.0...v1.35.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC45NC4xIiwidXBkYXRlZEluVmVyIjoiMzguOTQuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJhdXRvbWVyZ2UiLCJ1cGRhdGUvZG9ja2VyL2dlbmVyYWwvbm9uLW1ham9yIl19-->
@glottisfaun0000
Copy link

i'm new to fail2ban so glad i can set it up for linkding. could someone share their filter conf with the correct regex, or better yet maybe add an example filter conf to the docs or repository?

spiceratops referenced this pull request in spiceratops/k8s-gitops Sep 26, 2024
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[sissbruecker/linkding](https://redirect.github.com/sissbruecker/linkding)
| minor | `1.34.0` -> `1.35.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>sissbruecker/linkding (sissbruecker/linkding)</summary>

###
[`v1.35.0`](https://redirect.github.com/sissbruecker/linkding/releases/tag/v1.35.0)

[Compare
Source](https://redirect.github.com/sissbruecker/linkding/compare/v1.34.0...v1.35.0)

#### What's Changed

- Add configuration options for pagination by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/835](https://redirect.github.com/sissbruecker/linkding/pull/835)
- Show placeholder if there is no preview image by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/842](https://redirect.github.com/sissbruecker/linkding/pull/842)
- Allow bookmarks to have empty title and description by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/843](https://redirect.github.com/sissbruecker/linkding/pull/843)
- Add clear buttons in bookmark form by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/846](https://redirect.github.com/sissbruecker/linkding/pull/846)
- Add basic fail2ban support by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/847](https://redirect.github.com/sissbruecker/linkding/pull/847)
- Add documentation website by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/833](https://redirect.github.com/sissbruecker/linkding/pull/833)
- Add go-linkding to community projects by
[@&#8203;piero-vic](https://redirect.github.com/piero-vic) in
[https://github.com/sissbruecker/linkding/pull/836](https://redirect.github.com/sissbruecker/linkding/pull/836)
- Fix a broken link to options documentation by
[@&#8203;zbrox](https://redirect.github.com/zbrox) in
[https://github.com/sissbruecker/linkding/pull/844](https://redirect.github.com/sissbruecker/linkding/pull/844)
- Use HTTPS repository link for devcontainer by
[@&#8203;voltagex](https://redirect.github.com/voltagex) in
[https://github.com/sissbruecker/linkding/pull/837](https://redirect.github.com/sissbruecker/linkding/pull/837)
- Bump requests version to 3.23.3 by
[@&#8203;voltagex](https://redirect.github.com/voltagex) in
[https://github.com/sissbruecker/linkding/pull/839](https://redirect.github.com/sissbruecker/linkding/pull/839)
- Bump path-to-regexp and astro in /docs by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[https://github.com/sissbruecker/linkding/pull/840](https://redirect.github.com/sissbruecker/linkding/pull/840)
- Bump dependencies by
[@&#8203;sissbruecker](https://redirect.github.com/sissbruecker) in
[https://github.com/sissbruecker/linkding/pull/841](https://redirect.github.com/sissbruecker/linkding/pull/841)

#### New Contributors

- [@&#8203;piero-vic](https://redirect.github.com/piero-vic) made their
first contribution in
[https://github.com/sissbruecker/linkding/pull/836](https://redirect.github.com/sissbruecker/linkding/pull/836)
- [@&#8203;voltagex](https://redirect.github.com/voltagex) made their
first contribution in
[https://github.com/sissbruecker/linkding/pull/839](https://redirect.github.com/sissbruecker/linkding/pull/839)
- [@&#8203;zbrox](https://redirect.github.com/zbrox) made their first
contribution in
[https://github.com/sissbruecker/linkding/pull/844](https://redirect.github.com/sissbruecker/linkding/pull/844)

**Full Changelog**:
sissbruecker/linkding@v1.34.0...v1.35.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC45NC4wIiwidXBkYXRlZEluVmVyIjoiMzguOTQuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvY29udGFpbmVyIiwidHlwZS9taW5vciJdfQ==-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fail2ban support
2 participants