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

[management] Refactor nameserver groups to use store methods #2888

Merged
merged 60 commits into from
Nov 26, 2024

Commits on Nov 7, 2024

  1. Refactor setup key handling to use store methods

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    389c961 View commit details
    Browse the repository at this point in the history
  2. add lock to get account groups

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    78044c2 View commit details
    Browse the repository at this point in the history
  3. add check for regular user

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    1a5f3c6 View commit details
    Browse the repository at this point in the history
  4. get only required groups for auto-group validation

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    931521d View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. Configuration menu
    Copy the full SHA
    f8b5eed View commit details
    Browse the repository at this point in the history
  2. refactor account peers update

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    106fc75 View commit details
    Browse the repository at this point in the history
  3. Refactor groups to use store methods

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    0a70e4c View commit details
    Browse the repository at this point in the history
  4. refactor GetGroupByID and add NewGroupNotFoundError

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    8126d95 View commit details
    Browse the repository at this point in the history
  5. fix tests

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    ac05f69 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'feature/get-account-refactoring' into setupkey-get-acco…

    …unt-refactoring
    
    # Conflicts:
    #	management/server/sql_store.go
    bcmmbaga committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    40af1a5 View commit details
    Browse the repository at this point in the history
  7. Merge branch 'setupkey-get-account-refactoring' into groups-get-accou…

    …nt-refactoring
    
    # Conflicts:
    #	management/server/sql_store.go
    bcmmbaga committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    d58cf50 View commit details
    Browse the repository at this point in the history
  8. Add AddPeer and RemovePeer methods to Group struct

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    7100be8 View commit details
    Browse the repository at this point in the history
  9. Preserve store engine in SqlStore transactions

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    6dc185e View commit details
    Browse the repository at this point in the history
  10. Run groups ops in transaction

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    bdeb95c View commit details
    Browse the repository at this point in the history
  11. fix missing group removed from setup key activity

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    3ed8b9c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    cc04aef View commit details
    Browse the repository at this point in the history
  13. fix merge

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    871500c View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2024

  1. Refactor posture checks to remove get and save account

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    174e07f View commit details
    Browse the repository at this point in the history
  2. fix refactor

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    d54b696 View commit details
    Browse the repository at this point in the history
  3. fix tests

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    601d429 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'main' into groups-get-account-refactoring

    # Conflicts:
    #	management/server/group.go
    #	management/server/group/group.go
    #	management/server/setupkey.go
    #	management/server/sql_store.go
    #	management/server/status/error.go
    #	management/server/store.go
    bcmmbaga committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    010a8bf View commit details
    Browse the repository at this point in the history
  5. fix merge

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    664d138 View commit details
    Browse the repository at this point in the history
  6. fix sonar

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    ab00c41 View commit details
    Browse the repository at this point in the history
  7. Change setup key log level to debug for missing group

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    113c21b View commit details
    Browse the repository at this point in the history
  8. Retrieve modified peers once for group events

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 11, 2024
    Configuration menu
    Copy the full SHA
    d23b5c8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ffce48c View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

  1. Refactor policy get and save account to use store methods

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    0c0fd38 View commit details
    Browse the repository at this point in the history
  2. Fix tests

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    2d7f08c View commit details
    Browse the repository at this point in the history
  3. Add tests

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    2806d73 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    00023bf View commit details
    Browse the repository at this point in the history
  5. Add tests

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    a3abc21 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'main' into groups-get-account-refactoring

    # Conflicts:
    #	management/server/account.go
    #	management/server/status/error.go
    bcmmbaga committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    ed259a6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    147971f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    446de5e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2a59f04 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    32d1b2d View commit details
    Browse the repository at this point in the history
  11. Fix typo

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    bbaee18 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    50e6389 View commit details
    Browse the repository at this point in the history
  13. Add policy tests

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    3a915de View commit details
    Browse the repository at this point in the history
  14. Refactor anyGroupHasPeers to retrieve all groups once

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    9872bee View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    9bc8e6e View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2024

  1. Refactor dns settings to use store methods

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    5601905 View commit details
    Browse the repository at this point in the history
  2. Add tests

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    4b943c3 View commit details
    Browse the repository at this point in the history
  3. Add account locking and merge group deletion methods

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    ed047ec View commit details
    Browse the repository at this point in the history
  4. Fix tests

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    a4d905f View commit details
    Browse the repository at this point in the history
  5. Refactor name server groups to use store methods

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    218345e View commit details
    Browse the repository at this point in the history
  6. Add tests

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    ef55b9e View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2024

  1. Merge branch 'main' into groups-get-account-refactoring

    # Conflicts:
    #	management/server/group.go
    bcmmbaga committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    92b9e11 View commit details
    Browse the repository at this point in the history
  2. Fix typo

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    4ef3890 View commit details
    Browse the repository at this point in the history
  3. Add locks and remove log

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    51c1ec2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1ff8f61 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d4c7124 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2024

  1. Configuration menu
    Copy the full SHA
    6dd56e3 View commit details
    Browse the repository at this point in the history
  2. Use update strength and simplify check

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    ec6438e View commit details
    Browse the repository at this point in the history
  3. prevent changing ruleID when not empty

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    df98c67 View commit details
    Browse the repository at this point in the history
  4. prevent duplicate rules during updates

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 18, 2024
    Configuration menu
    Copy the full SHA
    b60e2c3 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2024

  1. Merge branch 'main' into policy-get-account-refactoring

    # Conflicts:
    #	management/server/policy.go
    #	management/server/posture_checks_test.go
    #	management/server/sql_store.go
    #	management/server/sql_store_test.go
    #	management/server/status/error.go
    #	management/server/store.go
    #	management/server/testdata/extended-store.sql
    bcmmbaga committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    bdb2a76 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    79822cd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    72bfc9d View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2024

  1. Merge branch 'main' into nameserver-get-account-refactoring

    # Conflicts:
    #	management/server/sql_store_test.go
    #	management/server/status/error.go
    #	management/server/testdata/extended-store.sql
    bcmmbaga committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    2e6bbac View commit details
    Browse the repository at this point in the history