Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

GitLab support, content searching, performance enhancements, docker support #194

Open
wants to merge 262 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
262 commits
Select commit Hold shift + click to select a range
7e6ec0c
formatting only
codeEmitter Mar 2, 2020
4d71b7b
Error text correction
codeEmitter Mar 2, 2020
dc5b9ae
break out a validation step
codeEmitter Mar 2, 2020
9e4ce90
setup a github client if a github token is present
codeEmitter Mar 2, 2020
14bd1b7
initialize a gitlab client if a token is present
codeEmitter Mar 2, 2020
0659a22
Merge remote-tracking branch 'origin/establish-gitlab-session'
codeEmitter Mar 2, 2020
db9ebe3
subpackage github specifics
codeEmitter Mar 2, 2020
5c268c7
factor out common scm components
codeEmitter Mar 2, 2020
69a0d8a
names mean things
codeEmitter Mar 2, 2020
705ebb5
factor out a package for github specific things
codeEmitter Mar 2, 2020
2f0aa96
define common types
codeEmitter Mar 2, 2020
001fcd4
properly set the user agent
codeEmitter Mar 2, 2020
42d6ba6
WIP: stubb in gitlab package exported method
codeEmitter Mar 2, 2020
898198b
get user information
codeEmitter Mar 3, 2020
2e84d3b
return a single user and simplify
codeEmitter Mar 3, 2020
5642b8b
namespace gitlab/github structs on session
codeEmitter Mar 3, 2020
d5d6d79
apply some constants for reliability
codeEmitter Mar 4, 2020
e1d1343
try to retieve an org first, if that fails try for a user
codeEmitter Mar 4, 2020
d621e93
stub in retrieval of org members based on available token
codeEmitter Mar 4, 2020
3d93bd1
ignore debug binary output
codeEmitter Mar 4, 2020
6334bce
better error handling
codeEmitter Mar 4, 2020
b33fcb4
get organization members from gitlab group id
codeEmitter Mar 4, 2020
73e87a4
Merge remote-tracking branch 'origin/gather-gitlab-targets'
codeEmitter Mar 4, 2020
ce1bd76
WIP get gitlab repository info
codeEmitter Mar 4, 2020
0a3143b
compose functions to retrieve user and group repos in thread isolation
codeEmitter Mar 5, 2020
39effdb
Merge remote-tracking branch 'origin/gather-gitlab-repositories'
codeEmitter Mar 5, 2020
66ab671
better file names
codeEmitter Mar 5, 2020
94d3b97
repackage git functionality specific to github
codeEmitter Mar 5, 2020
a99aeba
group private functions together
codeEmitter Mar 6, 2020
227ff95
clone gitlab repos
codeEmitter Mar 6, 2020
5fe41bc
authenticate to clone private gitlab repositories that the provided t…
codeEmitter Mar 6, 2020
3762c52
factor out common functions related to source control
codeEmitter Mar 6, 2020
13db8cb
set proper scope
codeEmitter Mar 6, 2020
9e3c508
log the clone url for easier debugging
codeEmitter Mar 6, 2020
035e7ee
cleanup moved functions
codeEmitter Mar 6, 2020
b3fd9f9
pass a clone configuration type fo github clones
codeEmitter Mar 6, 2020
3e6bebc
Merge remote-tracking branch 'origin/analyze-gitlab-repos'
codeEmitter Mar 6, 2020
60d82f4
set gitlab repo urls
codeEmitter Mar 6, 2020
0463308
adjust raw file GET url for gitlab sessions
codeEmitter Mar 9, 2020
9081f32
add script to generate code for ./core/bindata.go
codeEmitter Mar 9, 2020
05a025e
show proper host name on individual results
codeEmitter Mar 9, 2020
3b9dd91
disable buttons on the modal when a delete action is shown
codeEmitter Mar 9, 2020
bf77365
Merge remote-tracking branch 'origin/adjust-web-ui'
codeEmitter Mar 9, 2020
54f701e
version bump
codeEmitter Mar 9, 2020
ef986b9
added GCP credentials signatures
Mar 10, 2020
5d9c0de
Merge pull request #1 from initstring/master
codeEmitter Mar 10, 2020
644a306
add 50% to max file size
codeEmitter Mar 10, 2020
7e6c7ea
Merge branch 'master' of https://github.com/codeEmitter/gitrob
codeEmitter Mar 10, 2020
ad471b2
correct missing param error
codeEmitter Mar 10, 2020
649de66
new line following common error
codeEmitter Mar 10, 2020
bad7cef
simplify error handling
codeEmitter Mar 10, 2020
6ffb750
rename targets file for clarity. begin isolating api client implemen…
codeEmitter Mar 11, 2020
68447d3
refactor banner constants
codeEmitter Mar 11, 2020
9b155ec
session maintains a client through interface polymorphism
codeEmitter Mar 11, 2020
444e142
dont require an api token to load results
codeEmitter Mar 12, 2020
586a9e8
block unmarshaling of unnecessary session props
codeEmitter Mar 12, 2020
fdb5880
rename method for better clarity
codeEmitter Mar 12, 2020
92daa02
replace spaces with dashes for gitlab url conformity
codeEmitter Mar 12, 2020
5fb4ca3
rename var for better clarity
codeEmitter Mar 12, 2020
cdb031f
GetOrgMembers takes a Owner type as a common denominator
codeEmitter Mar 12, 2020
7c09a8f
user namespace in place of owner due to a bug in go-gitlab
codeEmitter Mar 12, 2020
cde4106
replace spaces in url with dashes for gitlab compatibility when retri…
codeEmitter Mar 16, 2020
1b3fb90
Merge remote-tracking branch 'origin/cleanup-refactor'
codeEmitter Mar 16, 2020
934495a
refactor to gathertargets to analysis
codeEmitter Mar 16, 2020
c65c7f2
refactor remaining supporting functions
codeEmitter Mar 16, 2020
d5d8378
update gitignore configuration
codeEmitter Mar 16, 2020
5df2349
add ‘mode’ option
codeEmitter Mar 16, 2020
8141b4f
remove unused consts
codeEmitter Mar 16, 2020
8f8c065
use shared method to clean strings
codeEmitter Mar 16, 2020
e0e7b4d
create a matching module. refactor file matching logic.
codeEmitter Mar 16, 2020
02a0202
move signature types, interfaces, and implementations into matching m…
codeEmitter Mar 16, 2020
040930c
update gitignore
codeEmitter Mar 16, 2020
11425bd
formatting only
codeEmitter Mar 16, 2020
1b92e11
extract interface
codeEmitter Mar 16, 2020
4a375d5
create a type for file signatures
codeEmitter Mar 16, 2020
498cda3
name file signature types appropriately
codeEmitter Mar 16, 2020
805bc7a
rename files appropriately
codeEmitter Mar 16, 2020
4fd716b
organize common functions
codeEmitter Mar 19, 2020
3eab47e
stub in a type for loading signatures from a flat json file
codeEmitter Mar 19, 2020
35dd7aa
rename interface for clarity
codeEmitter Mar 19, 2020
6f9bf7f
pull in file signatures from flat json file
codeEmitter Mar 19, 2020
2a0c846
update mode option description
codeEmitter Mar 19, 2020
95ce0d4
WIP: perform matches for compiled regexes
codeEmitter Mar 19, 2020
43f26b0
remove unused interface implementation
codeEmitter Mar 19, 2020
763d76c
move content signature concept
codeEmitter Mar 19, 2020
e83c606
correct missed regex
codeEmitter Mar 20, 2020
f3012b0
match file signatures properly
codeEmitter Mar 20, 2020
a0b9ee1
only perform file analysis if mode is default (1), or scan content on…
codeEmitter Mar 20, 2020
81c6ae7
cleanup
codeEmitter Mar 20, 2020
d4b6ef7
cleanup / rename to setup for addition of content matching
codeEmitter Mar 20, 2020
305dd33
first pass at grabbing content from a commit from all the chunks in e…
codeEmitter Mar 23, 2020
f67cc67
add basic aws content signatures
codeEmitter Mar 23, 2020
ef403fe
load signatures depending on mode
codeEmitter Mar 23, 2020
c6757e5
WIP - search change content for secrets
codeEmitter Mar 23, 2020
f82c911
rename/cleanup
codeEmitter Mar 24, 2020
694b653
output details of loaded signatures on launch
codeEmitter Mar 24, 2020
a38f1bd
add content signature recievers for matching
codeEmitter Mar 24, 2020
856ff23
throw on error loading signatures
codeEmitter Mar 24, 2020
4768bda
set a session type bool instead of string checking all over the place
codeEmitter Mar 24, 2020
48e70d0
substitute regexes for some aws matches since perl syntax isn’t suppo…
codeEmitter Mar 24, 2020
36dcd94
WIP perform content matching in mode 2
codeEmitter Mar 24, 2020
b7eda27
factor out a function for matching content
codeEmitter Mar 24, 2020
4febd25
factor out method for matching on file
codeEmitter Mar 24, 2020
f519edf
factor out a method for cloning repos
codeEmitter Mar 24, 2020
b47e67c
fix logging
codeEmitter Mar 24, 2020
7d0b364
rename method
codeEmitter Mar 24, 2020
39ac94c
factor out method for retrieving history
codeEmitter Mar 24, 2020
f2affd5
hide some elements of the session subject on session save
codeEmitter Mar 24, 2020
7ae2f18
error handling cleanup
codeEmitter Mar 24, 2020
2d38ccf
indicate a content match in the output
codeEmitter Mar 24, 2020
0c51e0d
remove redundant regexs and add useful comment
codeEmitter Mar 25, 2020
b97cbdc
Merge remote-tracking branch 'origin/add-content-signatures'
codeEmitter Mar 25, 2020
cf422e8
introduce mode 3 for content matching only
codeEmitter Mar 25, 2020
4e21d3f
formatting only, no functional changes
codeEmitter Mar 25, 2020
c06c9e3
nil slice declaration
codeEmitter Mar 25, 2020
c2ef3a9
Merge remote-tracking branch 'origin/add-mode-3-content-only'
codeEmitter Mar 25, 2020
7497169
move logger to common
codeEmitter Mar 26, 2020
25134c9
handle gitlab rate limiting via a degrading sliding window
codeEmitter Mar 26, 2020
2db09d4
touch up aws secret access key regex
codeEmitter Mar 26, 2020
5386802
use milliseconds consistently
codeEmitter Mar 26, 2020
d001114
adjust rate limit ranges
codeEmitter Mar 26, 2020
cd86010
Merge remote-tracking branch 'origin/rate-limiting'
codeEmitter Mar 26, 2020
79866f3
sort only
codeEmitter Mar 27, 2020
a852888
add option for in mem clone
codeEmitter Mar 27, 2020
045ec68
implement in-mem clone in gitlab
codeEmitter Mar 27, 2020
618c11b
Merge remote-tracking branch 'origin/in-mem-clone'
codeEmitter Mar 27, 2020
c8d2777
more helpful error if no gitlab group id is passed
codeEmitter Mar 27, 2020
79f07ab
update readme for v3 updates
codeEmitter Mar 27, 2020
fdfbd31
changelog update
codeEmitter Mar 27, 2020
840e04c
source content sigs
codeEmitter Mar 27, 2020
0f90bad
Merge remote-tracking branch 'origin/docs'
codeEmitter Mar 27, 2020
9be4bc6
add/sort content signatures similar to trufflehog
codeEmitter Mar 27, 2020
7c7ac43
sort file signatures by description
codeEmitter Mar 27, 2020
0c51857
Merge remote-tracking branch 'origin/signature-updates'
codeEmitter Mar 27, 2020
6f56f68
signature typo fix
codeEmitter Mar 27, 2020
87d455b
easter egg
codeEmitter Mar 27, 2020
9c3a9e6
remove unused vars
codeEmitter Mar 27, 2020
1cf5d96
final touchups before relase
codeEmitter Mar 27, 2020
97151d5
add error handling
codeEmitter Mar 27, 2020
a44e140
add in-mem support for github
codeEmitter Mar 27, 2020
6f72644
add json marshalling designation for important props
codeEmitter Mar 27, 2020
8cfa5e4
fix release script bug
codeEmitter Mar 27, 2020
ff839c1
bump banner version
codeEmitter Mar 27, 2020
8b977e5
add usage examples and PAT instructions for gitlab
codeEmitter Mar 27, 2020
8141037
gitrob logo update
codeEmitter Mar 30, 2020
dcd9cd6
update gopkg.toml and related lock for dependencies
codeEmitter Mar 30, 2020
3f77927
add dockerfile and readme updates
codeEmitter Mar 30, 2020
b067fc9
update changelog
codeEmitter Mar 30, 2020
b3767bb
add access instructions for container run option
codeEmitter Mar 30, 2020
ab7457a
Merge remote-tracking branch 'origin/docker-support'
codeEmitter Mar 30, 2020
6e5d8a3
read.me touchups
codeEmitter Mar 30, 2020
f14af26
update go-gitlab dep
codeEmitter Apr 8, 2020
cf7c70a
adjust newClient parameters to new version of go-gitrabo 0.31.0
codeEmitter Apr 8, 2020
37383ec
Merge remote-tracking branch 'origin/resolve-dependency-issues'
codeEmitter Apr 8, 2020
900df06
correct version ref in changelog
codeEmitter Apr 8, 2020
68f7b6c
update changes for 3.1.1
codeEmitter Apr 8, 2020
3a4d613
version bump
codeEmitter Apr 8, 2020
cee9a9b
file extension matches should be explicit
codeEmitter Apr 24, 2020
30ab56a
Merge remote-tracking branch 'origin/fix-file-extension-regexes'
codeEmitter Apr 24, 2020
f72067c
create github action to build binaries
codeEmitter Apr 30, 2020
dc5aef5
fix dependency step
codeEmitter Apr 30, 2020
c14534a
update readme on install instructions
codeEmitter May 3, 2020
6644011
Merge remote-tracking branch 'origin/github-action'
codeEmitter May 3, 2020
72f6ad4
move build status badge
codeEmitter May 3, 2020
63f3344
remove redundent go setup
codeEmitter May 3, 2020
41d92c1
naming update
codeEmitter May 3, 2020
3cec0d1
Merge remote-tracking branch 'origin/action-improvements'
codeEmitter May 3, 2020
a5e231c
update binary data
codeEmitter May 3, 2020
cbea39a
version bump for v3.1.2-alpha
codeEmitter May 3, 2020
fc8118f
create a stage to install deps
codeEmitter May 4, 2020
f34c4a4
add build for docker. install docker.
codeEmitter May 4, 2020
d773d83
update docker base image
codeEmitter May 4, 2020
c735767
recover when go-diff lib panics parsing large commits
codeEmitter May 4, 2020
3e87843
Merge remote-tracking branch 'origin/content-scan-bug'
codeEmitter May 4, 2020
8b2ec1a
log offending change when panic occurs
codeEmitter May 4, 2020
094f2cd
no need to log json version of the change. caller already gives deta…
codeEmitter May 4, 2020
b4e1a11
log error details when retrieving change content
codeEmitter May 4, 2020
947f132
update change log, bump version
codeEmitter May 4, 2020
e32bd8c
add note on installation
codeEmitter May 15, 2020
3addde9
update gitlab pat pattern for efficiency and accuracy
codeEmitter May 18, 2020
9ee07f9
Merge remote-tracking branch 'origin/content-regex-gitlab-pat'
codeEmitter May 18, 2020
97adb3c
Releasing v3.1.4-alpha
codeEmitter May 18, 2020
e35491f
better fidelity for filesignature regex matches
codeEmitter May 19, 2020
5445bba
add signatures for common gitlab configuration files
codeEmitter May 19, 2020
6e9592c
Merge branch 'matching-bug-fixes'
codeEmitter May 19, 2020
e30df3e
update release script to include changelog in the release commit
codeEmitter May 19, 2020
b23d485
Releasing v3.2.0-beta
codeEmitter May 19, 2020
9678238
update gitlab pat regex for better fidelity and flexibility
codeEmitter May 20, 2020
20310a9
fix multi-escaped regexes
codeEmitter May 20, 2020
e78db5f
Merge remote-tracking branch 'origin/gitlab-pat-fix'
codeEmitter May 20, 2020
d1df3b8
Releasing v3.2.1-beta
codeEmitter May 20, 2020
8e1a66e
swap imports to relative and change the name
mattyjones Jun 5, 2020
665af08
bring in go mod
mattyjones Jun 5, 2020
b24f343
bring in initial makefile
mattyjones Jun 5, 2020
247892c
brain transplant to new name
mattyjones Jun 6, 2020
f3c73f6
add editorconfig support
mattyjones Jun 6, 2020
0602d18
update ignore file
mattyjones Jun 6, 2020
f7025b5
initial travis
mattyjones Jun 6, 2020
bf7a4a9
update badges
mattyjones Jun 6, 2020
839b71c
update ignore file
mattyjones Jun 6, 2020
b3bb32c
fix string formating error
mattyjones Jun 6, 2020
bfd8a9e
Merge pull request #36 from phantomSecrets/fix/updateCode
mattyjones Jun 6, 2020
c85d300
Update README.md
mattyjones Jun 6, 2020
0fc36f0
Update README.md
mattyjones Jun 6, 2020
0a1c176
update
mattyjones Jun 6, 2020
d803cdc
find/replace on name. version fix.
codeEmitter Jun 19, 2020
087affe
fix dockerfile
codeEmitter Jun 19, 2020
9eaadd1
Merge remote-tracking branch 'origin/phantom-merge'
codeEmitter Jun 19, 2020
25198d1
fix gitignore
codeEmitter Jun 19, 2020
32e7816
recompile static files
codeEmitter Jun 19, 2020
bfdc9c8
update changelog
codeEmitter Jun 19, 2020
ada4ba9
Releasing v3.3.1-beta
codeEmitter Jun 19, 2020
b528f17
re-add build and release scripts following merge from phantomSecrets
codeEmitter Jun 19, 2020
c93112d
Releasing v3.3.2-beta
codeEmitter Jun 19, 2020
5c9a3c2
fix broken banner
codeEmitter Jul 18, 2020
3678253
updte aws signatures
codeEmitter Aug 20, 2020
a4d42e5
add file sig for rails secrets file
codeEmitter Aug 21, 2020
dde29a5
remove duplicate slack sig
codeEmitter Aug 21, 2020
c3c7a8e
Merge remote-tracking branch 'origin/update-signatures'
codeEmitter Aug 31, 2020
2e816c8
fix path deletion bug
codeEmitter Aug 31, 2020
3912a02
Merge remote-tracking branch 'origin/fix-temp-path-deletions'
codeEmitter Aug 31, 2020
2b4bda2
add sigs for ngrok tunnels, google meet and zoom links
codeEmitter Sep 8, 2020
4934175
Merge remote-tracking branch 'origin/zoom-and-google-meet-sigs'
codeEmitter Sep 8, 2020
331a415
Releasing v3.4.0-beta
codeEmitter Sep 8, 2020
f19f59a
Modified Gitrob scan to include all GitHub organization private repos…
PaulTurner-awin Sep 17, 2020
b1fa18c
Cleanup. Deleted commented line that's no longer needed
PaulTurner-awin Sep 17, 2020
1258fde
allow program to exit gracefully if -exit-on-finish is set
codeEmitter Dec 4, 2020
c8c54a2
Merge branch 'add-exit-on-finish-option'
codeEmitter Dec 4, 2020
cafb258
remove unneeded makefile from merge
codeEmitter Dec 4, 2020
a047a8a
bump the version and changelog
codeEmitter Dec 4, 2020
653d031
update readme
codeEmitter Dec 4, 2020
ac3d853
Merge pull request #4 from PaulTurner-awin/scan_github_org_private_repos
codeEmitter Dec 4, 2020
75be07f
cleanup iclient interface implement follow PR merge from paul turner
codeEmitter Dec 4, 2020
14326f2
Merge branch 'update-gitlab-interface-impl'
codeEmitter Dec 4, 2020
cdfea08
bump changelog and version
codeEmitter Dec 4, 2020
d193b23
include gitlab subgroups as the default behavior
codeEmitter Feb 1, 2021
6cbb624
update changelog
codeEmitter Feb 2, 2021
3739600
Merge remote-tracking branch 'origin/sub-groups-for-gitlab'
codeEmitter Feb 2, 2021
a22d810
Releasing v3.4.3-beta
codeEmitter Feb 2, 2021
bbb2463
remove unused .travis.yml in reference to Codecov vuln: https://abou…
codeEmitter Apr 15, 2021
0f796c9
improve slack token regex
codeEmitter Jul 19, 2021
d142642
update version and changelog
codeEmitter Jul 19, 2021
2f57328
Merge remote-tracking branch 'origin/improve-slack-token-regex'
codeEmitter Jul 19, 2021
c329856
update gitlab pat regex
codeEmitter Feb 14, 2022
1244b78
gitlab pats can include underscores
codeEmitter Feb 14, 2022
3ae995c
Merge remote-tracking branch 'origin/regex-adjustments'
codeEmitter Feb 14, 2022
8675e13
Updated: .gitignore
mostwanted002 Sep 7, 2022
1f8abf9
Updated: .gitignore
mostwanted002 Sep 7, 2022
faeec29
Feature added: docker-compose deployment
mostwanted002 Sep 7, 2022
8d7799a
Merge pull request #5 from mostwanted002/add-docker-compose
codeEmitter Sep 20, 2022
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
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# EditorConfig
# editorconfig.org


[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.go]
indent_style = tab

[*.{toml,yml,yaml}]
indent_size = 2

[{Makefile, makefile, GNUmakefile}]
indent_style = tab

[*.md]
trim_trailing_whitespace = false
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Gitrob

on:
push:
branches: "*"
pull_request:
branches: "*"

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --tag gitrob:$(date +%s)
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@
*.dll
*.so
*.dylib
gitrob
gitrob*
gitrob.exe
coverage.txt

bin/
vendor/
build/
bin/
.vscode
.idea
__debug_bin
go_build_gitrob_
gitrob-script.sh

# Test binary, build with `go test -c`
*.test
Expand Down Expand Up @@ -81,3 +89,6 @@ Icon
Network Trash Folder
Temporary Items
.apdisk

# Taregt list
targets.txt
79 changes: 78 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,85 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## 3.4.5-beta 2022-02-14

- Use prefix when looking for GitLab personal access tokens

## 3.4.4-beta 2021-07-19

Improvement for slack token regex

## 3.4.3-beta 2020-02-02
- When a GitLab group is specified, include projects from subgroups by default

## 3.4.2-beta 2020-12-04
- Merged PR that [fixed a bug](https://gitlab.com/gitlab-com/gl-security/security-operations/gl-redteam/gitrob/-/issues/3) causing private repos not to be scanned even if the token provided had access
- Improved implementation of IClient interface for GitLab as a result of previous merge

## 3.4.1-beta 2020-12-04
- Add a `-exit-on-finish` option for better support of automation scenarios.

## 3.4.0-beta 2020-06-18
- Update/fix file and content signatures
- Fix bug where repo clones weren't properly deleted from the temp directory
- Add new signatures for zoom meeting links, google meet links, and ngrok reverse tunnels

## 3.3.2-beta 2020-06-18
### Changed
- Re-add build and release scripts after merge from phantomSecrets

## 3.3.1-beta 2020-06-18
### Changed
- Bring in changes from @mattyjones for go modules support.

## 3.2.1-beta 2020-05-18
### Changed
- Improve matching for GitLab PATs
- Fix escaping in content signatures.

## 3.2.0-beta 2020-05-18
### Changed
- Improve matching for file signatures in general via regex improvements

### Added
- Add file signatures for common GitLab configuration files

## 3.1.4-alpha 2020-05-18
### Added
- Improve regexes for GitLab PAT

## 3.1.3-alpha 2020-05-04
### Added
- Bug fixes for content scans that hit really large commits. This bug is due to an issue the go-diff depenency used by go-git: https://github.com/sergi/go-diff/issues/89

## 3.1.2-alpha 2020-05-03
### Added
- Bug fixes for UI: results should now load in the modal properly
- Added GitHub action for branch and master builds

## 3.1.1-alpha 2020-04-08
### Changed
- Resolved a dependency problem where the locked version of github.com/xanzy/go-gitlab was incorrect.
- Removed rate limit handling for GitLab API requests from gitrob directly in leu of go-gitlab's new implementation with the newly locked version.

## 3.1.0-alpha 2020-03-30
### Added
- Docker support
- Bug fix: include go-gitlab in dep dependency .toml and .lock files.

### Changed
- Windows releases have been removed temporarily due to a platform build issue introduced with github.com/xanzy/go-gitlab

## 3.0.0-alpha - 2020-03-27
### Added
- Support for GitLab users and groups
- Support for multiple modes of execution including content search
- Mode 1 - Default mode to match on [file signatures](./filesignatures.json)
- Mode 2 - Match on [file signatures](./filesignatures.json) then [content signatures](./contentsignatures.json) to constitute a result.
- Mode 3 - Match on [content signatures](./contentsignatures.json) only without file signature matches.
- Support for in-memory repository clones, which can result in significantly faster analysis times depending on your hardware.
- File signatures for Google Cloud Platform credentials
- Content signatures similar to [trufflehog](https://github.com/dxa4481/truffleHogRegexes/blob/master/truffleHogRegexes/regexes.json).
- Dependency management with dep

### Changed
Expand Down
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM golang:alpine as build

RUN apk add --no-cache git perl-utils zip

WORKDIR /go/src/github.com/gitrob

COPY . .
RUN go build

FROM golang:alpine as deploy

COPY --from=build /go/src/github.com/gitrob \
/go/src/github.com/gitrob/filesignatures.json \
/go/src/github.com/gitrob/contentsignatures.json \
./
ENTRYPOINT ["./gitrob"]
Loading