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

Bouncer Init through Environmental Variables adds additional value to the #1912

Closed
pewter77 opened this issue Dec 6, 2022 · 7 comments
Closed
Assignees

Comments

@pewter77
Copy link

pewter77 commented Dec 6, 2022

What happened?

Based on #1341 I've added the following to my environment in docker-compose for crowdsec:
- "BOUNCER_KEY_traefik=${CROWDSEC_API_TRAEFIK}"

but when I run cscli bouncers list I get a bouncer with the name KEY_traefik

I believe the parser has a bug.

Not breaking or anthing.

What did you expect to happen?

I expect the name of my bouncer to be "traefik"

How can we reproduce it (as minimally and precisely as possible)?

  1. Add - "BOUNCER_KEY_traefik=${CROWDSEC_API_TRAEFIK}" to your docker-compose.yaml file
  2. use the cscli in the docker container cscli bouncers list
  3. View Incorrect Name

Anything else we need to know?

No response

Crowdsec version

docker exec -t crowdsec cscli version      
2022/12/06 10:31:36 version: v1.4.2-3beb84bcfe05885fdd9a00f3124b4a949e45ce82
2022/12/06 10:31:36 Codename: alphaga
2022/12/06 10:31:36 BuildDate: 2022-11-15_12:52:20
2022/12/06 10:31:36 GoVersion: 1.19.3
2022/12/06 10:31:36 Platform: linux
2022/12/06 10:31:36 Constraint_parser: >= 1.0, <= 2.0
2022/12/06 10:31:36 Constraint_scenario: >= 1.0, < 3.0
2022/12/06 10:31:36 Constraint_api: v1
2022/12/06 10:31:36 Constraint_acquis: >= 1.0, < 2.0

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Enabled collections and parsers

$ cscli hub list -o raw
# paste output here

Acquisition config

```console # On Linux: $ cat /etc/crowdsec/acquis.yaml /etc/crowdsec/acquis.d/* # paste output here

On Windows:

C:> Get-Content C:\ProgramData\CrowdSec\config\acquis.yaml

paste output here

Config show

$ cscli config show
# paste output here

Prometheus metrics

$ cscli metrics
# paste output here

Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

@pewter77: Thanks for opening an issue, it is currently awaiting triage.

In the meantime, you can:

  1. Check Crowdsec Documentation to see if your issue can be self resolved.
  2. You can also join our Discord.
  3. Check Releases to make sure your agent is on the latest version.
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

@mmetc mmetc self-assigned this Dec 6, 2022
@LaurenceJJones
Copy link
Contributor

/triage accepted

@mmetc
Copy link
Contributor

mmetc commented Dec 6, 2022

Keeping this open until the next docker release. Thanks @pewter77 !

@LaurenceJJones
Copy link
Contributor

@mmetc can we close?

@mmetc
Copy link
Contributor

mmetc commented Dec 20, 2022

No stable release since the fix, but crowdsecurity/crowdsec:v1.4.4-rc1 has it

@LaurenceJJones
Copy link
Contributor

Isn't latest tag on docker 1.4.4-rc1?

@mmetc
Copy link
Contributor

mmetc commented Dec 20, 2022

no, latest always points to a stable one atm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants