-
Notifications
You must be signed in to change notification settings - Fork 41
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
feat: add migrate piece auth check #1109
Conversation
a56b245
to
4e4faaf
Compare
4e4faaf
to
8235cd4
Compare
8235cd4
to
0286943
Compare
23485b1
to
df8d393
Compare
df8d393
to
a433366
Compare
3e027fc
to
959b693
Compare
c2339e9
to
d6c96d4
Compare
test/e2e/spworkflow/e2e_test.sh
Outdated
@@ -6,10 +6,10 @@ export CGO_CFLAGS_ALLOW="-O -D__BLST_PORTABLE__" | |||
workspace=${GITHUB_WORKSPACE} | |||
|
|||
# some constants | |||
GREENFIELD_REPO_TAG="v0.2.5-alpha.1" | |||
GREENFIELD_TAG="v0.2.5-alpha.1" |
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.
it is now v0.2.5-alpha.2
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.
Fixed to v0.2.5-hf.1.
@@ -139,15 +162,15 @@ func (e *ExecuteModular) doObjectMigration(ctx context.Context, task coretask.Mi | |||
migratePieceTask := &gfsptask.GfSpMigratePieceTask{ |
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.
if Signature field is never used in GfSpMigratePieceTask, should we consider to remove it?
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.
Fixed, redundant fields and logic have been removed. The current proto is not used, so incompatible adjustments can be made.
e22f923
to
6f149a5
Compare
6f149a5
to
edbcb59
Compare
edbcb59
to
be1829f
Compare
Description
Add migrate piece auth check.
Rationale
Every migration piece request includes an ECDSA signature which source SP can parse out a destination SP identity information that cannot be forged.The source SP needs to verify whether the destination SP has permission to perform the migration action.
Example
N/A.
Changes
Notable changes: