Commit Graph

625 Commits (fcafffdb24b84bba85d06fb208778efe2b9201c7)

Author SHA1 Message Date
Michael Gaffney 8159ddb08e
feat(db): Add function to update billing snapshot table
3 years ago
Michael Gaffney 41bdfb4406
fix(db): Fix time zone consistency issues in monthly billing views
3 years ago
Michael Gaffney 47ddd2e40a
fix(db): Fix generated series to yield consistent results
3 years ago
Michael Gaffney 053e74f66c
feat(db): Add table for census upload job status
3 years ago
Michael Gaffney 8bf80e0544
test(db): Conditionally skip monthly billing view tests
3 years ago
Jim d4e537c88d
chore: updgrade pgx direct deps to v5 (#3258)
3 years ago
Jim 536551dc0c
fix: update go-dbw dep and refactor conversion of pgx errors (#3242)
3 years ago
Timothy Messier 61a37ef4a4
fix(schema): Add missing endpoint column to session recording view
3 years ago
Timothy Messier f53d65eacd
refact(sql): Rename migrations to avoid number conflicts
3 years ago
Todd 4063880bbe
Add credential history views
3 years ago
Michael Gaffney a783c91b2d
feat(sql): Add dynamic credential hst tables to session recording
3 years ago
Michael Gaffney 3769f0851c
test(sql): Refactor the colors persona
3 years ago
Michael Gaffney 03b1291b34
feat(sql): Add history tables for dynamic credentials
3 years ago
Todd e1540be9f3
Add host information to session recording view
3 years ago
Michael Gaffney a8224f4f57
feat(sql): Add endpoint from session table to session recording
3 years ago
Michael Gaffney 06e4e46248
feat(sql): Add static credential hst tables to session recording
3 years ago
Michael Gaffney 3a64fb3d58
feat(sql): Add history tables for static credentials
3 years ago
Todd 386eac072c
Add recording_channel_ssh_aggregate view
3 years ago
Johan Brandhorst-Satzkorn 11893a8885
db: add state and error_details to recording
3 years ago
Johan Brandhorst-Satzkorn af8e4d63be
db: add channel summary details
3 years ago
Todd ee6a5f05b5
Add historical target and scope information to session recording
3 years ago
Michael Gaffney 477e6df269
feat(sql): Add target and host history tables to session recording
3 years ago
Michael Gaffney 73b710cd06
refactor(sql): Rename session recording migration
3 years ago
Michael Gaffney 37c6b8e540
feat(sql): Add history tables for hosts
3 years ago
Michael Gaffney b97dc07bb0
feat(sql): Add history tables for host catalogs
3 years ago
Michael Gaffney 7ebe393aee
feat(sql): Add history table for target_ssh
3 years ago
Todd d365123045
add session recording aggregate view
3 years ago
Louis Ruch 7263d08bc5
feat(storage): Add target storage_bucket relation
3 years ago
Timothy Messier 21f6be9ab5
refact(sql): Move migrations to avoid number conflict
3 years ago
Michael Gaffney 882b7eca2f
feat(sql): Add IAM history table references to session recording
3 years ago
Michael Gaffney 9fd01a79f0
refactor(sql): Move and rename session recording migration
3 years ago
Michael Gaffney 4488f5f8cd
refactor(sql): Move and rename history table migrations
3 years ago
Michael Gaffney 463f1e36af
feat(sql): Add history table for iam_user
3 years ago
Michael Gaffney 8ae658a570
feat(sql): Add history table and triggers for iam_scope
3 years ago
Michael Gaffney 327d950a1e
feat(sql): Add function to generate a URL safe ID
3 years ago
Michael Gaffney 94f77d36b3
feat(sql): Add a domain type for URL safe IDs
3 years ago
Michael Gaffney 647cf0d33d
feat(sql): Add URL safe base64 encoding function
3 years ago
Danielle Miu a4a14fc7fc
merged commit for plugin rework, storage bucket sql and proto, storage bucket secret rewrapping, storage bucket repository
3 years ago
Johan Brandhorst-Satzkorn 7bb44b46f5
internal/db: add session recording tables
3 years ago
Michael Milton ace2def49d
Add daily sessions pending view and accompanying snapshot table (#3217)
3 years ago
Jeff Mitchell bbe9719e19
Add tracking of worker used for injection (#3204)
3 years ago
Haotian 762e0d7d0d
fix(sql): move added file to correct folder (#3197)
3 years ago
Haotian b806297afe
style(db): rename constraint names to follow sql style guide (#2973)
3 years ago
Jeff Mitchell 20391e3503
Add default client port to targets and use in connect command (#2767)
3 years ago
Johan Brandhorst-Satzkorn ecdb77b584
internal/db/sqltest: fix sessions aggregate (#3152)
3 years ago
Hugo Vieira 2ff9b8efac feat(host/plugin): Support External Name field
3 years ago
Johan Brandhorst-Satzkorn bc31892f29
internal/db: add set_once_columns function (#3117)
3 years ago
Jim 63a2b62b85
chore (deps): update GKW and protobuf; and run "make gen" (#3111)
3 years ago
Jim 86192f75eb
feature (auth/ldap): add LDAP auth method along with associated accounts and managed groups (#2912)
3 years ago
Irena Rindos ab0a2ad689
Fix hcp billing test (#3045)
3 years ago
Irena Rindos 860af44556
Fix sql tests failing on the first of the month (#3042)
3 years ago
Hugo 41b1b5b4b7
feat(db): Introduce migrations for ssh targets (#2960)
3 years ago
Timothy Messier 5c19dba3c9
ci(sqltest): Add github action workflow for sql tests (#2977)
3 years ago
Johan Brandhorst-Satzkorn 3c29308673 chore: Add license headers to all files
3 years ago
Timothy Messier 6a41bf1237
feat(wh): Support vault ssh certificate credentials
3 years ago
Danielle 3a78a74571
feat(vault): Support Issuing SSH Cert Credentials
3 years ago
Haotian 823b8cdfc6
feat(vault): Add CRUDL methods for ssh certificate cred library (#2765)
3 years ago
Johan Brandhorst-Satzkorn 55259029f1
Add job run cleaner (#2866)
3 years ago
Irena Rindos 2e3fd041ef Target worker filters migration fix (#2859)
3 years ago
Timothy Messier e2248c1360
fix(wh): Associate session fact with credential dimensions (#2787)
3 years ago
Damian Debkowski a8ee18e177
fix(db): target address relabel migration id (#2769)
3 years ago
Damian Debkowski 0dbe18e453 fix(db): remove migration test 59_01
3 years ago
Damian Debkowski 3dd4b1c63d feat(db): Support a direct address association to a Target
3 years ago
Jim 1c9ca14a8e
fix (db): Improve error handling for commit errors. (#2728)
3 years ago
Danielle 46037cf85a
Add Staticcheck to Build Pipeline (#2421)
3 years ago
Johan Brandhorst-Satzkorn eb113b5c9e
fix(db): Reorder migrations (#2688)
3 years ago
Irena Rindos 834a2a88f7
feat(targets): Addition of egress and ingress worker filters (#2654)
3 years ago
Haotian 96a630905f
formatting consistency for 'create function' statements (#2620)
3 years ago
Johan Brandhorst-Satzkorn 8908dccf6d
Forward port some release fixes (#2631)
3 years ago
Johan Brandhorst-Satzkorn edd323b73a
Key Rotation/Destruction (#2477) (#2607)
3 years ago
Haotian d97d34adc4
refactor(db): applies consistent formatting to 'comment on' statements
3 years ago
Johan Brandhorst-Satzkorn a216c701ee
Silence events from DB errors (#2601) (#2602)
4 years ago
Irena Rindos b26814a3cc
move user variables into globals (#2580)
4 years ago
Michael Gaffney f114e20c6d
docs(db): fix comments on database domain types
4 years ago
Michael Gaffney ed4b00303a
docs(db): fix comments on kms database tables
4 years ago
Michael Gaffney c9cfb0e564
docs(db): fix comments on oidc database tables
4 years ago
Michael Gaffney 3241c9a411
docs(db): fix comments on database functions
4 years ago
Johan Brandhorst-Satzkorn f57454b6b9
Rewrite interface{} to any (#2535)
4 years ago
Todd fa39fe5b0f
Delete the base auth account when a concrete auth account is deleted (#2528)
4 years ago
Irena Rindos 4493dfd527 use prior and current worker auth keys (#2495)
4 years ago
Timothy Messier a2ef14283b
fix(org): Address bug that prevented deleting an org (#2465)
4 years ago
Damian Debkowski 546c5dc5be
feat: static json credentials (#2423)
4 years ago
Irena Rindos 821d8317dc
address op state review feedback (#2453)
4 years ago
Jeff Mitchell 53b5e532d5
Remove deprecated methods/fields on targets (#2393)
4 years ago
Irena Rindos fc0ead73e6
feat(workers): worker operational state (#2427)
4 years ago
Jeff Mitchell 9002930d65 Adapt shared lock skip logic to dbswap branch (#2437)
4 years ago
Hugo Vieira bed6e1a0ff feat(server): Reload database on SIGHUP
4 years ago
Hugo Vieira 621f8a9ff2 fix(schema): Database connection not cleanly closed
4 years ago
Irena Rindos 18dff62b7b
Merge BYOW GA branch to main (#2398)
4 years ago
Timothy Messier 2fbdcf6ce0
feat(session): Use permissions for limiting list results
4 years ago
Louis Ruch d7c4c648ec
bug(vault): Correctly handle credential stores with expired tokens (#2399)
4 years ago
Jeff Mitchell 01fb949d0b
Add controller-led worker auth flow (#2413)
4 years ago
Johan Brandhorst-Satzkorn de2c40fa77
Fork pgtap-docker to support arm64 (#2411)
4 years ago
Damian Debkowski 3f70644978
fix(db): update host_plugin_set to set project_id value (#2410)
4 years ago
Johan Brandhorst-Satzkorn aef9073fa6
Upgrade to Go 1.19 (#2347)
4 years ago
Danielle 07a4082aa1
Add SQL Migration 05 From go-kms-wrapping (#2371)
4 years ago
Johan Brandhorst-Satzkorn d709b97e18
fix(schema): Panic with error rather than function (#2391)
4 years ago
Jim b0bc6bd632
refactor: eliminate gorm references in favor of go-dbw (#2386)
4 years ago
Louis Ruch 929a385fdb fix: move 'drop target_all_subtypes' after whx views
4 years ago
Damian Debkowski 27e9f775be feat: add initial migration hook
4 years ago
Timothy Messier 79866a287f feat(schema): Add support for migration hooks
4 years ago
Michael Gaffney 1fa79e9aa1 test(db): Add tests for inserts into target_host_set
4 years ago
Michael Gaffney 0512ddb060 test(db): Add tests for inserts into target_credential_library
4 years ago
Damian Debkowski c4aa9a0358 test(sql) add tests to validate project scope for target_static_credential
4 years ago
Johan Brandhorst-Satzkorn 222a935223
Update grpc-gateway dependency (#2311)
4 years ago
Louis Ruch d01f374490
bug(db): Fix credential purpose migration (#2351)
4 years ago
Michael Gaffney a6d9c228aa
Merge branch 'mgaffney-greppable-sql'
4 years ago
Jim 7aa7deafa3
chore: update go-dbw dependencies (#2298)
4 years ago
Louis Ruch 7fafadd70b
db: Add credential_sha256 to session_credentials (#2339)
4 years ago
Michael Gaffney ac6f14a37f
style(sql): make migrations more greppable
4 years ago
Jeff Mitchell 02dd28f587
Add support for SSH private key passphrases (#2331)
4 years ago
irenarindos 4908aba546 feat(vault): Add unimplemented worker filter support to OSS
4 years ago
Louis Ruch a17e973712
feat(credentials): Refactor credential purposes (#2260)
4 years ago
Louis Ruch ef5ac07f02
Add ssh_private_key support for Vault libraries and targets (#2263)
4 years ago
Jeff Mitchell 011e2e7425
Add ssh private key type and add type to static store (#2262)
4 years ago
Jim 3da78aa7e4
refactor (kms): Update dependency required a small refactor (#2253)
4 years ago
Jeff Malnick 1f66685864
feat: set default connection limit to unlimited (-1) instead of 1 (#2234)
4 years ago
Timothy Messier fd5d15af27
feat(config): Add database config options for idle connection management (#2176)
4 years ago
Damian Debkowski 3e9c99c217
refactor(user_password) rename all references of user_password to username_password (#2232)
4 years ago
Jeff Mitchell 396edfca80
Add an extra cleanup task for sessions stuck in canceling state (#2229)
4 years ago
Louis Ruch 4cacd0a605
bug(scheduler): Fix controller id length check (#2226)
4 years ago
Timothy Messier f3c90df300
chore(db): Silence db logs by default for tests
4 years ago
Louis Ruch 9671daf6e0 Revert "refactor(user_passsword) change all references of user_password into username_password (#2189)"
4 years ago
Damian Debkowski ab58b24142
refactor(user_passsword) change all references of user_password into username_password (#2189)
4 years ago
Jeff Mitchell 704d68848c Merge remote-tracking branch 'origin/main' into llb-byow
4 years ago
Jeff Mitchell b0480eb7b3 Move migrations to 32
4 years ago
Todd beecbbb8a2
Upsert creates a new KMS and Updates PKI workers (#2187)
4 years ago
Irena Rindos 06d0f99536
bug(workersAPI): do not allow nonprintable or uppercase name or desc (#2186)
4 years ago
Todd 577d8418cd
Make name column immutable for kms workers. (#2190)
4 years ago
Jim 9997f1a7bd
feature (workers): required schema changes (#2185)
4 years ago
Louis Ruch 631de0e5e2 chore(changelog): Update changelog
4 years ago
Louis Ruch 4b365db634 feat(target): Add support for static credentials during authorize-session
4 years ago
Louis Ruch 58d9d42a88 feat(session): Add support for session static credentials
4 years ago
Louis Ruch 00dfea1244 feat(target): Add support for static credential as target credential sources
4 years ago
Michael Gaffney b6da1ccac7 feat(db): add static credential store schema
4 years ago
Todd 4b526538af
Make server_id in job_run type text since it is nullable. (#2177)
4 years ago
Louis Ruch b6ca61a7f6
refact(cred-libs): Update user_password to username_password (#2154)
4 years ago
Jeff Mitchell 5d3facf561 Merge remote-tracking branch 'origin/main' into llb-byow
4 years ago
irenarindos 16d95262a6 feature(worker): add workerKeyId to status
4 years ago
Timothy Messier 32070678dc
perf(session): Remove connections from session list endpoint
4 years ago
Timothy Messier 5b0abe2e27
feat(session): Add migration to delete terminated sessions
4 years ago
Johan Brandhorst-Satzkorn e7273d65c2
Bump Go version to v1.18.3 (#2158)
4 years ago
Gabriel Santos 3521c21cd5
fix: Refuse to start if max_open_connections is below 5 (#2097)
4 years ago
Todd 1e3c941be1
Add active session count to the worker (#2145)
4 years ago
irenarindos 642e41c9d7 feat(workerAuth): Implement nodeenrollment lib workerauth storage
4 years ago
Todd 731a45eba6
Merge the worker_status table with the worker table (#2111)
4 years ago
irenarindos bf3b0340e5 feat(workerauth): add storage for RootCertificates aggregate
4 years ago
Jim 70c5da1048
feature (workers): add repository CreateWorker(...) (#2105)
4 years ago
Todd a281d10206
Add worker config table and view (#2090)
4 years ago
Todd 3fbf901739
Add source to worker tags table (#2087)
4 years ago
irenarindos 20c314787d fixup! feat(pki): Add PKI schemas and protos
4 years ago
irenarindos 88a6ca036f feat(pki): Add PKI schemas and protos
4 years ago
Todd 2ecd550e27
Add fields to server_worker to be a boundary resource (#2083)
4 years ago
Todd 472d7d520a
Remove the server_id from session table, change it to worker_id on session_connection (#2070)
4 years ago
Jeff Mitchell 2f06513a3a Merge branch 'main' into llb-byow
4 years ago
Jim 785241237e
refactor (kms): adopt the go-kms-wrapping/extras/kms package (#2027)
4 years ago
irenarindos 54c30d2cad bug(session): null fkey trigger also checks for session terminated state
4 years ago
irenarindos 0ef523ba77 Remove column cascade
4 years ago
Todd d8a443e238 Merge branch 'main' into llb-byow
4 years ago
Todd b58dada40d
Move the server daemons into their own package (#2061)
4 years ago
Jeff Mitchell 2a8e179692 Update against changes from merge
4 years ago
irenarindos 8579a248d4 refactor(servers): minor sql adjustments to worker and controller tables
4 years ago
irenarindos 9e27605213 refact(servers): Split server table into worker and controller
4 years ago
irenarindos c6764e85d9 fix(session): Update session state transition trigger
4 years ago
Timothy Messier f00af362dc
fix(session): Include where clause with order and limit
4 years ago
Johan Brandhorst-Satzkorn 7f9b294a7e
refact(all): Use testing.TB for test helpers
4 years ago
Timothy Messier 4599e64cab feat(event): Remove BOUNDARY_DEVELOPER_ENABLE_EVENTS env var
4 years ago
Jim addbfee593
chore: upgrade gofumpt to v0.3.1 (#2028)
4 years ago
Louis Ruch e6b7b7f60a
feat(db): Suppress not found events during db lookups (#1979)
4 years ago
Johan Brandhorst-Satzkorn b1d6a1da9a
Switch to buf for protobuf generation (#1944)
4 years ago
Jeff Mitchell 7eb29261b2
Update to go-kms-wrapping version 2, and plugin-based KMS (#1901)
4 years ago
irenarindos 32132d6bc1 refactor(session connections): Refactor connection closure
4 years ago
Irena Rindos 5a2c0db586 fix(session connections): Create session connection repository
4 years ago
Todd e4d1e501cf
fix(warehouse): Handle duplicate addresses when migrating into wh_network_address_dimension (#1860)
4 years ago
Todd 11ce54f8fb
Add DW network address dimension tables (#1855)
4 years ago
Haotian fa00a06bef
feat(host): Add host set information to static host (#1828)
4 years ago
Irena Rindos edae7c899f bug(session): Allow only valid state transitions
4 years ago
Jim 591ec476e7
refactor: Update internal/db and oplog to use go-dbw package for database operations. (#1785)
4 years ago
Louis Ruch 5fe23ab14d feat(session): Store session credentials
4 years ago
Michael Gaffney ba8188e6d7
feat(credential): Add mapping override to credential library on lookup
4 years ago
Michael Gaffney 0e637f47b5
feat(credential): Use credential type when issuing credentials
4 years ago
Michael Gaffney c317901db4
feat(credential): add credential type to credential library on create
4 years ago
Jim baa1d88f1f
feature: Add client ip to inbound request information (#1678)
4 years ago
Michael Gaffney 72d4d6d205
fix(sql): Remove warning from create_time trigger (#1751)
4 years ago
Jim 983f7b019c
refactor (db): Remove unused gorm formatter (#1738)
4 years ago
Jeff Mitchell ad8ce50f69
Fix Windows (#1733)
4 years ago
Michael Gaffney 55c6c5872f
feat(sqltest): Make container port configurable
4 years ago
Jeff Mitchell 866bfceefc
Add secrets_hmac to host catalog output (#1712)
4 years ago
Thor 7fa2cd2526
rename migration from 01-09 after bad merge (#1709)
4 years ago
Thor ad31b6d6c3
repo: Return connection informat in Session response object (#1690)
4 years ago
Jeff Mitchell 8110e0eab3
Increment version of host during updates (#1707)
4 years ago
Jim 1b6c9a25c8
Add more opts when using Create + WithOnConflict (#1706)
5 years ago
Jim c6d79bc911
feature (db): Add WithOnConflict support to CreateItems(...) (#1699)
5 years ago
Todd Knight 5850001a07 Rename file to match others in directory and remove TODO.
5 years ago
Todd Knight f41bceda83 Merge from main and `make gen`
5 years ago
Todd Knight 884e1f2d18 Merge branch 'main' into plugin-hostcatalogs
5 years ago
Jim 1ac151100e
docs (internal/db): Add docs Update/Delete operations using WithWhere (#1687)
5 years ago
Todd 29b4537d3b
Reference PreferredEndpoints by top level struct name (#1688)
5 years ago
Jeff Mitchell 30e9f944a2
Add sync interval to host sets (#1680)
5 years ago
Jim c047c4d89d
refactor (db): Remove the internal/db test tables from the migrations (#1675)
5 years ago