Giter VIP home page Giter VIP logo

Comments (7)

noamd-legit avatar noamd-legit commented on May 26, 2024 2

Cool that you found us there 😄

RE: ID Number:: Good point. Reviewing your pull requests made it clear to me how important it is. I'll create an issue for adding policies id numbers.

from legitify.

derekmurawsky avatar derekmurawsky commented on May 26, 2024

Additional thought, and possibly should be a separate issue... Should there be ID numbers of some kind for each of these policies? See examples like the CIS benchmarks. Here's an example from a docker benchmark scanner that clearly maps to those rules/policies. https://github.com/dev-sec/cis-docker-benchmark/blob/master/controls/container_images.rb

from legitify.

noamd-legit avatar noamd-legit commented on May 26, 2024

Thanks for your kind feedback @derekmurawsky! 🔥
This is a very valid point and we'll appreciate your help.
Actually, we started a collaboration with "OSSF security best practices" working group to create a "SCM Best Practices" guide and we'll probably need to modify the policies as you suggest sometime soon.

Regarding the ID numbers, currently the policy names act as unique IDs, for what use case do you think unique ID numbers could be useful for?

from legitify.

derekmurawsky avatar derekmurawsky commented on May 26, 2024

I found you through the OSSF Security Best Practices group. I'm a lurker/random contributor over there. 😄 I have a few philosophical issues with some of the policies you suggest, but I agree with the ones I've seen so far from a purely security perspective. (See previously linked comment for examples).

RE: ID Numbers When referencing, it is much easier to reference a number, like GH-1, than a name. It also allows the policy name to change without breaking other references (see CIS benchmark example in previous comment). Like database primary/foreign keys; you want to reference the key so names and other things can change easily. When looking at most standards out there, like NIST, CIS, CSA, etc, they all reference each-other by specific numbers and not titles. See this link for one example of such a mapping. I would suggest doing the same here for both consistency and ease of reference.

RE: Re-Titling, I'll try to get a draft together this week.

from legitify.

derekmurawsky avatar derekmurawsky commented on May 26, 2024

I worked on this a bit today and had a sample ready to push. The contributing guide says to open a PR, but mentions nothing about forking. Is it expected that I fork and PR from there? I tried pushing a docs/retitle-for-clarity branch and it was denied. I just forked and PR'd from there as I would probably forget otherwise. 😆 Let me know if there is alternate preferred process to follow.

from legitify.

derekmurawsky avatar derekmurawsky commented on May 26, 2024

Another general note: I believe it would make sense to separate the higher-level policy ideas from the specific implementations. You've started doing this by having groups of policies for specific areas, but I think it would be good to formalize that from a docs/policy side as well. I have no idea how complicated that would be to implement technically, but I think it would make life much easier in the long run, especially around the OSSF stuff. Perhaps this is a separate issue as well?

Examples in industry of what I call "The Policy Pyramid"

Examples:
Policy Section: Default Branch Controls
Specific Policy: The default branch should be protected
Implementation: The specific tests and implementation details for the various SCMs

Policy Section: Default Branch Controls
Specific Policy: The default branch should require review by more than two users before allowing a merge
Implementation: The specific tests and implementation details for the various SCMs

Policy Section: Global SCM Controls
Specific Policy: Limit number of Administrators
Implementation: The specific tests and implementation details for the various SCMs

By taking this approach, you can be more DRY as well. You only write the reasoning for the policy once at a higher level and then link to it for your specific implementations. This could also affect your numbering in #141 so I thought it best to bring up now.

There was a great example of this that I saw in one of the OPA-Related projects, but I can't find it off the cuff. I'll link it later if I can track it down.

ETA: Not the one I was originally thinking of, but regula does a decent job of mapping their controls using metadata/tags. This would be a huge value-add to enterprise users. This example specifically links to the AWS CIS Benchmark. If you developed a policy, you could link the same way. And if you support generic tagging, you could link to industry standards as well.

from legitify.

derekmurawsky avatar derekmurawsky commented on May 26, 2024

Just submitted the updates. Should be good to go now.

from legitify.

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.