Skip to content

Commit

Permalink
initial restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
primetheus committed Aug 22, 2024
1 parent 3132837 commit 690d483
Show file tree
Hide file tree
Showing 11 changed files with 165 additions and 0 deletions.
Empty file added docs/README.md
Empty file.
59 changes: 59 additions & 0 deletions docs/active-directory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Active Directory

## Example ENV

```env
#####################
## GitHub Settings ##
#####################
WEBHOOK_SECRET=development
APP_ID=12345
PRIVATE_KEY_PATH=.ssh/team-sync.pem
#GHE_HOST=github.example.comEnterprise.
##################
## App Settings ##
##################
#VERIFY_SSL=False
USER_DIRECTORY=LDAP
USER_SYNC_ATTRIBUTE=username
#CHANGE_THRESHOLD=25
#OPEN_ISSUE_ON_FAILURE=true
#REPO_FOR_ISSUES=github-demo/demo-repo
#ISSUE_ASSIGNEE=githubber
SYNC_SCHEDULE=0 * * * *
TEST_MODE=false
ADD_MEMBER=falsepart of a team
REMOVE_ORG_MEMBERS_WITHOUT_TEAM=false
###############################
## Active Directory Settings ##
###############################
LDAP_SERVER_HOST=dc1.example.com
LDAP_SERVER_PORT=389
LDAP_BASE_DN="dc=example,dc=com"
LDAP_USER_BASE_DN="ou=People,dc=example,dc=com"
LDAP_GROUP_BASE_DN="ou=Groups,dc=example,dc=com"
LDAP_USER_FILTER="(&(objectClass=person)({ldap_user_attribute}={username}))"
LDAP_USER_ATTRIBUTE=uid
LDAP_USER_MAIL_ATTRIBUTE=mail
LDAP_GROUP_FILTER="(&(objectClass=posixGroup)(cn={group_name}))"
LDAP_GROUP_MEMBER_ATTRIBUTE=memberUid
LDAP_BIND_USER="cn=admin,dc=example,dc=com"
LDAP_BIND_PASSWORD="p4$$w0rd"
LDAP_SEARCH_PAGE_SIZE=1000
LDAP_USE_SSL=true
LDAP_SSL_PRIVATE_KEY=private.key
LDAP_SSL_CERTIFICATE=cert.pem
LDAP_SSL_VALIDATE=CERT_REQUIRED
LDAP_SSL_VERSION=PROTOCOL_TLS
LDAP_SSL_CA_CERTS=cacert.b64
####################
## Flask Settings ##
####################
FLASK_APP=app
FLASK_ENV=development
FLASK_RUN_PORT=5000
FLASK_RUN_HOST=0.0.0.0
```
47 changes: 47 additions & 0 deletions docs/azure-ad.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Azure AD

## Example ENV

```env
#####################
## GitHub Settings ##
#####################
WEBHOOK_SECRET=development
APP_ID=12345
PRIVATE_KEY_PATH=.ssh/team-sync.pem
#GHE_HOST=github.example.comEnterprise.
##################
## App Settings ##
##################
#VERIFY_SSL=False
USER_DIRECTORY=AAD
USER_SYNC_ATTRIBUTE=username
#CHANGE_THRESHOLD=25
#OPEN_ISSUE_ON_FAILURE=true
#REPO_FOR_ISSUES=github-demo/demo-repo
#ISSUE_ASSIGNEE=githubber
SYNC_SCHEDULE=0 * * * *
TEST_MODE=false
ADD_MEMBER=falsepart of a team
REMOVE_ORG_MEMBERS_WITHOUT_TEAM=false
#######################
## Azure AD Settings ##
#######################
AZURE_TENANT_ID="<tenant_id>"
AZURE_CLIENT_ID="<client_id>"
AZURE_CLIENT_SECRET="<client_secret>"
AZURE_APP_SCOPE=".default"
AZURE_API_ENDPOINT="https://graph.microsoft.com/v1.0"
AZURE_USERNAME_ATTRIBUTE=userPrincipalName
#AZURE_USE_TRANSITIVE_GROUP_MEMBERS=true
####################
## Flask Settings ##
####################
FLASK_APP=app
FLASK_ENV=development
FLASK_RUN_PORT=5000
FLASK_RUN_HOST=0.0.0.0
```
Empty file added docs/keycloack.md
Empty file.
59 changes: 59 additions & 0 deletions docs/ldap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# LDAP

## Example ENV

```env
#####################
## GitHub Settings ##
#####################
WEBHOOK_SECRET=development
APP_ID=12345
PRIVATE_KEY_PATH=.ssh/team-sync.pem
#GHE_HOST=github.example.comEnterprise.
##################
## App Settings ##
##################
#VERIFY_SSL=False
USER_DIRECTORY=LDAP
USER_SYNC_ATTRIBUTE=username
#CHANGE_THRESHOLD=25
#OPEN_ISSUE_ON_FAILURE=true
#REPO_FOR_ISSUES=github-demo/demo-repo
#ISSUE_ASSIGNEE=githubber
SYNC_SCHEDULE=0 * * * *
TEST_MODE=false
ADD_MEMBER=falsepart of a team
REMOVE_ORG_MEMBERS_WITHOUT_TEAM=false
###################
## LDAP Settings ##
###################
LDAP_SERVER_HOST=dc1.example.com
LDAP_SERVER_PORT=389
LDAP_BASE_DN="DC=example,DC=com"
LDAP_USER_BASE_DN="CN=Users,DC=example,DC=example"
LDAP_GROUP_BASE_DN="OU=Groups,DC=example,DC=example"
LDAP_USER_FILTER="(objectClass=person)"
LDAP_USER_ATTRIBUTE=sAMAccountName
LDAP_USER_MAIL_ATTRIBUTE=mail
LDAP_GROUP_FILTER="(&(objectClass=group)(cn={group_name}))"
LDAP_GROUP_MEMBER_ATTRIBUTE=member
LDAP_BIND_USER="[email protected]"
LDAP_BIND_PASSWORD="p4$$w0rd"
LDAP_SEARCH_PAGE_SIZE=1000
LDAP_USE_SSL=true
LDAP_SSL_PRIVATE_KEY=private.key
LDAP_SSL_CERTIFICATE=cert.pem
LDAP_SSL_VALIDATE=CERT_REQUIRED
LDAP_SSL_VERSION=PROTOCOL_TLS
LDAP_SSL_CA_CERTS=cacert.b64
####################
## Flask Settings ##
####################
FLASK_APP=app
FLASK_ENV=development
FLASK_RUN_PORT=5000
FLASK_RUN_HOST=0.0.0.0
```
Empty file added docs/okta.md
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 690d483

Please sign in to comment.