Skip to content

Contributing

We're thrilled that you'd like to contribute to this project! This is a community-driven effort, so every contribution counts. It doesn't even have to be anything major, it could be as simple as fixing a typo you came across. We welcome any and all contributions, as long as they follow basic and simple rules. Please read this page before making your first contribution.

What can I contribute?

Anything and everything related to cloud security or related topics. Got a tip for how to secure Azure Functions? Awesome! Got an open source project you use to help you write more secure Infrastructure as Code and want to share? Go for it. As long as it's related to cloud security and it's free to use, open a PR and we'll take a look!

How to contribute

Contriburing is simple:

  1. Fork to create your own version of this repository
  2. Add your changes to your own local version
  3. Create a pull request back into this repository
  4. Maintainers will review the pull request and approve or request changes

This project uses MkDocs Material theme and has multiple extensions/plugins installed. Refer to their documentation on plugins and reference to learn how to use it, and refer to our config file to see what's available.

How to edit this project locally

Before submitting a change, it's a good idea to make sure it works and looks right. A great way to do that is to run this on your local computer. Since this project uses MkDocs with Material Theme, it should be fairly easy to do as long as you have Python or Docker installed. Docker might end up being the easier and cleaner approach if you already have it installed.

If you need additional help, please reach out or you can reference instructions here.

Run this project locally, the Docker version

After downloading the project locally, navigate to the directory and run:

docker run --rm -it -v ${PWD}:/docs squidfunk/mkdocs-material

If this works successfully, you should be able to open the project in a browser window.

If that doesn't work or if you prefer to use Python instead, refer to the next steps below.

Run this project locally, the Python version

pip install mkdocs-material

This should also install MkDocs and other dependencies.

If you don't have pip or don't have Python installed, you will need to do that first. You may also need to update your Python to version 3.8 or higher.

Verify it worked

mkdocs --version

Install dependencies

While this project has very few dependencies, if you don't install them, it won't start properly.

Start by creating a python virtual environment (complete these steps in the project directory):

python3 -m venv .venv
source .venv/bin/activate

Then install requirements:

python -m pip install -r requirements.txt

Run MkDocs

With the above steps completed, you're ready to run the project locally!

mkdocs serve

If installed properly, it should start a live preview server at something like http://127.0.0.1:8000 which you can open up in your browser.

It will then update the site as you make changes locally!

If your contribution includes links, please follow these guidelines:

  • For internal links, meaning links that go to another page on this website/domain, you can simply link by using brackets [] immediately followed by paranthesis () wrapping the URL, like this (but without spaces): [example]( /aws/iam/about-iam ). Note that you don't need to put in the entire URL either. The end result: example
  • For external links, meaning any link that points to a different domain than this one, you must add an external link icon (with :octicons-link-external-16:) to indicate that it will take the user to a different website before the text, like this: [:octicons-link-external-16: example](https://cybr.com). The end result: example

As you can see, this cleanly and easily helps differentiate between internal and external links.

If you want to add a link to a resource that requires registration or payment, you must become a sponsor.

Open source tools only please

If you want to add or reference a tool in your contribution, it must be an open source tool that's available and accessible for free and without requiring registation.

If you want to link to a tool or resource that requires registration and/or a payment you can contact us to become a sponsor.

Why so strict about open source and free content?

We are doing it this way because we don't want every other link to turn into a paywall. Plus, sponsorships will help fund cool perks for this project.

Commonly used icons:

  • For links - :octicons-link-external-16:
  • For button-like links - :octicons-arrow-right-24: (refer to the home page to see what we mean)

Commonly used for code:

  • For code blocks, use three backticks (```) to start and end a code block. You want the backticks on their own lines so you can end up with this:

    1
    2
    3
    4
    5
    6
    7
    #!/bin/bash
    
    echo "What's your name?"
    
    read name
    
    echo "Hello, $name! Nice to meet you."
    

  • For inline code, like this, you can use a single backtick (`) to start and a single backtick to end

  • For providing examples, notes, warnings, etc...use admonitions like this:

Example of an admonition

This is an example admonition where you can provide examples of outputs or commands

These blocks start with three exclamation marks (!!!) View the documentation on how it works here.

  • You can also make them collapsible by using three question marks instead (???)
Some useful but not critical info

If you have something extra to share that adds value but isn't the primary point

  • Tips are also pretty cool:
Tip about access keys

Long-term access keys always start with AKIA... while temporary credentials start with ASIA...

  • Or warnings:
This permission can lead to PrivEsc

The iam:SetDefaultPolicyVersion can lead to nasty privilege escalation attacks. Only give that permissions to admins.

  • Or for an extreme warning:
Do NOT do this!

Do NOT share this secret access key with anyone! Not even your bestie!

  • You can add annotations to general text and also to code. This is a great way to add commentary or extra information without mucking up the code or whatever else