Skip to content

Conversation

@paul-arthurthiery
Copy link

linuxserver.io


  • I have read the contributing guideline and understand that I have made the correct modifications

Description:

Update README to reflect changes following this PR.
Crowdsec API keys can now be generated outside of crowdsec and fed to both crowdsec and swag-crowdsec via environement variables, removing a step and simplifying the setup.

Benefits of this PR and context:

Guides users to pass an arbitrary string as the crowdsec-swag API key to both the crowdsec and swag images, thus removing the need to generate the API key from crowdsec.

How Has This Been Tested?

Crowdsec-side update should already have been tested in the previously mentioned PR.

I created a new docker compose file, added the CROWDSEC_API_KEY env variable to one, and BOUNCER_KEY_swag to the other. Built and ran the containers and both ran fine, correctly reporting the bouncer had been registered.

Ran on DSM 7

Source / References:

crowdsecurity/crowdsec#1341
https://www.linuxserver.io/blog/blocking-malicious-connections-with-crowdsec-and-swag

@LinuxServer-CI
Copy link

PR build pushed to ghcr.io/linuxserver/mods:pull_request_964

@thespad thespad self-assigned this Oct 7, 2024
@thespad thespad added the enhancement New feature or request label Oct 7, 2024
@paul-arthurthiery paul-arthurthiery force-pushed the swag-crowdsec-api-key-readme-update branch from 94c891d to 78c1192 Compare October 8, 2024 14:48
@LinuxServer-CI
Copy link

PR build pushed to ghcr.io/linuxserver/mods:pull_request_964

@thespad thespad merged commit e3ccf28 into linuxserver:swag-crowdsec Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants