Giter Club home page Giter Club logo

Comments (6)

imrannayer avatar imrannayer commented on June 14, 2024 2

Not yet. I'll take care of it.

from terraform-google-cloud-armor.

imrannayer avatar imrannayer commented on June 14, 2024 1

@jasonloewen I have added exclude_ip (see example here). Can you point to github module directly and test this code and see if it works fine?

from terraform-google-cloud-armor.

imrannayer avatar imrannayer commented on June 14, 2024 1

@jasonloewen Can you plz confirm if this is correct syntax for multiple IP address exclusion?

"evaluateThreatIntelligence('iplist-known-malicious-ips', ['47.100.100.100','47.189.12.139'])"

from terraform-google-cloud-armor.

jasonloewen avatar jasonloewen commented on June 14, 2024

I got the code to commit when I used null as the exclude_ip value, but when I change the value to an IP I get the following error:

Error: Invalid template interpolation value

  on .terraform/modules/cloud_armor/main.tf line 384, in resource "google_compute_security_policy" "policy":
 384:           expression = rule.value["exclude_ip"] == null ? "evaluateThreatIntelligence('${rule.value["feed"]}')" : "evaluateThreatIntelligence('${rule.value["feed"]}',${rule.value["exclude_ip"]})"
    ├────────────────
    │ rule.value["exclude_ip"] is tuple with 1 element

Cannot include the given value in a string template: string required.

from terraform-google-cloud-armor.

jasonloewen avatar jasonloewen commented on June 14, 2024

I was able to apply this list using this format via the console:

evaluateThreatIntelligence('iplist-known-malicious-ips',['10.0.0.1','10.0.2.1','192.168.0.0/24'])

from terraform-google-cloud-armor.

imrannayer avatar imrannayer commented on June 14, 2024

@jasonloewen I have fixed the issue and it is working fine. Waiting for PR #57 merge.

from terraform-google-cloud-armor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.