Skip to content

bouncer -g command line merges API's from multiple accounts into the first acccount ID. #119

@Skyridr

Description

@Skyridr

When for example when you are running the command line crowdsec-cloudflare-bouncer -g API1, API2, it merges the zones from all other API's into the first api with as example:

    accounts:
        - id: xxx EMAIL's Account
          zones:
            - zone_id: ID1 #website1 <- this is correct
              actions:
                - managed_challenge
            - zone_id: ID2 #website2 <- Incorrect, belongs to the second API
              actions:
                - managed_challenge
            - zone_id: ID3 #website3 <- Incorrect, belongs to the second API
              actions:
                - managed_challenge
          token: token
          ip_list_prefix: crowdsec
          default_action: managed_challenge
          total_ip_list_capacity: 10000 # only this many latest IP decisions would be kept
        - id: xxx #second token email
          zones: []
          token: token
          ip_list_prefix: crowdsec
          default_action: managed_challenge
          total_ip_list_capacity: 10000 # only this many latest IP decisions would be kept
    update_frequency: 10s

It does properly add the ID/Email and token of the second API into the config file, just not the zones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions