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

Overhaul #246

Merged
merged 129 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
fd32c76
beginning stages of cleanup
rcgottlieb Mar 8, 2024
9b6c974
major updates and fixes
rcgottlieb Mar 26, 2024
4c19185
fixed typo
rcgottlieb Mar 28, 2024
b4af3f3
debug
rcgottlieb Mar 28, 2024
81460aa
refactored some code
rcgottlieb Mar 28, 2024
5f96ffc
fixed missing comma
rcgottlieb Mar 28, 2024
766744b
adding missing commas
rcgottlieb Apr 1, 2024
e3d3aa2
added comments and updated logic
rcgottlieb Apr 1, 2024
348ff6d
adding debug
rcgottlieb Apr 1, 2024
b6d958a
more debug
rcgottlieb Apr 1, 2024
ecfd947
debug and small fixes
rcgottlieb Apr 4, 2024
03e1fac
got rid of some debug prints and modified output a bit
rcgottlieb Apr 4, 2024
39ac5fd
debug print
rcgottlieb Apr 4, 2024
c45a5e6
updated alert verbiage again
rcgottlieb Apr 4, 2024
04f0c9a
testing some update to logic
rcgottlieb Apr 4, 2024
1783f7a
removing some debug code and cleaning up other code
rcgottlieb Apr 4, 2024
984060d
prefer pathlib over os.path.join
bengerman13 Apr 4, 2024
18a5e25
Refactoring find_stale_keys
bengerman13 Apr 4, 2024
ded549f
updated more Threshold references
rcgottlieb Apr 5, 2024
a23f102
more cleanup: environs in place of os.getenv
rcgottlieb Apr 5, 2024
aee4fe2
Code cleanup:
rcgottlieb Apr 5, 2024
5cff5e1
more code cleanup
rcgottlieb Apr 8, 2024
b7d870a
fixed typo
rcgottlieb Apr 8, 2024
c09a760
adding runtime for python version
rcgottlieb Apr 8, 2024
09dbd15
this time change Python version
rcgottlieb Apr 8, 2024
dff821a
correct format this time
rcgottlieb Apr 8, 2024
ef4301a
using pipenv to install it hopefully
rcgottlieb Apr 8, 2024
27c71bd
removing the runtime.txt, installing python 3.11 latest
rcgottlieb Apr 8, 2024
ac53378
need to install pyenv first
rcgottlieb Apr 8, 2024
f8b8941
installing pyenv the correct way
rcgottlieb Apr 9, 2024
fd7754d
force pyenv/python path to current dir
rcgottlieb Apr 9, 2024
96a7f6c
updating paths
rcgottlieb Apr 9, 2024
3d94bf2
This time with the correct path notation
rcgottlieb Apr 9, 2024
8b74811
updating hardened image to current tag to pull in python 3.10.6
rcgottlieb Apr 10, 2024
9eb1201
removing pyenv as it isn't needed
rcgottlieb Apr 10, 2024
62f072f
added environs to be installed
rcgottlieb Apr 10, 2024
f0cf7d2
typing the date key to force datetime instead of str
rcgottlieb Apr 10, 2024
6b7af11
added dateutil
rcgottlieb Apr 10, 2024
f30adc9
type and var cleanup
rcgottlieb Apr 10, 2024
5b5cf61
added back migration and cleaned up db functions, added cli parser as…
rcgottlieb Apr 10, 2024
c0c0b99
Pull in main (#228)
bengerman13 Apr 11, 2024
c045776
last update to old ORM before I make the switch
rcgottlieb Apr 16, 2024
4d02728
added IAM User dataclass
rcgottlieb Apr 16, 2024
c3a4886
first step of the overhaul with the models mostly there
rcgottlieb Apr 22, 2024
b0d6ef6
Have the models mostly done and find stale keys is working
rcgottlieb Apr 23, 2024
f655864
code cleanup, adding tests
rcgottlieb Apr 25, 2024
dec927c
updated migration, added tests, code cleanup
rcgottlieb Apr 29, 2024
899a481
added migrations back
rcgottlieb Apr 29, 2024
c6708bb
adding missing alembic file
rcgottlieb Apr 29, 2024
c30a891
fixed autocorrect typo
rcgottlieb Apr 29, 2024
576c3b5
fixed path for thresholds
rcgottlieb Apr 29, 2024
37dd65f
fixed path for thresholds again
rcgottlieb Apr 29, 2024
a9ac68c
fixed base path
rcgottlieb Apr 29, 2024
eef7cec
pulled out unused logging and changed output format
rcgottlieb Apr 29, 2024
4a806b0
changing output order
rcgottlieb Apr 29, 2024
da7cd14
adding logging for debug
rcgottlieb Apr 30, 2024
ae8e838
more debugging
rcgottlieb Apr 30, 2024
800ec50
updated debug
rcgottlieb Apr 30, 2024
5e77975
Add SECURITY.md
wz-gsa Apr 9, 2024
bac19b5
evaluate traffic burst at 0s instead of 5m (#227)
bengerman13 Apr 11, 2024
aee7fa5
make (Large)NetworkTrafficBurst less twitchy in staging (#229)
bengerman13 Apr 15, 2024
cd46285
correct opsfile path (#230)
bengerman13 Apr 15, 2024
724ab2b
give logsearch backup a little more slack (#231)
bengerman13 Apr 18, 2024
4445bd2
set alertmanager external url
bengerman13 Apr 18, 2024
24fdb34
include the opsfile we need
bengerman13 Apr 18, 2024
22800af
update manifest directly instead of adding an opsfile
bengerman13 Apr 18, 2024
cd5a72e
shut up CPU alerts
bengerman13 Apr 18, 2024
ef62b30
fix url (#234)
bengerman13 Apr 19, 2024
8eef9e7
testing older format
rcgottlieb May 2, 2024
28e681d
forgot to comment out new code
rcgottlieb May 2, 2024
693de2d
fixed formatting
rcgottlieb May 2, 2024
c7c4b01
cleaning up some code, removing modules, std on Env
rcgottlieb May 3, 2024
a100cb3
removed some debug print stuff
rcgottlieb May 3, 2024
467fe59
changing debug to print res body
rcgottlieb May 3, 2024
533d140
added back time module
rcgottlieb May 3, 2024
c4ab969
changing branch to overhaul for debugging
rcgottlieb May 3, 2024
29ae255
mods to gateway request and debug output
rcgottlieb May 3, 2024
aae4c04
swapping back to main branch for prod
rcgottlieb May 7, 2024
25d95e7
swapping back to main branch for prod
rcgottlieb May 7, 2024
76df4c7
fixing typo in pipeline
rcgottlieb May 7, 2024
699bbbe
setting pipeline for debug again, for stale keys
rcgottlieb May 7, 2024
b5809fb
changing output to match prod
rcgottlieb May 7, 2024
a03d6db
commented out test code
rcgottlieb May 7, 2024
feb4cb4
moving to one alert per push
rcgottlieb May 7, 2024
eaf3bac
added back missing var
rcgottlieb May 7, 2024
d456394
added in a debug print
rcgottlieb May 7, 2024
7ef794a
added missing split
rcgottlieb May 7, 2024
e5afab3
added newline back from split
rcgottlieb May 7, 2024
4fd030a
matching request format from prod version
rcgottlieb May 7, 2024
9322c9f
using the pushgateway client now
rcgottlieb May 9, 2024
7de291d
adding in the python client lib for Prometheus
rcgottlieb May 9, 2024
466f31f
mising port added back
rcgottlieb May 9, 2024
002706b
code cleanup
rcgottlieb May 13, 2024
2ee0bcc
setting back the branch to main and gateway to prod
rcgottlieb May 13, 2024
1c3905f
cleanup before tagging
rcgottlieb May 17, 2024
80aa021
Cut down the codebase and got rid of the database
rcgottlieb Jun 26, 2024
0fbaf79
updated tests, more cleanup
rcgottlieb Jun 27, 2024
8ecde62
condensed the code for loading profiles
rcgottlieb Jun 27, 2024
9a630a5
more cleanup, removing code, adding Alert dataclass
rcgottlieb Jul 1, 2024
7ac3313
refactor code for removing unneeded properties etc
rcgottlieb Jul 2, 2024
c5c8351
Bump certifi from 2019.6.16 to 2023.7.22 in /ci/aws-rds-storage (#197)
dependabot[bot] Jun 13, 2024
60007c0
Bump persistent disk alerts to closer to default
cweibel Jun 13, 2024
4f137df
Add CODEOWNERS (#241)
bengerman13 Jun 18, 2024
121d1ec
merged from main and updated requirements
rcgottlieb Jul 2, 2024
1d844e6
more resolutions for merge
rcgottlieb Jul 2, 2024
3ca253c
merge stuff
rcgottlieb Jul 2, 2024
608662b
bringing pipeline up to date
rcgottlieb Jul 2, 2024
fd8baae
adding the README file back
rcgottlieb Jul 2, 2024
5d5a1d3
adding back is_wildcard to keep testing on staging, will remove again…
rcgottlieb Jul 2, 2024
e4562d2
fixing merge for pipeline, it now has all diffs from main
rcgottlieb Jul 2, 2024
c616205
fixed bug clobbering clear flag with 2nd key
rcgottlieb May 23, 2024
87b089f
can't use environs module in prod version of Python
rcgottlieb May 23, 2024
370ff8f
fix is ready to go
rcgottlieb May 23, 2024
f3e9e33
Bump certifi from 2019.6.16 to 2023.7.22 in /ci/aws-rds-storage (#197)
dependabot[bot] Jun 13, 2024
68d9750
Bump persistent disk alerts to closer to default
cweibel Jun 13, 2024
1fe2de0
Add CODEOWNERS (#241)
bengerman13 Jun 18, 2024
35e25fb
changing debug prints for staging
rcgottlieb Jul 3, 2024
4cabc82
chore: version bumps (#242)
bengerman13 Jun 26, 2024
c51a9d6
chore: remove pipenv dependency (#243)
bengerman13 Jun 27, 2024
4650c67
fixing typo
JasonTheMain Jun 27, 2024
118fc95
update to use hardened images
dandersonsw Jul 1, 2024
faf95b2
adding tests that should pass
rcgottlieb Nov 21, 2024
b704ebe
fixed tests
rcgottlieb Dec 2, 2024
eb7f4f2
removed some switches for trusting pypi
rcgottlieb Dec 2, 2024
9804369
fixing merge
rcgottlieb Dec 3, 2024
5fd3edc
fixing more conflicts
rcgottlieb Dec 3, 2024
df83f56
removing unused class
rcgottlieb Dec 3, 2024
83ce224
more conflicts fixed
rcgottlieb Dec 3, 2024
03ef029
removed extraneous file
rcgottlieb Dec 3, 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
147 changes: 147 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,148 @@
tmp/
# General
*.log*
*.tmp
*.bak
*.swp
*.swo
.Thumbs.db
Desktop.ini
._*
.TemporaryItems
.Trash-*
.env*
*.pid
*.pid.lock
*.seed
*.db
*.dbmdl
.db.sqlite3
*.sqlite
*.sqlite3
*.tlog
*.tmproj
*.tmp_proj
*.un~
*.user
*.userosscache
*.userprefs
*.vbproj.user
*.vssscc
*.vspscc
*.suo
*.cache
*.csproj.user
*.sln.docstates
**/*.iws
*.iws

# Security - Sensitive files that should never be committed
*.gpg
*.asc
.env
.env.local
.env.*.local
.secret
*.vault
*.token
*.apikey
*.credentials
**/secrets.yml
**/credentials.yml
**/config/dev.yml
**/config/private.yml

# Dependencies
/node_modules/
/bower_components/
.jekyll-cache/
/vendor/
*.gem
*.egg
*.egg-info
.eggs/

# Compiled Source
*.com
*.class
*.dll
*.exe
*.o
*.so
*.dylib
*.lib
*.obj
*.pdb

# Packages
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and Databases
*.log
*.sql
**/log/*.log
**/log/*.log*

# OS generated files
.DS_Store
.DS_Store?
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# IDE/Editor configurations
/.idea/
*.iml
.vscode/
*.code-workspace
*.sublime-project
*.sublime-workspace
/.vs/
/.atom/
/.eclipse/
/.netbeans/
/.intellij/
/.jbuilder/
/.rubymine/
/.mine/
/.textmate/
/.vim/
/.emacs.d/
*.sw*
.vscode
.trunk

# Build Artifacts
/dist/
/tmp/
/out/
/build/
/target/
/coverage/
/Release
/Debug
/x64/
/x86/
*.lock
*.tgz
**/.terraform/*
**/node_modules/**

# Certificates and Keys
*.csr
*.crt
*.key
*.pem
*.pfx

# System files
$RECYCLE.BIN/
$tf/
2 changes: 1 addition & 1 deletion ci/aws-iam-check-keys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ params:
IAM_KEYS_USER:
IAM_KEYS_PASSWORD:
IAM_KEYS_HOST:
IAM_KEYS_PORT:
IAM_KEYS_PORT:
Loading