GithubHelp home page GithubHelp logo

Comments (8)

toniblyx avatar toniblyx commented on May 15, 2024 1

ok, I got it now! Thanks for the detailed explanation @jamestford. I didn't think on that use case like yours and makes a lot of sense to add "--output" to all prowler commands to force the output I want and prevent taking default values that may incur in wrong results. Does it make sense?

from prowler.

jamestford avatar jamestford commented on May 15, 2024

Okay, looks like this is an issue when using table output rather than json output based on the way the query action returns results. If you use json the policy will be scored correctly.

from prowler.

toniblyx avatar toniblyx commented on May 15, 2024

Hi @jamestford, thanks for your feedback. I have just tested it again and it works fine. What do you mean with table vs json? If you look at the code from here https://github.com/Alfresco/prowler/blob/master/prowler#L534 prowler checks just the output of each particular value in lowercase (true or false) unless you change the default output format it should work.

from prowler.

jamestford avatar jamestford commented on May 15, 2024

When running aws from the command line you can tell it to output to json format or in table format. I had it set for table since it is more human readable (details here: http://docs.aws.amazon.com/cli/latest/userguide/controlling-output.html). But I noticed prowler would fail using the table format using the --query option, but when switching to json the --query option worked property (i.e., --query 'PasswordPolicy.RequireSymbols' ). When I get back to my test machine I can provide some screenshots. Thanks for the response!

from prowler.

toniblyx avatar toniblyx commented on May 15, 2024

I got your point, but you don't need to change anything on the command line to get prowler proper results. Prowler does queries and filter results in different formats depending on each test. Or am I missing something?

from prowler.

jamestford avatar jamestford commented on May 15, 2024

from prowler.

jamestford avatar jamestford commented on May 15, 2024

from prowler.

toniblyx avatar toniblyx commented on May 15, 2024

Fixed with PR #67

from prowler.

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.