Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/2.1.0 #1

Draft
wants to merge 342 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
342 commits
Select commit Hold shift + click to select a range
d692102
chore: update version number to 2.0.3
AnonymousWP Jan 26, 2024
32955f1
update codeql to v3
jxdv Feb 17, 2024
50e139f
Fix subdomains list empty in Target
psyray Jan 11, 2024
97a2909
Fix top menu text overflow in low resolution
psyray Jan 12, 2024
8633a1e
Update auto comment workflow due to deprecation warnings
ErdemOzgen Dec 10, 2023
54b9d53
Change Redirect URL after login to prevent 500 error
psyray Dec 9, 2023
8576b60
fix-1030: Add missing slug on target summary link
psyray Dec 9, 2023
f757da3
chore: update version number to 2.0.3
AnonymousWP Jan 26, 2024
7ba20b7
replace .format() with f-strings
jxdv Feb 13, 2024
7b0f9e2
Fix subdomains list empty in Target
psyray Jan 11, 2024
cd1b214
Fix top menu text overflow in low resolution
psyray Jan 12, 2024
e803810
Update auto comment workflow due to deprecation warnings
ErdemOzgen Dec 10, 2023
e2dca49
Change Redirect URL after login to prevent 500 error
psyray Dec 9, 2023
43deee1
fix-1030: Add missing slug on target summary link
psyray Dec 9, 2023
7cff813
chore: update version number to 2.0.3
AnonymousWP Jan 26, 2024
19240f9
remove unused uuid library
jxdv Feb 13, 2024
e6bedbf
remove non-existet params from docstrings
jxdv Feb 13, 2024
5378d83
optimize get_nmap_cmd based on TODO
jxdv Feb 13, 2024
c29a903
simplify xml2json func
jxdv Feb 13, 2024
1c5de66
use f-strings
jxdv Feb 13, 2024
7549635
Merge pull request #1198 from jxdv/update-codeql
yogeshojha Mar 5, 2024
8aa7d36
Merge pull request #1195 from jxdv/use-fstrings
yogeshojha Mar 5, 2024
5491cb3
Merge pull request #1194 from jxdv/optimize-common-funcs
yogeshojha Mar 5, 2024
d0b2bcb
Merge branch 'release/2.1.0' into 955-i-forgot-the-password
yogeshojha Mar 5, 2024
93af479
Update make.bat
yogeshojha Mar 5, 2024
c657e07
Merge pull request #1171 from yogeshojha/955-i-forgot-the-password
yogeshojha Mar 5, 2024
ae21433
Merge pull request #1133 from jxdv/py-cleanup
yogeshojha Mar 5, 2024
3969353
Merge branch 'release/2.1.0' into update-docker-compose
yogeshojha Mar 5, 2024
dd362ff
Merge pull request #1119 from yogeshojha/update-docker-compose
yogeshojha Mar 5, 2024
29a7488
Remove recursive loop in FFUF & add comments
psyray Dec 8, 2023
2289f07
Use URL instead of FUZZ to keep full path in name
psyray Dec 8, 2023
ebdafae
Extract full path from ffuf output
psyray Dec 9, 2023
951b95f
Remove leading slah in ffuf path extract
psyray Dec 9, 2023
df2e2e3
Extract full path from ffuf output
psyray Dec 9, 2023
b497659
Set and update default YAML config with all latest vars
psyray Feb 20, 2024
b43c785
Add checks for placeholder in custom tool task
psyray Dec 9, 2023
3f1582f
Add help for mandatory fields in custom scan engine
psyray Dec 9, 2023
b6bb0de
Whatportis - Replace purge by truncate to prevent port import error
psyray Feb 21, 2024
d8de8ce
ops(installation): fix nano not being installed when absent
AnonymousWP Dec 17, 2023
0cfb81c
ops(migrations): automate migration process
AnonymousWP Apr 18, 2023
dbd6e47
fix(migrations): add `sudo`
AnonymousWP Apr 18, 2023
b46e2a2
fix(migrations): revert sudo and use `echo`
AnonymousWP Apr 18, 2023
361559d
feat: add non-interactive installation parameter
AnonymousWP Nov 21, 2023
ea3c53f
fix some typos / mistakes in README
jxdv Dec 12, 2023
f65d429
Merge branch 'release/2.1.0' into 1135-feat-remove-installation-of-de…
yogeshojha Mar 5, 2024
061ced8
Merge pull request #1161 from yogeshojha/1135-feat-remove-installatio…
yogeshojha Mar 5, 2024
756d94a
use django-env in settings.py
fopina Apr 16, 2024
e88bd75
PoC fixed dependencies containers
Talanor May 9, 2024
bfe3b76
changing uid to be consistent
Talanor May 9, 2024
adf94d4
PoC demo of dev / prod compose
Talanor May 9, 2024
47f83da
forgot some Paths
Talanor May 9, 2024
3d321f6
adding migrate at start of celery container & adapting makefile
Talanor May 10, 2024
9b0d326
Merge branch 'fix/stable-containers' of ssh://git-infra/Astar/reNgine…
Talanor May 10, 2024
0c956cb
readding beat and fixing makefile
Talanor May 10, 2024
9147928
fixing Makefiles & beat entrypoint to allow for proper initialization…
Talanor May 10, 2024
7107574
Merge branch 'fix/stable-containers' of github:Talanor/rengine into f…
Talanor May 10, 2024
ee721df
revert debug to 0 for prod compose
Talanor May 10, 2024
eb50e3d
Mask API keys in settings view
Talanor May 12, 2024
c7f2492
ops(docker): use Docker Compose V2 commands
AnonymousWP Jan 9, 2024
2c9f694
ops(docker-compose): upgrade to 2.23.3
AnonymousWP Dec 8, 2023
5970e67
ops(make): add option to change password via `make`
AnonymousWP Jan 14, 2024
925cf4f
docs(readme): add ideal values for `MAX_CONCURRENCY`
AnonymousWP Nov 25, 2023
d7590da
Convert answer to lowercase
jxdv Dec 12, 2023
0262d54
update input + typo in install.sh
jxdv Dec 13, 2023
fd1f31f
not exposing postgres publicly
noraj Oct 3, 2021
2ccaafb
do not expose the internal container either
noraj Oct 3, 2021
39bc170
ops(migrations): automate migration process
AnonymousWP Apr 18, 2023
65b7dcd
fix(migrations): revert sudo and use `echo`
AnonymousWP Apr 18, 2023
8bff3bc
Add stack trace into male logs if DEBUG True
psyray Oct 18, 2023
14d36f0
Update README with debug procedure
psyray Oct 19, 2023
c1f8ef1
Update README.md
yogeshojha Oct 24, 2023
f52d000
README modifications
psyray Oct 24, 2023
b8a74c3
Add celery log for DEBUG
psyray Nov 20, 2023
9dba1cb
Add debug log to celery tasks part
psyray Nov 21, 2023
e423a5a
Fix typo
yogeshojha May 12, 2024
5198f05
Refactor CSS and add missing div
psyray Nov 18, 2023
e451660
Add external ip at bottom of the page
psyray Nov 18, 2023
ba0d0c4
Change bad var call for ip
psyray Nov 18, 2023
b91d6a8
Upgrade Django to 3.2.23
psyray Nov 19, 2023
ede6717
Update Django dependencies
psyray Nov 19, 2023
32a4542
feat: add non-interactive installation parameter
AnonymousWP Nov 21, 2023
c4abf57
feat(admin_settings): show role description users
AnonymousWP Nov 26, 2023
7c785b1
fix: typo
AnonymousWP Nov 26, 2023
e134412
Added initiated_by, aborted_by in model
yogeshojha Dec 1, 2023
2d62331
Added initiated by on start scan create_scan_object
yogeshojha Dec 4, 2023
29f5dbe
Added aborted user details
yogeshojha Dec 4, 2023
eb99775
show user details on scan history
yogeshojha Dec 4, 2023
5ba8a54
feat(issue-604): handle organisation in csv bulk upload of targets
SeanOverton Dec 6, 2023
dc70ad1
feat(issue-604): update ui text to explain adding organisation in tar…
SeanOverton Dec 6, 2023
8e354eb
Update web/targetApp/templates/target/add.html
SeanOverton Dec 6, 2023
2fc942e
Update web/targetApp/templates/target/add.html
SeanOverton Dec 6, 2023
eb345c5
feat(issue-492): added optional input for organization in add target …
SeanOverton Dec 6, 2023
d32e77b
feat(issue-462): added organization_name att. to addTargetForm class
SeanOverton Dec 6, 2023
c0de383
feat(issue-462): added organization_name handling to view
SeanOverton Dec 6, 2023
9ec2aca
feat(issue-462): added optional org input to target quick add modal
SeanOverton Dec 6, 2023
2e681f8
feat(issue-462): added handling of org_name in AddTarget APIView
SeanOverton Dec 6, 2023
e40e7b9
it's -> its
jxdv Dec 17, 2023
9925e4a
fix some typos / mistakes in README
jxdv Dec 12, 2023
ecbf370
add parenthesis
jxdv Dec 13, 2023
a0715f0
Update README.md
jxdv Dec 16, 2023
8a553fb
update key generation function
jxdv Dec 26, 2023
8b7c468
rename var
jxdv Dec 26, 2023
0f37678
update key length
jxdv Dec 29, 2023
460f560
Filter by important subdomains in API call
psyray Oct 19, 2023
0338d94
Add important subdomains button
psyray Oct 19, 2023
4fbe8d2
Add listener on is_important button
psyray Oct 19, 2023
72e4ef1
Fix indentation
psyray Jan 12, 2024
260303c
update codeql to v3
jxdv Feb 17, 2024
8debafa
replace .format() with f-strings
jxdv Feb 13, 2024
70aa537
remove non-existet params from docstrings
jxdv Feb 13, 2024
b250fe3
optimize get_nmap_cmd based on TODO
jxdv Feb 13, 2024
cd0312b
simplify xml2json func
jxdv Feb 13, 2024
559d11c
use f-strings
jxdv Feb 13, 2024
15fae92
small python cleanup
jxdv Dec 12, 2023
5fcc55a
ops(migrations): automate migration process
AnonymousWP Apr 18, 2023
d0da481
fix(migrations): add `sudo`
AnonymousWP Apr 18, 2023
96db99f
fix(migrations): revert sudo and use `echo`
AnonymousWP Apr 18, 2023
ff035ce
feat: add non-interactive installation parameter
AnonymousWP Nov 21, 2023
5a98ad4
fix some typos / mistakes in README
jxdv Dec 12, 2023
7bb9d42
remove duplicates
yogeshojha May 12, 2024
a023d40
Add ollama localgpt to report generator and AttackSuggestionGenerator…
ErdemOzgen Nov 30, 2023
9238735
Add Erdem Ozgen to CONTRIBUTORS.md
ErdemOzgen Nov 30, 2023
6cbbe0b
Add langchain library
ErdemOzgen Nov 30, 2023
266f898
Add ollama dockerservice
ErdemOzgen Nov 30, 2023
75ebc3d
Add ollama service to docker-compose
ErdemOzgen Nov 30, 2023
bc4f407
Add Docker command to run llama2-uncensored
ErdemOzgen Nov 30, 2023
d800081
remove exposed port and command
yogeshojha Apr 20, 2024
36967f8
added custom client for ollama
yogeshojha Apr 20, 2024
034c425
add ui for llm toolkit
yogeshojha Apr 20, 2024
2e48082
add new llm button
yogeshojha Apr 20, 2024
78bb203
added ollama manager to pull and delete models
yogeshojha Apr 21, 2024
474bb25
display available models in ui and create delete model js function
yogeshojha Apr 21, 2024
b8e9920
added add model and delete model ui and endpoints
yogeshojha Apr 21, 2024
1f35de3
added put method to select model
yogeshojha Apr 21, 2024
5ab92fc
Added ollama settings to store selected models
yogeshojha Apr 21, 2024
75cadb9
fix using ollama vs openai
yogeshojha Apr 21, 2024
bbf3ef8
fix requirements
yogeshojha May 12, 2024
95f5384
show error message when openai key is not set
yogeshojha May 12, 2024
56da132
Merge pull request #1259 from yogeshojha/feature/llm
yogeshojha May 12, 2024
0365285
Merge pull request #1230 from fopina/use/djangoenv
yogeshojha May 12, 2024
d7641f5
Merge pull request #1137 from iuime/master
yogeshojha May 12, 2024
ac722a6
Add arm64 support and reduce image size
May 21, 2024
2be3626
Split certs generation and docker starts and add notes
May 21, 2024
35586d8
Merge branch 'master' into release/2.1.0
May 21, 2024
76b0459
Merge branch 'release/2.1.0' into arm64-support
May 21, 2024
8bfda54
Bump release version to 2.1.0
May 22, 2024
7386c08
Merge branch 'master' into release/2.1.0
May 24, 2024
aec0bfc
Merge remote-tracking branch 'reNgine/release/2.1.0' into release/2.1.0
May 24, 2024
744d7f8
Merge branch 'release/2.1.0' into arm64-support
May 24, 2024
0cbad64
fix(migrations): rename migrations due to error while migrating
May 28, 2024
92efbe3
Merge branch 'master' into release/2.1.0
May 28, 2024
a54cc6f
Merge remote-tracking branch 'upstream/release/2.1.0' into fix/stable…
Talanor May 29, 2024
a33e86d
fix minor forgotten changes
Talanor May 29, 2024
2dde1a1
Merge remote-tracking branch 'upstream/release/2.1.0' into fix/hide-a…
Talanor May 29, 2024
3cb2bfb
Merge remote-tracking branch 'upstream/release/2.1.0' into fix/hide-a…
Talanor May 29, 2024
2262463
Merge pull request #80 from Talanor/fix/hide-api-keys-view
AnonymousWP May 29, 2024
c518617
Deleted web/core
Talanor May 29, 2024
02edbfd
Apply suggestions from code review
psyray Jun 3, 2024
b3d89e6
Merge pull request #82 from yarysp/arm64-support
AnonymousWP Jun 3, 2024
8c84a73
Merge pull request #84 from Talanor/fix/stable-containers
AnonymousWP Jun 10, 2024
ba548ea
chore(deps): bump django from 3.2.4 to 3.2.25 in /web
dependabot[bot] Jun 10, 2024
f2bd4b9
chore(deps): bump requests from 2.31.0 to 2.32.2 in /web
dependabot[bot] Jun 10, 2024
d4965b2
Merge branch 'master' into release/2.1.0
psyray Jun 15, 2024
f6083ca
Merge pull request #105 from Security-Tools-Alliance/dependabot/pip/w…
AnonymousWP Jul 2, 2024
e9bda67
Merge branch 'release/2.1.0' into dependabot/pip/web/django-3.2.25
AnonymousWP Jul 2, 2024
2f4f11c
Merge pull request #104 from Security-Tools-Alliance/dependabot/pip/w…
AnonymousWP Jul 2, 2024
69365cb
Merge branch 'master' into release/2.1.0
Aug 14, 2024
ce18655
build(ci): build Docker image and upload to GitHub container registry
AnonymousWP Aug 16, 2024
b7fcb39
build(ci): change secret key name
AnonymousWP Aug 16, 2024
5af131a
feat(env): Stop tracking .env file but keep it locally
Aug 16, 2024
e066e9b
feat(env): Add .env-dist with default values
Aug 16, 2024
e8386a5
feat(env): reduce concurrency task and add install type
Aug 16, 2024
63bc188
feat(install): move docker files and add the prebuilt image choice to…
Aug 16, 2024
15cf648
feat(dev): install dev dependencies with poetry
Aug 16, 2024
17d529f
fix(path): correction of paths following change of home app folder
Aug 16, 2024
0a29760
feat(build): add VSCode images build tasks
Aug 16, 2024
3c948c3
fix(ignore): ignore some vscode files
Aug 16, 2024
92dc626
fix(uninstall): fix uninstall script due to prebuilt images changes
Aug 16, 2024
5ec5438
fix(version): bump version to 2.1.0
Aug 16, 2024
1cdc02e
fix(scan): change default scan engine yaml link due to file move
Aug 16, 2024
30869d8
fix(ui): fix some forgotten reNgine-ng names
Aug 16, 2024
5e0d68d
feat(update): improve update script due to prebuilt image change
Aug 17, 2024
ebab283
fix(cidr): add CIDR import
Aug 18, 2024
4e1b695
Merge pull request #141 from Security-Tools-Alliance/fix-cidr-block-i…
AnonymousWP Aug 18, 2024
4675241
Apply text suggestions from code review
psyray Aug 19, 2024
3e9f77f
fix(docker): pin images version to latest version number
Aug 19, 2024
43af824
fix(install): move the .env check to the non-interactive install
Aug 19, 2024
e32259d
build(install): improve wording installation
AnonymousWP Aug 19, 2024
4b05985
fix(ui): correct bad names
Aug 19, 2024
af950cc
fix(install): restore removed text
psyray Aug 19, 2024
99b5a0a
Merge pull request #139 from Security-Tools-Alliance/install-prebuilt…
AnonymousWP Aug 19, 2024
faa9726
Delete auto-comment.yml
AnonymousWP Aug 19, 2024
0b1f3d9
fix(ui): restore static files path & remove beat entrypoint useless code
psyray Aug 20, 2024
c75f637
fix(ui): fix subdomain import with suffix more than 4 chars
psyray Aug 20, 2024
0cc542e
fix(scan): add missing parameter
psyray Aug 20, 2024
28126ca
Merge pull request #138 from Security-Tools-Alliance/106-cidocker-aut…
psyray Aug 20, 2024
33c1d58
Merge pull request #145 from Security-Tools-Alliance/fix-static-files…
AnonymousWP Aug 20, 2024
9127bbc
fix(conflicts): fix merge conflicts for branch release/2.1.0
psyray Aug 20, 2024
6cb85ea
Merge pull request #150 from Security-Tools-Alliance/fix-merge-confli…
AnonymousWP Aug 20, 2024
7fdab63
Merge branch 'release/2.1.0' into 9-fix-subdomain-import
AnonymousWP Aug 22, 2024
6f49a8c
Merge pull request #147 from Security-Tools-Alliance/9-fix-subdomain-…
AnonymousWP Aug 22, 2024
5b2f06e
build(ci): extract issue number from PR body
AnonymousWP Aug 22, 2024
21dc416
Merge pull request #153 from Security-Tools-Alliance/fix-ci-not-working
psyray Aug 22, 2024
f030632
docker(install): add ARM support for Celery Dockerfile
psyray Aug 24, 2024
3ae4219
build(docker): refactor Dockerfile to provide arm64 support
psyray Aug 25, 2024
ae25adc
Merge pull request #161 from Security-Tools-Alliance/fix-arm-build
AnonymousWP Aug 25, 2024
7da5e82
build(ci): add write permissions
AnonymousWP Aug 25, 2024
74003d2
Merge pull request #163 from Security-Tools-Alliance/fix-missing-perm…
psyray Aug 25, 2024
3719452
fix(ui): permit to link tab URL and history back into it
psyray Aug 26, 2024
66f29f5
Merge pull request #164 from Security-Tools-Alliance/11-fix-href-link
AnonymousWP Aug 26, 2024
3e16920
bug(celery): fix wafw00f install
psyray Aug 26, 2024
6434250
Merge pull request #166 from Security-Tools-Alliance/165-fix-wafw00f-…
AnonymousWP Aug 26, 2024
97a5c90
docs(readme): remove note
AnonymousWP Aug 26, 2024
ed5feb2
Merge pull request #167 from Security-Tools-Alliance/fix-note-in-readme
psyray Aug 26, 2024
1bd9aba
fix(ui): load default yaml config on add scan engine form
psyray Aug 27, 2024
f9dace6
Merge pull request #171 from Security-Tools-Alliance/170-fix-default-…
AnonymousWP Aug 27, 2024
03d6873
build(docker): improve makefile, docker verbosity & provide unit test…
psyray Aug 29, 2024
25f4ed7
fix(ui): tools settings page (#169)
psyray Aug 29, 2024
1ae599d
bug(oneforall): fix wrong s3 bucket reported
psyray Aug 29, 2024
fa73641
Merge pull request #176 from Security-Tools-Alliance/175-fix-oneforal…
AnonymousWP Aug 29, 2024
72fc7a6
fix(ssl): add SAN extension to the cert
psyray Aug 29, 2024
3241f76
bug(ui): fix xss stored
psyray Aug 29, 2024
bde74b6
Merge pull request #178 from Security-Tools-Alliance/177-add-san-exte…
AnonymousWP Aug 29, 2024
4290504
Merge pull request #180 from Security-Tools-Alliance/179-fix-xss-stored
AnonymousWP Aug 29, 2024
75f042f
fix(install): revert changes of prebuilt chain
psyray Aug 31, 2024
8c07b69
Merge pull request #183 from Security-Tools-Alliance/fix-prebuilt-ins…
AnonymousWP Aug 31, 2024
f9aaef2
fix(ui): fix 500 error on scan engine add
psyray Aug 31, 2024
fe4cf72
Merge pull request #184 from Security-Tools-Alliance/fix-default-yaml…
AnonymousWP Aug 31, 2024
f8ecea7
fix(readme): redirect install & update section to the wiki pages
psyray Sep 2, 2024
48ec4ac
Merge pull request #185 from Security-Tools-Alliance/link-readme-inst…
AnonymousWP Sep 2, 2024
5ca5915
build(ci): build docker images for each tag, release, push (#151)
psyray Sep 2, 2024
7f5b8bc
fix(install): improve root detection and set ownership on files
psyray Sep 2, 2024
3a48a44
style(install): Apply suggestions
psyray Sep 2, 2024
8843dd4
Merge pull request #186 from Security-Tools-Alliance/fix-install-bugs
AnonymousWP Sep 2, 2024
7ff6d01
build(images): restrict image creation, add correct tags and clean no…
psyray Sep 4, 2024
4d35400
fix(scan): fix clocked and scheduled scan not working (#182)
psyray Sep 4, 2024
11c43bb
fix(graph): de-duplicate dorks and vulnerabilities (#188)
psyray Sep 4, 2024
17b0f34
build(ci): improve CodeQL configuration
AnonymousWP Sep 4, 2024
a9b012a
Merge pull request #194 from Security-Tools-Alliance/build(ci)/add-co…
psyray Sep 4, 2024
9862f76
dev(django): install django extensions to have more commands
psyray Sep 6, 2024
9e45e8e
Merge pull request #196 from Security-Tools-Alliance/install-django-e…
AnonymousWP Sep 6, 2024
8183c04
fix(docker): replace staticfiles volume to prevent empty directory
psyray Sep 11, 2024
708b988
Merge pull request #199 from Security-Tools-Alliance/fix-staticfiles-…
AnonymousWP Sep 11, 2024
8fc8211
chore(ui): disable update button in tool arsenal
psyray Sep 12, 2024
1a716a8
Merge pull request #200 from Security-Tools-Alliance/disable-tool-update
AnonymousWP Sep 12, 2024
09a6ee9
ci(unit-tests): provide unit tests for UI (#189)
psyray Sep 13, 2024
09b837a
feat(todo): enhance todo functionality and error handling (#198)
psyray Sep 16, 2024
6840691
fix(custom_header): not correctly parsing parameters (#172)
psyray Sep 18, 2024
c3b031b
fix: change install_type value in .env-dist and add missing imports
psyray Sep 18, 2024
2b79276
Merge pull request #201 from Security-Tools-Alliance/fix-little-bugs
AnonymousWP Sep 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .env

This file was deleted.

45 changes: 45 additions & 0 deletions .env-dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#
# General
#
COMPOSE_PROJECT_NAME=rengine

#
# SSL specific configuration
#
AUTHORITY_NAME=reNgine-ng
AUTHORITY_PASSWORD=nSrmNkwT
COMPANY=reNgine-ng
DOMAIN_NAME=rengine-ng.example.com
COUNTRY_CODE=US
STATE=Georgia
CITY=Atlanta

#
# Database configurations
# /!\ POSTGRES_USER & PG_USER must be the same user or Celery will fail to start
#
POSTGRES_DB=rengine
POSTGRES_USER=rengine
PGUSER=rengine
POSTGRES_PASSWORD=hE2a5@K&9nEY1fzgA6X
POSTGRES_PORT=5432
POSTGRES_HOST=db

#
# Celery Scaling Configurations
# The number of CONCURRENCY defines how many scans will run in parallel
# See https://github.com/Security-Tools-Alliance/rengine-ng/wiki/quick#determining-concurrency-values for more information.
# Please always keep minimum of 5
#
MIN_CONCURRENCY=5
MAX_CONCURRENCY=30

#
# This section is for non-interactive installations only
#
# reNgine-ng installation type (prebuilt or source)
INSTALL_TYPE=pre-built
# reNgine-ng web interface super user
DJANGO_SUPERUSER_USERNAME=rengine
DJANGO_SUPERUSER_EMAIL=rengine@example.com
DJANGO_SUPERUSER_PASSWORD=Sm7IJG.IfHAFw9snSKv
1 change: 1 addition & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ changelog:
- refactor
- dependencies
- documentation
- ci
33 changes: 0 additions & 33 deletions .github/workflows/build-pr.yml

This file was deleted.

116 changes: 93 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,105 @@
name: Build Docker image
name: Docker Image CI

on:
pull_request:
paths:
- 'docker/**'
push:
branches: [ master ]
schedule:
- cron: '0 18 * * 5'
branches:
- "master"
- "release/**"
paths:
- 'docker/**'
tags:
- "v*.*.*"
release:
types: [published]
workflow_dispatch:
inputs:
push_image:
description: 'Push image to registry'
required: true
default: 'false'
type: choice
options:
- 'true'
- 'false'

env:
REGISTRY: ghcr.io
OWNER: security-tools-alliance
PROJECT: rengine-ng

jobs:
build:
name: Build Docker image
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
image: [celery, web, postgres, redis, ollama, certs, proxy]
platform: [linux/amd64, linux/arm64]
steps:
- name: Checkout the git repo
- name: Checkout code
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get version
id: get_version
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
else
echo "VERSION=latest" >> $GITHUB_OUTPUT
fi
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GHCR
if: github.event_name != 'pull_request' || github.event.inputs.push_image == 'true'
uses: docker/login-action@v3
with:
images: yogeshojha/rengine

- name: Build Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
registry: ${{ env.REGISTRY }}
username: ${{ vars.GHCR_USERNAME }}
password: ${{ secrets.GHCR_PAT }}

- name: Build and push
uses: docker/build-push-action@v6
with:
context: web/
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
context: ./docker/${{ matrix.image }}
file: ./docker/${{ matrix.image }}/Dockerfile
push: ${{ github.event_name != 'pull_request' || github.event.inputs.push_image == 'true' }}
tags: |
${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.PROJECT }}:rengine-${{ matrix.image }}-${{ steps.get_version.outputs.VERSION }}
${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.PROJECT }}:rengine-${{ matrix.image }}-latest
platforms: ${{ matrix.platform }}

update-release:
needs: build-and-push
if: github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Update release description
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
release_id=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
"https://api.github.com/repos/${{ github.repository }}/releases/latest" | \
jq -r .id)
images="celery web postgres redis ollama certs proxy"
image_list=""
for image in $images; do
image_list="${image_list}- ghcr.io/${{ env.OWNER }}/${{ env.PROJECT }}:rengine-${image}-${{ github.ref_name }}\n"
done
body="Docker images for this release:\n${image_list}"
curl -X PATCH -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/releases/${release_id}" \
-d "{\"body\": \"$body\"}"
25 changes: 25 additions & 0 deletions .github/workflows/close-issues-on-pr-merge-to-release-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Close issues on PR merge to release branch

on:
pull_request:
types:
- closed

jobs:
close-related-issues:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.ref, 'refs/heads/release/')
permissions:
issues: write
steps:
- name: Extract issue number
id: extract_issue_number
run: |
issue_number=$(echo "${{ github.event.pull_request.body }}" | grep -oE '#[0-9]+' | head -n 1 | tr -d '#')
echo "ISSUE_NUMBER=$issue_number" >> $GITHUB_ENV
- name: Close linked issues
uses: peter-evans/close-issue@v3
with:
issue-number: ${{ env.ISSUE_NUMBER }}
comment: "This issue is being closed because the related PR has been merged into a release branch."
39 changes: 25 additions & 14 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,46 @@
name: "Code Quality"
name: "CodeQL Advanced"

on:
push:
branches: [ master ]
branches: [ "**" ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
pull_request:
branches: [ master ]
schedule:
- cron: '0 18 * * 5'
branches: [ "**" ]
paths-ignore:
- '**/*.md'
- '**/*.txt'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
name: Analyze (${{ matrix.language }})
runs-on: ${{ 'ubuntu-latest' }}
permissions:
security-events: write
packages: read

strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'python' ]
include:
- language: javascript
build-mode: none
- language: python
build-mode: none

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2
build-mode: ${{ matrix.build-mode }}
queries: security-and-quality

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
52 changes: 52 additions & 0 deletions .github/workflows/delete-untagged-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Delete Untagged GHCR Images

on:
workflow_dispatch:
inputs:
dry_run:
description: 'Dry run (does not delete images)'
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
schedule:
- cron: '0 0 1,15 * *'

env:
REGISTRY: ghcr.io
OWNER: security-tools-alliance
PROJECT: rengine-ng

jobs:
delete-untagged-ghcr:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ vars.GHCR_USERNAME }}
password: ${{ secrets.GHCR_PAT }}

- name: Delete untagged images
uses: Chizkiyahu/delete-untagged-ghcr-action@v4
with:
token: ${{ secrets.GHCR_PAT }}
repository_owner: ${{ env.OWNER }}
repository: ${{ env.PROJECT }}
untagged_only: true
owner_type: org
except_untagged_multiplatform: true

- name: Summary
if: always()
env:
DRY_RUN: ${{ github.event.inputs.dry_run || 'false' }}
run: |
echo "## Summary of untagged image deletion" >> $GITHUB_STEP_SUMMARY
echo "- Dry run: $DRY_RUN" >> $GITHUB_STEP_SUMMARY
echo "- Owner: $OWNER" >> $GITHUB_STEP_SUMMARY
echo "- Project: $PROJECT" >> $GITHUB_STEP_SUMMARY
echo "Check the logs above for more details on deleted images or images that would have been deleted in dry run mode." >> $GITHUB_STEP_SUMMARY
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Create release
Expand Down
Loading
Loading