To contribute a blog article, submit a pull request under Posts with your article in markdown format.
OWASP Halifax is always looking for like minded organisations to support our activities. To donate, go to: Local Chapter Donation
- npm
- python
- ruby
- jekyll
Download:
git clone https://github.com/owasp/owasp-halifax.git
cd owasp-halifax/Build and Serve Locally:
make
make serveDocker Build:
docker build -t owasp-halifax .Docker Compose:
docker-compose up .All changes to the OWASP Halifax organisation must be submitted as GitHub pull requests.
Continious Integration:
All commits to the master branch must first pass the .travis.yml checks.
Both javascript and html linting is used so please check for syntax errors.
Commit Signing:
In order to contribute to the develop and master branches code signing is required on every commit on every
pull request.
To enable code signing, follow the GitHub Code Signing Guide
Generating a Key:
gpg --full-generate-keyAlternatively, if you have an older version:
gpg --gen-key
GPG consumes system entropy while generating keys and can stall if your system doesn't have enough.
To check entropy:
cat /proc/sys/kernel/random/entropy_avail...and available entropy should be >3000. If it isn't, consider installing rng-tools or generating additional IO.
If you already have GPG keys and would like to import them:
gpg --allow-secret-key-import --import private.key
gpg --import public.key
srm --dod private.keyOnce you have generated a key, you'll need to get your key-id:
gpg --list-secret-keys --keyid-format LONGgpg --edit-key [key-id]
gpg> adduidAnd it's helpful to make it trusted on the local machine (set level 5):
gpg> trustNOTE: You need to import this in the GitHub web interface in your settings. Follow the GitHub Guide to Adding a New GPG Key
Export Public Key:
gpg --armor --export [key-id]Once you have your GitHub account configured properly, fork the owasp-halifax repository. Follow the GitHub Guide to Forking a Repository for more information on how to do that.
Clone the repository into your local workspace and set your git local variables (in Git v2+) to enable code signing by default:
git clone <your forked repo>
cd <repo>
git config --local user.email [same email from adduid]
git config --local user.signingkey [key-id]
git config --local commit.gpgsign true
git add .
git commit -m "This is my first commit!"You should now be able to make commits.
If you are accessing tty issues try this:
echo "export GPG_TRUST=$(tty)" >> ~/.bashrc
source ~/.bashrcAlternatively, add a local script and use it instead:
mkdir ~/.gpg
vi ~/.gpg/owasp-halifax.gpg # Add your password in plaintext here. Don't worry - the user home is the right place!
cat >/usr/bin/gpg-owasp <<EOF
exec gpg --batch --passphrase-file ~/.gpg/owasp-halifax.gpg
EOF
chmod o+x /usr/bin/gpg-owasp
git config --local gpg.program gpg-owasp
If you have any trouble contributing to this repository please let us know and we can help.