Skip to content

secu-ma/polgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PolGen - AI powered policies Wiki

PolGen policy wiki. Setup in minutes. Create policies using GenAI. Use GitHub PRs as the document control and review process.

Demo at https://d5j5uiu2d6gl0.cloudfront.net/


image

Automate the creation of a Company Wiki with policies. Declare your policies in a structured way and let AI generate the content and package it in a user-friendly Wiki. Use GitHub PR review and approve workflow to manage document change control.

Why use PolGen

  • Create company policies using Gen AI. Only define the high-level requirements, let AI render it in human-readable form.
  • Deploy a blazing fast company wiki using Astro and the Starlight theme.
  • Serverless deployment on AWS, negligible hosting costs, zero maintenance.
  • Use GitHub PRs and Workflow Actions as document review and control. ISO 27001 compliant.

Demo

View our demo deployment at https://d5j5uiu2d6gl0.cloudfront.net/.

  • username: user
  • password: PolGen-Demo-30

Getting started

  • Fork this repo
  • Create an AWS account to deploy your wiki to.
  • (Recommended) Install and configure the AWS CLI (or boto3).
  • Run ./polgen.py init and follow the instructions to bootstrap the AWS account.
  • Sign up for Google Gemini and request an API key.
  • Create the following GitHub repository secret:
    • GEMINI_API_KEY
  • (Optional) Add the following GitHub repository variable:
    • COGNITO_USER_EMAIL (the email address for a user that will be able to access the Wiki. The user will receive an invitation with a temporary password.)
  • Create a branch from main
  • Edit policies in /policies/ (see /policies/examples/)
  • Push to GitHub
  • Create a PR to main
  • Let the GitHub workflow generate your content and add to your PR
  • (Optional) Edit the generated content
  • Approve the PR and merge
  • Let the GitHub workflow build and deploy your wiki with content

License

This project is licensed under the terms of the MPL 2.0 license.

Wiki based on the Astro Starlight theme under the MIT license.
Copyright (c) 2023 Astro contributors.