Skip to content
Snippets Groups Projects

Draft: Poc: Use SSH RPC exposed by Workhorse

Closed Igor Drozdov requested to merge id-use-workhorse-git-ssh-rpc into main
1 unresolved thread

Merge request reports

Merge request pipeline #1232075988 failed

Pipeline: TRIGGERED_EE_PIPELINE

#1232076717

    Merge request pipeline failed for c4a952fc

    Approval is optional
    Code Quality is loading

    Closed by Igor DrozdovIgor Drozdov 9 months ago (May 23, 2024 6:34pm UTC)

    Loading

    Activity

    Filter activity
    • Approvals
    • Assignees & reviewers
    • Comments (from bots)
    • Comments (from users)
    • Commits & branches
    • Edits
    • Labels
    • Lock status
    • Mentions
    • Merge request status
    • Tracking
    102 104 google.golang.org/api v0.155.0 // indirect
    103 105 google.golang.org/appengine v1.6.8 // indirect
    104 106 google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 // indirect
    105 google.golang.org/genproto/googleapis/api v0.0.0-20240123012728-ef4313101c80 // indirect
    106 google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
    107 google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe // indirect
    108 google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect
    107 109 gopkg.in/DataDog/dd-trace-go.v1 v1.32.0 // indirect
    108 110 )
    109 111
    110 112 exclude github.com/prometheus/client_golang v1.12.1
    113
    114 replace gitlab.com/gitlab-org/cells/global-service-poc => ./global-service
    • This MR assumes that:

      1. https://gitlab.com/gitlab-org/tenant-scale-group/pocs/global-service project is cloned into the root of the repo
      2. Run make and ./sql-migrate up
      3. Modify config.toml to contains cells addresses:
      [database]
      config_file = "dbconfig.yml"
      
      [[cells]]
      id = 100
      name = "cell-1"
      address = "http://gdk.test:3000"
      
      [[cells]]
      id = 200
      name = "cell-2"
      address = "http://gdk.test:3001"
      1. test.db contains the right claims
      irb
      
      => require 'sqlite3'
      => db = SQLite3::Database.new "test.db"
      => db.execute "INSERT INTO unique_claims (claim_type, claim_name, cell_id, resource_type, resource_id) VALUES (1, 'gitlab-org', 100, 'Group', 2);"
      => db.execute "INSERT INTO unique_claims (claim_type, claim_name, cell_id, resource_type, resource_id) VALUES (1, 'cell2', 200, 'Group', 35);"
      => db.execute "SELECT * FROM unique_claims"
      => [[1, 1, "gitlab-org", "Group", 2, 100, "2024-03-27 20:48:55", "2024-03-27 20:48:55"], [2, 1, "cell2", "Group", 35, 200, "2024-03-27 22:21:18", "2024-03-27 22:21:18"]]

      Where (gitlab-org, 2) and (cell2, 35) are the names and ids of your groups on cell-1 and cell-2. 100 and 200 are the ids of the cells configured in config.toml.

      1. http://localhost:8091/v1/classify?match=0&value=cell2 returns correct data
    • Please register or sign in to reply
  • Igor Drozdov added 1 commit

    added 1 commit

    • e33bcee6 - Perform gRPC Classify call before /allowed request

    Compare with previous version

  • Igor Drozdov added 1 commit

    added 1 commit

    • c4a952fc - Perform gRPC Classify call before /allowed request

    Compare with previous version

  • mentioned in issue #762 (closed)

  • Igor Drozdov mentioned in issue #763

    mentioned in issue #763

  • Igor Drozdov mentioned in epic &13532

    mentioned in epic &13532

  • Igor Drozdov mentioned in issue #764

    mentioned in issue #764

  • mentioned in epic &12708

  • closed

  • Igor Drozdov mentioned in merge request !1081 (merged)

    mentioned in merge request !1081 (merged)

  • mentioned in epic gitlab-org#13532

  • Please register or sign in to reply
    Loading