-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
[management] Refactor peers to use store methods #2893
Open
bcmmbaga
wants to merge
84
commits into
main
Choose a base branch
from
peers-get-account-refactoring
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 75 commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
389c961
Refactor setup key handling to use store methods
bcmmbaga 78044c2
add lock to get account groups
bcmmbaga 1a5f3c6
add check for regular user
bcmmbaga 931521d
get only required groups for auto-group validation
bcmmbaga f8b5eed
add account lock and return auto groups map on validation
bcmmbaga 106fc75
refactor account peers update
bcmmbaga 0a70e4c
Refactor groups to use store methods
bcmmbaga 8126d95
refactor GetGroupByID and add NewGroupNotFoundError
bcmmbaga ac05f69
fix tests
bcmmbaga 40af1a5
Merge branch 'feature/get-account-refactoring' into setupkey-get-acco…
bcmmbaga d58cf50
Merge branch 'setupkey-get-account-refactoring' into groups-get-accou…
bcmmbaga 7100be8
Add AddPeer and RemovePeer methods to Group struct
bcmmbaga 6dc185e
Preserve store engine in SqlStore transactions
bcmmbaga bdeb95c
Run groups ops in transaction
bcmmbaga 3ed8b9c
fix missing group removed from setup key activity
bcmmbaga cc04aef
Merge branch 'setupkey-get-account-refactoring' into groups-get-accou…
bcmmbaga 871500c
fix merge
bcmmbaga 174e07f
Refactor posture checks to remove get and save account
bcmmbaga d54b696
fix refactor
bcmmbaga 601d429
fix tests
bcmmbaga 010a8bf
Merge branch 'main' into groups-get-account-refactoring
bcmmbaga 664d138
fix merge
bcmmbaga ab00c41
fix sonar
bcmmbaga 113c21b
Change setup key log level to debug for missing group
bcmmbaga d23b5c8
Retrieve modified peers once for group events
bcmmbaga ffce48c
Merge branch 'groups-get-account-refactoring' into policy-get-account…
bcmmbaga 0c0fd38
Refactor policy get and save account to use store methods
bcmmbaga 2d7f08c
Fix tests
bcmmbaga 2806d73
Add tests
bcmmbaga 00023bf
Merge branch 'groups-get-account-refactoring' into posturechecks-get-…
bcmmbaga a3abc21
Add tests
bcmmbaga ed259a6
Merge branch 'main' into groups-get-account-refactoring
bcmmbaga 147971f
Merge branch 'groups-get-account-refactoring' into policy-get-account…
bcmmbaga 446de5e
Merge branch 'groups-get-account-refactoring' into posturechecks-get-…
bcmmbaga 2a59f04
Merge branch 'posturechecks-get-account-refactoring' into policy-get-…
bcmmbaga 32d1b2d
Retrieve policy groups and posture checks once for validation
bcmmbaga bbaee18
Fix typo
bcmmbaga 50e6389
Merge branch 'posturechecks-get-account-refactoring' into policy-get-…
bcmmbaga 3a915de
Add policy tests
bcmmbaga 9872bee
Refactor anyGroupHasPeers to retrieve all groups once
bcmmbaga 9bc8e6e
Merge branch 'posturechecks-get-account-refactoring' into policy-get-…
bcmmbaga 5601905
Refactor dns settings to use store methods
bcmmbaga 4b943c3
Add tests
bcmmbaga ed047ec
Add account locking and merge group deletion methods
bcmmbaga a4d905f
Fix tests
bcmmbaga 218345e
Refactor name server groups to use store methods
bcmmbaga ef55b9e
Add tests
bcmmbaga 6315644
Add peer store methods
bcmmbaga 8420a52
Refactor ephemeral peers
bcmmbaga f5e7449
Add lock for peer store methods
bcmmbaga 7d849a9
Refactor peer handlers
bcmmbaga c557c98
Refactor peer to use store methods
bcmmbaga f6f7260
Fix tests
bcmmbaga 92b9e11
Merge branch 'main' into groups-get-account-refactoring
bcmmbaga 4ef3890
Fix typo
bcmmbaga 51c1ec2
Add locks and remove log
bcmmbaga 1ff8f61
Merge branch 'main' into groups-get-account-refactoring
bcmmbaga d4c7124
Merge branch 'groups-get-account-refactoring' into posturechecks-get-…
bcmmbaga a61e9da
run peer ops in transaction
bcmmbaga a2fb274
remove duplicate store method
bcmmbaga a2a49bd
fix peer fields updated after save
bcmmbaga 48edfa6
add tests
bcmmbaga 6dd56e3
Merge branch 'posturechecks-get-account-refactoring' into policy-get-…
bcmmbaga ec6438e
Use update strength and simplify check
bcmmbaga df98c67
prevent changing ruleID when not empty
bcmmbaga b60e2c3
prevent duplicate rules during updates
bcmmbaga 20fc8e8
fix tests
bcmmbaga 0ee56e1
fix lint
bcmmbaga 82746d9
Use UTC time in test
bcmmbaga bdb2a76
Merge branch 'main' into policy-get-account-refactoring
bcmmbaga 79822cd
Merge branch 'policy-get-account-refactoring' into dns-get-account-re…
bcmmbaga 72bfc9d
Merge branch 'dns-get-account-refactoring' into nameserver-get-accoun…
bcmmbaga 2e6bbac
Merge branch 'main' into nameserver-get-account-refactoring
bcmmbaga b213987
Merge branch 'nameserver-get-account-refactoring' into peers-get-acco…
bcmmbaga 21561a2
Merge branch 'main' into peers-get-account-refactoring
bcmmbaga fde9f2f
Add store locks and prevent fetching setup keys peers when retrieving…
bcmmbaga a22d504
Add missing tests
bcmmbaga cde0e51
Refactor test names and remove duplicate TestPostgresql_SavePeerStatus
bcmmbaga f87bc60
Add account locks and remove redundant ephemeral check
bcmmbaga 1ba6eb6
Retrieve all groups for peers and restrict groups for regular users
bcmmbaga dea6886
Merge branch 'main' into peers-get-account-refactoring
bcmmbaga d66140f
Fix merge
bcmmbaga 8c4613b
Merge branch 'main' into peers-get-account-refactoring
bcmmbaga a3663fb
Merge branch 'main' into peers-get-account-refactoring
bcmmbaga File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't remove the lock just yet