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 account retrieval to use store methods #2671

Draft
wants to merge 70 commits into
base: main
Choose a base branch
from

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    258b30c View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. refactor jwt groups extractor

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    3cf1b02 View commit details
    Browse the repository at this point in the history
  2. refactor handlers to get account when necessary

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

Commits on Sep 18, 2024

  1. refactor getAccountFromToken

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

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    720d36a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a4c4158 View commit details
    Browse the repository at this point in the history
  4. fix merge

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    021fc8f View commit details
    Browse the repository at this point in the history
  5. revert handles change

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    f60a423 View commit details
    Browse the repository at this point in the history
  6. remove GetUserByID from account manager

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

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

Commits on Sep 20, 2024

  1. Configuration menu
    Copy the full SHA
    4d9bb7e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    26dd045 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. refactor handlers to use GetAccountIDFromToken

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

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

Commits on Sep 23, 2024

  1. remove locks

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

Commits on Sep 24, 2024

  1. refactor

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    2884038 View commit details
    Browse the repository at this point in the history
  2. add GetGroupByName from store

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    1ffe89d View commit details
    Browse the repository at this point in the history
  3. add GetGroupByID from store and refactor

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    7561706 View commit details
    Browse the repository at this point in the history
  4. Refactor retrieval of policy and posture checks

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    eab8564 View commit details
    Browse the repository at this point in the history
  5. Refactor user permissions and retrieves PAT

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

Commits on Sep 25, 2024

  1. Configuration menu
    Copy the full SHA
    16174f0 View commit details
    Browse the repository at this point in the history
  2. Refactor store

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    41b212f View commit details
    Browse the repository at this point in the history
  3. fix lint

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

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    c384874 View commit details
    Browse the repository at this point in the history
  5. add store policy save and method

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

Commits on Sep 26, 2024

  1. refactor posture checks save and deletion

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    3b4bcdf View commit details
    Browse the repository at this point in the history
  2. fix add missing policy source posture checks

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    dc82c2d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    30253b0 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'main' into refactor-get-account-by-token

    # Conflicts:
    #	management/server/sql_store.go
    bcmmbaga committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    871595d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ca6a9fd View commit details
    Browse the repository at this point in the history
  6. add store lock

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    4575ae2 View commit details
    Browse the repository at this point in the history
  7. Merge branch 'refactor-get-account-by-token' into refactor/get-accoun…

    …t-usage
    
    # Conflicts:
    #	management/server/file_store.go
    bcmmbaga committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    f61c914 View commit details
    Browse the repository at this point in the history
  8. fix merge

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    73be8c8 View commit details
    Browse the repository at this point in the history
  9. fix tests

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    96f18c2 View commit details
    Browse the repository at this point in the history
  10. fix tests

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

Commits on Sep 27, 2024

  1. Merge branch 'main' into refactor/get-account-usage

    # Conflicts:
    #	management/server/file_store.go
    #	management/server/http/posture_checks_handler.go
    #	management/server/mock_server/account_mock.go
    #	management/server/policy.go
    #	management/server/sql_store.go
    #	management/server/store.go
    bcmmbaga committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    bc52041 View commit details
    Browse the repository at this point in the history
  2. fix merge

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

Commits on Sep 30, 2024

  1. refactor setup keys

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    9e47c94 View commit details
    Browse the repository at this point in the history
  2. refactor account and dns settings

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    43eb726 View commit details
    Browse the repository at this point in the history
  3. refactor name server groups

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    d36d30d View commit details
    Browse the repository at this point in the history
  4. refactor user PAT

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    1a37b12 View commit details
    Browse the repository at this point in the history
  5. Fix posture check name uniqueness per account

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    f43a006 View commit details
    Browse the repository at this point in the history
  6. wip refactor peer methods

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

Commits on Oct 1, 2024

  1. refactor groups methods

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

Commits on Oct 2, 2024

  1. wip: refactoring

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

Commits on Oct 14, 2024

  1. Merge branch 'main' into refactor/get-account-usage

    # Conflicts:
    #	management/server/account.go
    #	management/server/file_store.go
    #	management/server/peer.go
    #	management/server/policy.go
    #	management/server/route.go
    #	management/server/sql_store.go
    #	management/server/store.go
    #	management/server/user.go
    bcmmbaga committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a8c8b77 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. fix merge

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

Commits on Oct 16, 2024

  1. Remove get account from groups ops

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

Commits on Oct 17, 2024

  1. check user accounts for setup keys

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    d7a6996 View commit details
    Browse the repository at this point in the history
  2. get the first element when get record by ID

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    b66f331 View commit details
    Browse the repository at this point in the history
  3. Refactor policy save and delete

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    408d0cd View commit details
    Browse the repository at this point in the history
  4. Merge branch 'main' into refactor/get-account-usage

    # Conflicts:
    #	management/server/sql_store.go
    bcmmbaga committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    b0edc5f View commit details
    Browse the repository at this point in the history
  5. fix handler tests

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    ee96a81 View commit details
    Browse the repository at this point in the history
  6. refactor get peers posture checks

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    83be99c View commit details
    Browse the repository at this point in the history
  7. Merge branch 'main' into refactor/get-account-usage

    # Conflicts:
    #	management/server/account.go
    bcmmbaga committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    a82b5ce View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. fix group tests

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

Commits on Oct 23, 2024

  1. Refactor peer expiry, inactivity, location and status update to remov…

    …e get account
    
    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    0bdcb41 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. Refactor route

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

Commits on Oct 28, 2024

  1. wip: refactor get account in peers

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

Commits on Oct 29, 2024

  1. refactor get account in peers

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

Commits on Oct 30, 2024

  1. Merge branch 'main' into refactor-get-account-by-token

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    901d283 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b7525d9 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2024

  1. Refactor ephemeral peers and mark PAT as used

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    6b94f6e View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into refactor/get-account-usage

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    8cacdae View commit details
    Browse the repository at this point in the history
  3. Refactor update account peers

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

Commits on Nov 1, 2024

  1. Refactor auth middleware

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

Commits on Nov 2, 2024

  1. Merge branch 'main' into refactor/get-account-usage

    Signed-off-by: bcmmbaga <[email protected]>
    bcmmbaga committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    74246d1 View commit details
    Browse the repository at this point in the history
  2. Refactor user and peers delete

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