-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Validation service scaffold (#320) * Scaffold MLS server * Update go.mod * Fix missing argument * Add unsaved file * Lint * Working end-to-end * Lint * Add new push action * Address review comments * Change method casing * Change casing of server options * Change casing of validation options * Remove unused function * Remove double pointer * Make private again * Add more MLS methods (#321) * Scaffold MLS server * Update go.mod * Fix missing argument * Add unsaved file * Lint * Working end-to-end * Lint * Add new push action * Add a bunch of new endpoints * Address review comments * Change method casing * Change casing of server options * Change casing of validation options * Remove unused function * Remove double pointer * Make private again * Fix pointer to key package * Capitalize more things * Update server fields * Add test for sort methods * Save change to capitalization * Fix lint warnings * Fix problem with mocks * Fix index name * Move sorting to the store * Fix ciphertext validation * Make installation_id bytes * Add missing credential identity * Hack sql in query * Revert "Hack sql in query" This reverts commit 168b78a. * Remove custom type * Update to latest protos * Add CredentialIdentity * Fix migrations * refactor: walletaddress->accountaddress (#325) Settling on consistent terminology as discussed * go mod tidy * Assume KeyPackages are always last resort. (#329) * Assume KeyPackages are always last resort. * Missing KeyPackages don't cause entire request to fail. * Update go.mod * UpdateKeyPackage returns an error if installation is unknown. * refactor: move api/message/v3 to mls/api/v1 (#332) * refactor: move message_api/v3 to mls/api/v1 * refactor: move pkg/mlsstore to pkg/mls/store * Rename mls build/push workflow * Decouple MLS messages from messagev1 (#333) * Separate MLS messages and implement service methods * fix: group id and installation id are bytes * fix: idempotent send group/welcome messages via uniquness in db * fix: hex decode group id from mls validation service * fix: s/Cursor/IdCursor * fix: pass message data only in send group message request * refactor: add mls {Group,Welcome}MessageInput types for send requests * refactor: s/installation_id/installation_key in mls/api * fix: clean up mls query page size logic * feat: implement mls subscribe group/welcome messages * Hex encode group ID * fix: remove duplicate import * fix: return grpc invalidargument on invalid group id --------- Co-authored-by: Nicholas Molnar <[email protected]> * Generate protos in repo (#335) * Add buf.gen.yaml * Gen protos * Update build steps * go mod tidy * Remove push-mls github workflow * Add hpke public key (#337) * Validation service scaffold (#320) * Scaffold MLS server * Update go.mod * Fix missing argument * Add unsaved file * Lint * Working end-to-end * Lint * Add new push action * Address review comments * Change method casing * Change casing of server options * Change casing of validation options * Remove unused function * Remove double pointer * Make private again * Add more MLS methods (#321) * Scaffold MLS server * Update go.mod * Fix missing argument * Add unsaved file * Lint * Working end-to-end * Lint * Add new push action * Add a bunch of new endpoints * Address review comments * Change method casing * Change casing of server options * Change casing of validation options * Remove unused function * Remove double pointer * Make private again * Fix pointer to key package * Capitalize more things * Update server fields * Add test for sort methods * Save change to capitalization * Fix lint warnings * Fix problem with mocks * Fix index name * Move sorting to the store * Fix ciphertext validation * Make installation_id bytes * Add missing credential identity * Hack sql in query * Revert "Hack sql in query" This reverts commit 168b78a. * Remove custom type * Update to latest protos * Add CredentialIdentity * Fix migrations * refactor: walletaddress->accountaddress (#325) Settling on consistent terminology as discussed * go mod tidy * Assume KeyPackages are always last resort. (#329) * Assume KeyPackages are always last resort. * Missing KeyPackages don't cause entire request to fail. * Update go.mod * UpdateKeyPackage returns an error if installation is unknown. * refactor: move api/message/v3 to mls/api/v1 (#332) * refactor: move message_api/v3 to mls/api/v1 * refactor: move pkg/mlsstore to pkg/mls/store * Rename mls build/push workflow * Decouple MLS messages from messagev1 (#333) * Separate MLS messages and implement service methods * fix: group id and installation id are bytes * fix: idempotent send group/welcome messages via uniquness in db * fix: hex decode group id from mls validation service * fix: s/Cursor/IdCursor * fix: pass message data only in send group message request * refactor: add mls {Group,Welcome}MessageInput types for send requests * refactor: s/installation_id/installation_key in mls/api * fix: clean up mls query page size logic * feat: implement mls subscribe group/welcome messages * Hex encode group ID * fix: remove duplicate import * fix: return grpc invalidargument on invalid group id --------- Co-authored-by: Nicholas Molnar <[email protected]> * Generate protos in repo (#335) * Add buf.gen.yaml * Gen protos * Update build steps * Update protos * Add hpke pub key * Specify column * Fix field name * Fix migration * Add data to test * Do more validations on welcome messages * Simplify check * Fix insert statement * Push up mls image * Add new generated file --------- Co-authored-by: Richard Hua <[email protected]> Co-authored-by: Steven Normore <[email protected]> Co-authored-by: Brendan McMillion <[email protected]> Co-authored-by: Steven Normore <[email protected]> * Populate options from MLS_DB_CONNECTION_STRING too --------- Co-authored-by: Nicholas Molnar <[email protected]> Co-authored-by: Richard Hua <[email protected]> Co-authored-by: Brendan McMillion <[email protected]>
- Loading branch information
1 parent
becf56a
commit 86fc580
Showing
114 changed files
with
25,553 additions
and
280 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Push MLS Container | ||
on: | ||
push: | ||
branches: | ||
# - mls | ||
- nm/add-hpke-public-key | ||
jobs: | ||
deploy: | ||
concurrency: main | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: xmtpeng | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
- name: Git Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- name: Push | ||
id: push | ||
run: | | ||
export DOCKER_IMAGE_TAG=mls-dev | ||
IMAGE_TO_DEPLOY=xmtp/node-go@$(dev/docker/build) | ||
echo Successfully pushed $IMAGE_TO_DEPLOY | ||
echo "docker_image=${IMAGE_TO_DEPLOY}" >> $GITHUB_OUTPUT |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# buf.gen.yaml | ||
version: v1 | ||
managed: | ||
enabled: true | ||
go_package_prefix: | ||
# <module_name> : name in go.mod | ||
# <relative_path> : where generated code should be output | ||
default: github.com/xmtp/xmtp-node-go/pkg/proto | ||
# Remove `except` field if googleapis is not used | ||
except: | ||
- buf.build/googleapis/googleapis | ||
- buf.build/grpc-ecosystem/grpc-gateway | ||
plugins: | ||
- plugin: buf.build/grpc-ecosystem/gateway:v2.19.0 | ||
out: pkg/proto | ||
opt: | ||
- paths=source_relative | ||
- plugin: buf.build/grpc/go:v1.3.0 | ||
out: pkg/proto | ||
opt: | ||
- paths=source_relative | ||
# dependencies | ||
- plugin: buf.build/protocolbuffers/go | ||
out: pkg/proto | ||
opt: | ||
- paths=source_relative | ||
- plugin: buf.build/grpc-ecosystem/openapiv2:v2.19.0 | ||
out: pkg/proto/openapi |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
dev/run --create-mls-migration "$@" |
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
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
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.