Giter Site home page Giter Site logo

Comments (15)

fjogeleit avatar fjogeleit commented on July 19, 2024 1

I’ll take a look on it

from policy-reporter.

fjogeleit avatar fjogeleit commented on July 19, 2024 1

okay, will fix it and prepare another build

from policy-reporter.

fjogeleit avatar fjogeleit commented on July 19, 2024 1

there is no interval, it writes each event for new results as soon as a new result was detected

from policy-reporter.

hsenol1 avatar hsenol1 commented on July 19, 2024

I’ll take a look on it

In addition, I tried passingtarget.gcp.credentials: "" and target.gcp.secretRef: "secretName"
but still, have the same log output.

from policy-reporter.

fjogeleit avatar fjogeleit commented on July 19, 2024

I merged a fix for it, I try to release it at the end of the week. Do you want a test build you can try?

from policy-reporter.

hsenol1 avatar hsenol1 commented on July 19, 2024

Definitely, if you can provide a new image and tag, I'd like to try it. Thanks for such a quick solution.

from policy-reporter.

hsenol1 avatar hsenol1 commented on July 19, 2024

So how can I access the test build? I checked the CI pipeline but couldn't figure it out.

from policy-reporter.

fjogeleit avatar fjogeleit commented on July 19, 2024

I created a tag 2.19.0-RC1 which you can test. Just overwrite the image.tag value with 2.19.0-RC1.

from policy-reporter.

hsenol1 avatar hsenol1 commented on July 19, 2024

Tested it, still having the same error.

gcs: enabled: true # GCS (Google Cloud Storage) Service Accout Credentials credentials: "{}" # receive the credentials from an existing secret instead secretRef: "" # Mounted secret path by Secrets Controller, secret should be in json format mountedSecret: "" # GCS Bucket bucket: "trivy-docs" # minimum priority "" < info < warning < critical < error minimumPriority: "" # list of sources which should send to GCS sources: [] # Skip already existing PolicyReportResults on startup skipExistingOnStartup: true # Added as additional properties to each gcs event customFields: {} # filter results send by namespaces, policies and priorities filter: {} # add additional s3 channels with different configurations and filters channels: []

is the configuration I use. The error log is same as in the first post in this issue.

from policy-reporter.

fjogeleit avatar fjogeleit commented on July 19, 2024

credentials needs to be an empty string, not an empty object string.

from policy-reporter.

hsenol1 avatar hsenol1 commented on July 19, 2024

Also tried that, credentials: "" gives the same error.

from policy-reporter.

fjogeleit avatar fjogeleit commented on July 19, 2024

which error? error while creating GCS credentials ?

from policy-reporter.

hsenol1 avatar hsenol1 commented on July 19, 2024

In the pod logs, you see it as "1.7151700083750553e+09 error GoogleCloudStorage.Credentials has not been declared"

from policy-reporter.

fjogeleit avatar fjogeleit commented on July 19, 2024

You can test tag 2.19.0-RC2

from policy-reporter.

hsenol1 avatar hsenol1 commented on July 19, 2024

It says "GoogleCloudStorage configured" now :) Thank you. But I wonder, since there is no information on docs, what is the time interval for that? I mean, it writes to GCP Buckets for every 5 mins, 1 hour or so...

Again, thanks for quick build and solution.

from policy-reporter.

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.