Skip to content

haKC-ai/hakcai_secure_repo_template_creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

hakcAI_logo

                                          
                 ██████████                                                              
                █▓       ░██                                                             
                █▒        ██                                                  
    █████████████░        █████████████████ ████████████ ████████████      ████████████  
   ██         ███░        ███▓▒▒▒▒▒▒▒▒▒▒▒██ █▒▒▒▒▒▒▒▒▓████        █████████▓          ▒█  
   ██         ███         ███▒▒▒▒▒▒▒▒▒▒▒▒▓██████████████▓        ███▓▒      ▒▓░       ▒█  
   ██         ███        ░██▓▒▒▒▒▒▒▒▒▒▒▒▒▒▓██▓▒▒▒▒▒▒▒▒█▓        ███░       ░██░       ▒█  
   ██         ███        ▒██▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒██▓▒▒▒▒▒▒▒▓▒        ██  ▓        ██░       ▓█  
   ██         ██▓        ███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▓▒▒▒▒▒▒▒▓▒       ██   █        ██░       ▓  
   ██         ██▒        ██▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▒▒▒▓▒      ██    █        ▓█████████  
   ██                    ██▒▒▒▒▒▒▒▒█▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓▒   ▒███████ █░       ░▓        █  
   ██         ░░         ██▒▒▒▒▒▒▒▒██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓█ ▓        ░█ ▓       ░▒       ░█  
   ██         ██░       ░█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓█ █░        ▒ █                ░█ 
   ██         ██        ▓█▒▒▒▒▒▒▒▒▒██▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓█ █░        ▒ █░               ▒█  
    ██████████  ███████████▓██▓▓█▓█  █▓▒▒▒▒▒▒▒▒▒▓██▓██   █▓▓▓▓▓▓▓█    █▓▓▓▓▓▓▓▓▓▓▓▓▓▓██ 
  .:/====================█▓██▓██=========████▓█▓█ ███======> [ P R E S E N T S ] ====\:.
        /\                 ██▓██           █▓▓▓██ ██                                    
 _ __  /  \__________________█▓█_____________██▓██______________________________ _  _    _ 
_ __ \/ /\____________________██_____________ ███________ _________ __ _______ _  
    \  /         T H E   P I N A C L E    O F   H A K C I N G   Q U A L I T Y  
     \/             
            Name :                            haKC.ai Secure Repo Maker V1.0
            Collective:                       haKC.ai
            System:                           UNIX / Linux / MacOS / WinD0$3
            Size:                             1 Script + 1 Disk Worth of Cool
            Supplied by:                      corykennedy     
            Release date:                     Apr-28-2025 or 1994   

      GROUP NEWS: haKC.ai is Still Looking For haKC Coders & Vibe Artists, 
                  Drop corykennedy A Message on Any Fine BBS in the USA
                        Or On The Internet at cory@haKC.ai.                  
                                                                          /\        
       _ __ ___________________________________________________________  /  \__ _ _ 
       __ __ __ ______________________________________________________ \/ /\____ ___
         |  Notes from the author:                                    \  /         |
         |                                                             \/          |
         |  Tired of making secure, or have no idea how to make Python repos       |
         |  This script weaponizes secure coding by creating a security focused    |
         |  template. While you sit back and edit your .nanorc                     |
         |                                                                         |
         |  [*] Dynamic directory versioning.                                      |
         |  [*] Preloaded security enforcement (SBOM, Pip Audit, Pre-commit hooks) |
         |  [*] .env protection is baked in so tight it squeaks.                   |
         |                                                                         |
         |  [*] Generates a LICENSE, README, CI pipeline, CONTRIBUTING, SECURITY,  |
         |  [*] Commit Signing guide, and even an AIBOM because, why not.          |
         |  [*] Included Vibe Coding propt so AI respectz the shoutz               |
         |  [*] One script. One mindset: SECURITY or GTFO.                         |
         |                                                                         |
         |                                       Greetz to the real ones. cory     |
         |                                                                         |
         |  PS: Link to repo created by this installer can be found here           |
         |                          https://github.com/haKC-ai/SecureRepoTemplate  |
         |                                                                         |
         |*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*|


         |*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*|
         |                                                                         |
         |  Built-in Protection You Cannot Ignore:                                 |
         |                                                                         |
         |  1. Pre-commit hooks are automatically installed.                       |
         |     Every time you try to commit:                                       |
         |       - Black auto-formats your code (style, perfection, flow)          |
         |       - Flake8 checks your code for errors and stupidity                |
         |       - Gitleaks scans for any secrets, passwords, keys                 |
         |       - YAML files are validated, no broken pipelines allowed           |
         |                                                                         |
         |  2. If any of these checks fail, your commit is BLOCKED.                |
         |     No arguments. No exceptions. Fix it or get out.                     |
         |                                                                         |
         |  3. When you push to GitHub, a full Secure CI pipeline runs:            |
         |       - Installs fresh environment                                      |
         |       - Re-checks all your dependencies for vulnerabilities             |
         |       - Regenerates SBOM                                                |
         |       - Pip-audit scans your project for CVEs                           |
         |                                                                         |
         |  4. The rule: no insecure, broken, sloppy, or dangerous code            |
         |     shall ever touch the mainline.                                      |
         |                                                                         |
         |  5. Every Pull Request gets scanned by GitHub Actions:                  |
         |       - You cannot merge unless you pass every security gate            |
         |       - You cannot bypass. No "oops" allowed.                           |
         |                                                                         |
         |  This repo is not just vibe-coded                                       |
         |  It is weaponized against bad coding.                                   |
         |                                                                         |
         |                                                                         |
         |*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*|
        

         |*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*|
         |                                                                         |
         |  How To Run This Script and Build Your Secure Python Repo:              |
         |                                                                         |
         |  1. Open a terminal window.                                             |
         |                                                                         |
         |  2. Make the script executable:                                         |
         |       chmod +x haKCAI_create_secure_repo.sh                             |
         |                                                                         |
         |  3. Run the script:                                                     |
         |       ./haKCAI_create_secure_repo.sh                                    |
         |                                                                         |
         |  4. The script will auto-create a new project directory:                |
         |       hakcAI-python-secure-repo-template/                               |
         |       (If that already exists, it will create                           |
         |                         hakcAI-python-secure-repo-template_v2, v3, etc.)|  
         |                                                                         |
         |  5. Inside the repo, you will find:                                     |
         |       /src/             => Main application code                        |
         |       /tests/           => Unit tests                                   |
         |       /scripts/         => Helper scripts (like .env secure generator)  |
         |       /.github/         => CI workflows and issue templates             |
         |       LICENSE          => MIT license file                              |
         |       README.md        => This readme                                   |
         |       .gitignore       => Ignore rules for git                          |
         |       .pre-commit-config.yaml => Pre-commit hooks for code quality      |
         |       requirements.txt => Python package requirements                   |
         |       SECURITY.md      => Security reporting policy                     |
         |       CONTRIBUTING.md  => Contribution guide                            |
         |       SIGNING.md       => GPG commit signing instructions               |
         |       aibom.md         => AI Bill of Materials rules                    |
         |                                                                         |
         |  6. What installer.sh does for you:                                     |
         |       - Sets up a Python virtual environment (env/)                     |
         |       - Installs all security-first dependencies                        |
         |       - Auto-generates an SBOM (sbom.json)                              |
         |       - Runs pip-audit for vulnerability checking                       |
         |       - Builds a secure .env file (salted + hashed) if none exists      |
         |       - Installs pre-commit hooks for leak prevention                   |
         |                                                                         |
         |  7. Editing your project:                                               |
         |       - To define environment variables: edit .env.example              |
         |         (or modify your generated .env)                                 |
         |       - To update app logic: code inside /src/                          |
         |       - To expand tests: add them inside /tests/                        |
         |                                                                         |
         |  8. After setup, activate your virtual environment:                     |
         |       source env/bin/activate                                           |
         |                                                                         |
         |  9. Then run your app:                                                  |
         |       python src/main.py                                                |
         |                                                                         |
         |  10. Important:                                                         |
         |       - Never commit the real .env file                                 |
         |       - Keep secrets secret                                             |
         |       - Keep your repo clean, secure, and vibe-coded                    |
         |                                                                         |
         |*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*|
                                                                   
                                                           
         |*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*|
         |                                      Greetz to:[*]SHINOBI,DEATH PIRATES | 
         |     __|  _ \  __|  __| __ __| __  /      LEGACY CoWTownComputerCongress |
         |    (_ |    /  _|   _|     |      /                                SecKC |
         |   \___| _|_\ ___| ___|   _|   ____|  Shoutz to: [*] 14.4k Modem Jammers |
         |                                                                         |
 .:/=============================================[ bYњC O R Y H A K Cњ(C)1994!њ ] ====\:.        
Screenshot 2025-04-28 at 1 08 26 PM

Releases

No releases published

Packages

No packages published

Languages