instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
workos__workos-go__108
workos/workos-go
108
defect
ea4b66f286888bf2447e08b0534caac9ca208b6c
f4a8f3421b79922d0155d9753d5cc60531b3ac2b
Improve error handling, expose error and error_description
https://linear.app/workos/issue/SDK-66/improve-error-handling-in-go-sdk Exposes error and error_description in error body to improve error handling.
diff --git a/internal/workos/http.go b/internal/workos/http.go index c4702bc4..3bac1f9b 100644 --- a/internal/workos/http.go +++ b/internal/workos/http.go @@ -16,6 +16,8 @@ func TryGetHTTPError(r *http.Response) error { } var msg string + var error string + var description string body, err := ioutil.ReadAll(r...
4
4
2
[{"id": "G0", "claim": "Expand the HTTPError field names `Err` and `ErrDescription` to `Error` and `ErrorDescription`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "HTTPError.Error() should adjust its string representation based on which proper...
null
workos__workos-go__123
workos/workos-go
123
defect
1261d515aca4cd2dc5d9deb4d4531ff1c429772c
4dbbe7207c65cfaf2d455da8a75cabbed5fe4670
Add webhook signature validation method
Adds new class/resource for webhook in order to create a public function that users can leverage to input a webhook's header and body and receive a validated webhook object.
diff --git a/pkg/webhooks/client.go b/pkg/webhooks/client.go new file mode 100644 index 00000000..ec5e57a1 --- /dev/null +++ b/pkg/webhooks/client.go @@ -0,0 +1,106 @@ +package webhooks + +import ( + "crypto/hmac" + "crypto/sha256" + "encoding/hex" + "errors" + "strconv" + "strings" + "time" +) + +// Define signedHeade...
5
4
0
[{"id": "G0", "claim": "The '// Define signedHeader' comment just restates what the code does and should be removed, since comments should convey the why rather than the what.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's error messa...
null
workos__workos-go__160
workos/workos-go
160
defect
bc2c4e65b55240cbdf2b1a549703016af1d6d359
3356ef551634553c07cb3289d8ed71d5487772a3
Update endpoints used for MFA operations
This PR updates the endpoints used for two of the MFA operations: - `ChallengeFactor` - `VerifyChallenge` The VerifyFactor method is now deprecated and has been replaced with VerifyChallenge. VerifyFactor will be removed in the next major version. Resolves SDK-546. I followed Godoc's deprecation: https://...
diff --git a/pkg/mfa/client.go b/pkg/mfa/client.go index 9c4c6940..3cad800a 100644 --- a/pkg/mfa/client.go +++ b/pkg/mfa/client.go @@ -216,12 +216,11 @@ func (c *Client) ChallengeFactor( } postBody, _ := json.Marshal(map[string]string{ - "authentication_factor_id": opts.AuthenticationFactorID, - "sms_template":...
1
1
0
[{"id": "G0", "claim": "The authentication_challenge_id field should be removed from the postBody in VerifyChallenge, since the challenge ID now goes in the endpoint URL.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
workos__workos-go__187
workos/workos-go
187
defect
b0450649ee95357fd4f2f492be7ce4cae9b5f11b
625e5e9fd0f2e84151daafce989c6ab2fa558902
Standardise return type of VerifyChallenge and coalesce errors into Error
Prefer strongly typed return types to interface{} and map[string]interface{}. Don't use two separate Error like return values.
diff --git a/pkg/mfa/client.go b/pkg/mfa/client.go index 5de8f884..b4687cfc 100644 --- a/pkg/mfa/client.go +++ b/pkg/mfa/client.go @@ -134,7 +134,7 @@ type VerifyOpts struct { type VerifyResponse struct { // Return details of the request - Challenge map[string]interface{} `json:"challenge"` + Challenge ChallengeRe...
2
2
0
[{"id": "G0", "claim": "The Error() method on VerificationResponseError should use a value receiver instead of a pointer, which would also remove the need for &VerificationResponseError{...} at the return site.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
workos__workos-go__188
workos/workos-go
188
defect
625e5e9fd0f2e84151daafce989c6ab2fa558902
26b73140979c88e198707ea06ca133ff49bdf4ed
MFA Improvements
- `EnrollResponse` updated to `Factor` - `ChallengeResponse ` updated to `Challenge` - `GetEnrollOpts` updated to `EnrollFactorOpts` - `VerifyOpts` updated to `VerifyChallengeOpts` - capitalized `AuthenticationFactor` fields to `SMS` and `TOTP` - created type `FactorType` with `SMS` and `TOTP` enums & ...
diff --git a/pkg/mfa/client.go b/pkg/mfa/client.go index b4687cfc..654919b2 100644 --- a/pkg/mfa/client.go +++ b/pkg/mfa/client.go @@ -58,22 +58,32 @@ func (c *Client) init() { } } -// GetEnrollsOpts contains the options to create an Authentication Factor. -type GetEnrollOpts struct { +// Type represents the type ...
4
4
0
[{"id": "G0", "claim": "The new factor-type enum type should not be named `Type`; it should be explicitly named `FactorType` or `AuthenticationFactorType`, and the reviewer expresses a preference for the short un-prefixed style (`Factor`/`Challenge`) consistent with the package prefix.", "category": "design", "verdict"...
null
workos__workos-go__208
workos/workos-go
208
defect
ea6316d005c5c9fb4bf0fe03277edf0d9ef32746
f98ca53729282bfb128f4dee38e07ef32b062e29
Add Events API beta
## Description Adding beta support for the Events API. ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ X ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their...
diff --git a/pkg/events/README.md b/pkg/events/README.md new file mode 100644 index 00000000..faef6b97 --- /dev/null +++ b/pkg/events/README.md @@ -0,0 +1,30 @@ +# events + +A Go package to retrieve events from WorkOS. + +## Install + +```sh +go get -u github.com/workos/workos-go/v2/pkg/events +``` + +## How it works ...
13
8
3
[{"id": "G0", "claim": "The default response limit of 10 may not be the intended value (should it be higher, e.g. 100?).", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Event.CreatedAt should be typed time.Time rather than string, matching how the rest of t...
null
workos__workos-go__210
workos/workos-go
210
defect
205a75c1b1cfc81b641ad59b4745d0d5d7636e7b
4fd03f1e67ddb03e54c1dbf9affdab7480b8760e
Use snake case for Events range params
## Description Use snake case for range params in the Events API. This makes Events consistent with the rest of our API. ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a...
diff --git a/pkg/events/client.go b/pkg/events/client.go index f7d55853..54ea8409 100644 --- a/pkg/events/client.go +++ b/pkg/events/client.go @@ -70,10 +70,10 @@ type ListEventsOpts struct { After string `url:"after,omitempty"` // Date range start for stream of Events. - RangeStart string `url:"rangeStart,omitem...
1
1
0
[{"id": "G0", "claim": "The test case name in pkg/events/client_test.go should use `range_start` and `range_end` instead of `RangeStart` and `RangeEnd` to match the new snake_case URL params.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
workos__workos-go__218
workos/workos-go
218
defect
ea608dadb0d5d8af5b83d1f2c9848b1bc3f5e7f0
b52911baee51ea4ac827f73b4afc14805ffcdbfc
User management: Get User
## Description ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.
diff --git a/pkg/users/README.md b/pkg/users/README.md new file mode 100644 index 00000000..6502d58e --- /dev/null +++ b/pkg/users/README.md @@ -0,0 +1,15 @@ +# sso + +[![Go Report Card](https://img.shields.io/badge/dev-reference-007d9c?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/workos/workos-go...
3
3
1
[{"id": "G0", "claim": "The users Client should be constructed via an idiomatic NewClient function (with defaults set at construction) instead of the init()/sync.Once lazy-initialization approach in client.go, as with the newer SSO package.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "int...
null
workos__workos-go__220
workos/workos-go
220
defect
97c865af781251d8199ef7b194768b752efe3032
d08db81bed1cec216adaab926212b23befa8c623
Authenticate with password
## Description Adds the authenticate with password method ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. The...
diff --git a/pkg/users/client.go b/pkg/users/client.go index efa78939..757d2b8a 100644 --- a/pkg/users/client.go +++ b/pkg/users/client.go @@ -4,9 +4,11 @@ import ( "context" "encoding/json" "fmt" + "github.com/google/go-querystring/query" "github.com/workos/workos-go/v2/internal/workos" "github.com/workos/wo...
1
1
1
[{"id": "G0", "claim": "The Session struct field should be named ExpiresAt with the json tag `expires_at` instead of UpdatedAt with `Updated_at`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
workos__workos-go__223
workos/workos-go
223
defect
5848ffcf6423d889e0dfd7e64e652525acf4e8cc
abe6c77d540c9077f3c1be95e73244756f610fbb
Add RemoveUserFromOrganization method
## Description ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.
diff --git a/pkg/users/client.go b/pkg/users/client.go index df473180..1cb14cc2 100644 --- a/pkg/users/client.go +++ b/pkg/users/client.go @@ -1,11 +1,13 @@ package users import ( + "bytes" "context" "encoding/json" "fmt" "github.com/google/go-querystring/query" "github.com/workos/workos-go/v2/internal/wo...
1
1
0
[{"id": "G0", "claim": "The comment above AddUserToOrganization in pkg/users/client.go is a copy-pasted CreateUser comment left in by mistake and should describe AddUserToOrganization instead.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
workos__workos-go__224
workos/workos-go
224
defect
5848ffcf6423d889e0dfd7e64e652525acf4e8cc
0cf0b627410d706b125324372406e9e92ba9d248
User Management: Authenticate user with token
## Description Adds the authenticate user with token method. ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer....
diff --git a/pkg/users/client.go b/pkg/users/client.go index df473180..5a198d68 100644 --- a/pkg/users/client.go +++ b/pkg/users/client.go @@ -203,3 +203,50 @@ func (c *Client) AuthenticateUserWithPassword(ctx context.Context, opts Authenti return body, err } + +type AuthenticateUserWithTokenOpts struct { + Client...
4
3
1
[{"id": "G0", "claim": "The test function testUsersAuthenticateUserWithPassword should be renamed to TestUsersAuthenticateUserWithPassword so the Go test runner actually runs it.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test function testUsers...
null
workos__workos-go__230
workos/workos-go
230
defect
8c72d07a46f90e6f42f72ff7e715ead0396689f4
02c18a5d14dab1b9d595ede0f63ff30b6dfa86dd
Update session interface to match api changes
## Description Matching Node changes: https://github.com/workos/workos-node/pull/802 ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ x] Yes ``` If yes, link a related docs PR and add a doc...
diff --git a/pkg/users/client.go b/pkg/users/client.go index 9a5095ca..4fb941f2 100644 --- a/pkg/users/client.go +++ b/pkg/users/client.go @@ -79,10 +79,6 @@ type User struct { // The type of the User: `managed` or `unmanaged` UserType UserType `json:"user_type"` - // List of the user's organization memberships. ...
2
2
2
[{"id": "G0", "claim": "Session.AuthorizedOrganizations should use a dedicated AuthorizedOrganization struct with a single `organization` field (holding name and ID) instead of a plain Organization.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Unauthor...
null
workos__workos-go__251
workos/workos-go
251
defect
1062226853342546705b5b12fdb8da4534bb0985
db5d3f67e413d6823cca72877de57c41a6f45027
Update Email Verification methods
## Description - `CreateEmailVerificationChallenge` -> `SendVerificationEmail` - `CompleteEmailVerificationChallenge` -> `VerifyEmailCode` Response of both methods is changed to `UserResponse` which contains a nested `User` ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Refere...
diff --git a/pkg/users/client.go b/pkg/users/client.go index 38a0d9b5..6339763f 100644 --- a/pkg/users/client.go +++ b/pkg/users/client.go @@ -163,17 +163,16 @@ type AuthenticationResponse struct { User User `json:"user"` } -type CreateEmailVerificationChallengeOpts struct { +type SendVerificationEmailOpts struct ...
1
1
0
[{"id": "G0", "claim": "The doc comments on the renamed email-verification structs and methods should be updated to reflect the renames (e.g. the VerifyEmailCodeOpts field comment still says \"verification token\" instead of \"verification code\").", "category": "documentation", "verdict": "supported", "priority": "P2"...
null
workos__workos-go__290
workos/workos-go
290
defect
3cc7501ad538762ca316094d773c67a83cfd1f1e
a5922430bdb5e84877153ff99bb4f36616bfdbd9
Add `usermanagement.GetInvitation` method
## Description ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required. #### PR Dependency Tree * ...
diff --git a/pkg/usermanagement/client.go b/pkg/usermanagement/client.go index 3da8ed25..1cde9b64 100644 --- a/pkg/usermanagement/client.go +++ b/pkg/usermanagement/client.go @@ -27,6 +27,30 @@ const ( Desc Order = "desc" ) +// InvitationState represents the state of a token. +type InvitationState string + +// Con...
3
2
0
[{"id": "G0", "claim": "The doc comments above InvitationState and its constants say they represent the state of 'a token' when they should say 'an invitation'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests set Invitation.State to the r...
null
workos__workos-go__306
workos/workos-go
306
defect
363c8966cfe590432a6044dfae0e6e9a577a4b4b
570b971af9417e2d0fafe7f5dcae6a8a36bbcd51
chore: default list methods to descending order
## Description Default list methods to descending order. ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their ...
diff --git a/pkg/directorysync/client.go b/pkg/directorysync/client.go index e669d3e8..931b9207 100644 --- a/pkg/directorysync/client.go +++ b/pkg/directorysync/client.go @@ -189,6 +189,10 @@ func (c *Client) ListUsers( opts.Limit = ResponseLimit } + if opts.Order == "" { + opts.Order = Desc + } + v, err := q...
1
1
0
[{"id": "G0", "claim": "The SDK version constant in internal/workos/workos.go should be bumped as part of this PR since it still says v3.2.0.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
workos__workos-go__307
workos/workos-go
307
defect
7c8f3e37a8be2404ed5cf03429051f6cebfd0003
df9f00d293084c98e5a7e37c96151418f8c4a2ef
Add Impersonation-related fields and event type
## Description Adds support for the impersonator metadata in authentication responses, along with a new user.impersonated event. ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If y...
diff --git a/pkg/events/client.go b/pkg/events/client.go index 246e0742..a2ff07bb 100644 --- a/pkg/events/client.go +++ b/pkg/events/client.go @@ -40,6 +40,7 @@ const ( UserCreated = "user.created" UserUpdated = "user.updated" UserDeleted = "user.deleted" + Us...
1
1
0
[{"id": "G0", "claim": "The comment on the Impersonator.Reason field misspells \"impersonator\" as \"impersoantor\" and should read \"The reason provided by the impersonator for impersonating the user.\"", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
workos__workos-go__308
workos/workos-go
308
defect
7c8f3e37a8be2404ed5cf03429051f6cebfd0003
cd761e306ce4048fc8d683a14416fbb9633fee30
Add role to OrganizationMembership and new PUT OrganizationMembership endpoint
## Description New "role" parameter which is used in the User Management OrganizationMemberships API ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR a...
diff --git a/pkg/usermanagement/client.go b/pkg/usermanagement/client.go index ef627399..7f92e421 100644 --- a/pkg/usermanagement/client.go +++ b/pkg/usermanagement/client.go @@ -71,6 +71,11 @@ const ( PendingOrganizationMembership OrganizationMembershipStatus = "pending" ) +type RoleResponse struct { + // The slu...
2
2
1
[{"id": "G0", "claim": "The doc comment on CreateOrganizationMembershipOpts should read \"If no RoleSlug is given\" instead of \"If not RoleSlug is given\" (per the reviewer's suggestion block).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "RoleS...
null
workos__workos-go__327
workos/workos-go
327
defect
e2d59d232c2eb91e457be879d55d0c7b6717b20a
fa281110b93751c7e632a6f4cee6fa392875b549
Add `domains_data` to Organization API and deprecate `domains`
## Description ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.
diff --git a/pkg/organizations/client.go b/pkg/organizations/client.go index 80d23460..7cbe477b 100644 --- a/pkg/organizations/client.go +++ b/pkg/organizations/client.go @@ -125,6 +125,22 @@ type ListOrganizationsResponse struct { ListMetadata common.ListMetadata `json:"listMetadata"` } +type OrganizationDomainDa...
1
1
0
[{"id": "G0", "claim": "The deprecation comment on the Domains fields should be formatted as `Deprecated:` godoc instead of `[Deprecated]`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
workos__workos-go__332
workos/workos-go
332
defect
4c919b6477474d38b4e4475adc318b730a927b05
d57325a55b5723d0579df3b8c23eea37753f10e3
Add events and API changes for invitations and Magic Auth
## Description Adds events and API changes to support sending your own emails for invitations and Magic Auth. - Adds `AcceptInvitationUrl` to invitation object returned by API - Adds new event types: `invitation.created` and `magic_auth.created` - Adds new endpoints for the Magic Auth API: `GetMagicAuth` and `C...
diff --git a/pkg/events/client.go b/pkg/events/client.go index e1b762ce..e1e81516 100644 --- a/pkg/events/client.go +++ b/pkg/events/client.go @@ -46,6 +46,8 @@ const ( OrganizationMembershipUpdated = "organization_membership.updated" OrganizationMembershipRemoved = "organization_membership.removed" // Deprecated: ...
1
1
1
[{"id": "G0", "claim": "The GetMagicAuth doc comment says it fetches an Invitation by its ID, but the function fetches a Magic Auth, so it should read 'GetMagicAuth fetches a Magic Auth object by its ID.'", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
workos__workos-go__340
workos/workos-go
340
defect
5ad2b6d8f039d36c496b2d11a0434ae735588659
b37ca2376e54950e314e1d013359a0a05728812f
Add methods and events for email verification and password reset
## Description - Add `inviterUserID` to invitation object - Add `email_verification.created` and `password_reset.created` events - Add `GET /user_management/email_verification/:id` endpoint - Add `GET /user_management/password_reset/:id` and `POST /user_management/password_reset` endpoints - Deprecate current se...
diff --git a/pkg/events/client.go b/pkg/events/client.go index e1e81516..ed8f6254 100644 --- a/pkg/events/client.go +++ b/pkg/events/client.go @@ -46,8 +46,10 @@ const ( OrganizationMembershipUpdated = "organization_membership.updated" OrganizationMembershipRemoved = "organization_membership.removed" // Deprecated:...
2
2
0
[{"id": "G0", "claim": "Add a doc comment to GetEmailVerificationOpts.EmailVerification, e.g. \"The Email Verification's unique identifier.\", matching the documented style of neighbouring option structs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai...
null
workos__workos-go__364
workos/workos-go
364
defect
55d782569cb8a16604f959c58daa0d79733748be
0ec9d58c10883e47ca87bedf309b7bf2c47688c4
[FGA-98] Add ConvertSchemaToResourceTypes and ConvertResourceTypesToSchema to FGA module
## Description Adds methods to convert new schema language to resource types JSON
diff --git a/.gitignore b/.gitignore index c601e414..9d3779c3 100755 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ *.swp *.log *.vscode - +.idea/ diff --git a/internal/workos/workos.go b/internal/workos/workos.go index a0764bd6..c7003f67 100644 --- a/internal/workos/workos.go +++ b/internal/workos/workos.go @@ -...
2
2
0
[{"id": "G0", "claim": "The UnmarshalJSON fallback should return errors.New(\"Errors field is not a valid format\") instead of fmt.Errorf, since no formatting is needed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The endpoint path \"%s/fga/v...
null
workos__workos-go__378
workos/workos-go
378
defect
aa422b46dc392634d9c5c15c3ab3c0972eb2712e
22d36112675b3cb3365ce2351e8b159b2f769608
Add widgets client and get token API support
## Description Add widgets client and get token API support. ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Th...
diff --git a/pkg/widgets/README.md b/pkg/widgets/README.md new file mode 100644 index 00000000..7e40497d --- /dev/null +++ b/pkg/widgets/README.md @@ -0,0 +1,15 @@ +# widgets + +[![Go Report Card](https://img.shields.io/badge/dev-reference-007d9c?logo=go&logoColor=white&style=flat)](https://pkg.go.dev/github.com/workos...
3
1
0
[{"id": "G0", "claim": "The Widgets integration guide page linked from pkg/widgets/README.md does not exist yet and the link should be updated before merging.", "category": "documentation", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The API host should ideally be configurab...
null
workos__workos-go__415
workos/workos-go
415
defect
737b323c87d011e0c10abb395ef224e546fbd058
1f0020a63406fcc3b039af2aa36a9c1f284ead3a
Alias organization domain types
## Description The [PR](https://github.com/workos/workos-go/pull/412) that added the `organization_domains` package moved the domain types to `organization_domains` from `organizations`. To prevent a major version bump and a breaking change, this PR aliases the moved types so they are still available via the `organi...
diff --git a/pkg/organizations/client.go b/pkg/organizations/client.go index 8bc5d913..3a5fb54a 100644 --- a/pkg/organizations/client.go +++ b/pkg/organizations/client.go @@ -62,6 +62,12 @@ func (c *Client) init() { } } +type OrganizationDomainState = organization_domains.OrganizationDomainState + +type Organizati...
1
1
0
[{"id": "G0", "claim": "The pull request should redeclare the organization domain constant values (Verified/Pending) in the organizations package rather than relying on the type alias, since constants are not picked up when defining a type alias.", "category": "correctness", "verdict": "supported", "priority": "P2", "s...
null
workos__workos-go__426
workos/workos-go
426
defect
a993080fba1293b3ad29ea5ab5c707ca920cacbc
e33dbb114a351f9614f031d615b3a76463c56d51
Add "warnings" field to FGA query and check response
## Description Adds `warnings` field to the FGA check and query responses. `Warnings` is a slice of `WarningWrapper` that contain a specific warning type. Warning types include: - `BaseWarning` - catch all for warnings not supported by the current SDK version - `MissingContextKeysWarning` - missing context keys fo...
diff --git a/pkg/fga/client.go b/pkg/fga/client.go index 42a9ed5b..3f6001d5 100644 --- a/pkg/fga/client.go +++ b/pkg/fga/client.go @@ -379,10 +379,79 @@ type CheckBatchOpts struct { WarrantToken string `json:"-"` } +type Warning interface { + GetWarning() string + GetCode() string +} + +type BaseWarning struct { +...
2
2
0
[{"id": "G0", "claim": "The new Warning interface's getter names should be idiomatic Go: rename GetWarning to Message (with Warning()/Code()-style getters and unexported struct fields) so the API does not stutter.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
workos__workos-go__439
workos/workos-go
439
defect
585189e458d254bc8e9487202c85eb14e02f8d6d
0893c672b13623f52c1436b4d02595ac9b737378
Update metadata serialization for updating organizations
## Description Update metadata serialization for updating organizations. Coreweave flagged that this was broken and not in line with the update user metadata serialization. ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets...
diff --git a/pkg/organizations/client.go b/pkg/organizations/client.go index 11651050..b21cc8aa 100644 --- a/pkg/organizations/client.go +++ b/pkg/organizations/client.go @@ -426,9 +426,12 @@ func (c *Client) UpdateOrganization(ctx context.Context, opts UpdateOrganization // // Deprecated: Use DomainData instead...
2
2
0
[{"id": "G0", "claim": "Consider renaming the snake_case variable 'update_opts' to camelCase 'updateOpts' to follow Go naming conventions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the redundant internal UpdateOrganizationChangeOpts ...
null
workos__workos-go__441
workos/workos-go
441
defect
5fee5b7b3b438b63a0cb4031915be53d2dc57880
e5fc6723b96c482cab51189be54836ad7662eff6
Add structured authentication error handling
## Description # Add Structured Authentication Error Handling This PR implements structured error handling for AuthKit authentication errors, providing type-safe error types and helper functions for better developer experience. ## Changes **New Files:** - `pkg/workos_errors/authentication_errors.go` - Stru...
diff --git a/pkg/workos_errors/authentication_errors.go b/pkg/workos_errors/authentication_errors.go new file mode 100644 index 00000000..d73d2f39 --- /dev/null +++ b/pkg/workos_errors/authentication_errors.go @@ -0,0 +1,204 @@ +package workos_errors + +import ( + "errors" +) + +// Authentication error code constants +...
6
5
2
[{"id": "G0", "claim": "AuthenticationFactor.Type should be an enum/const type to prevent invalid values.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CreatedAt and UpdatedAt should use time.Time instead of string for proper time handling.", "category"...
null
workos__workos-go__444
workos/workos-go
444
defect
15b6cbee82161ac119f032cc8a1d711729066b37
8d28672a6f3b9fe32265669a97a111e86c6f1119
Expose delete organization_domain endpoint - DAAP-1754
## Description Exposes an SDK method to delete an organization domain ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [x] Yes ``` If yes, link a related docs PR and add a docs maintainer as a r...
diff --git a/pkg/organization_domains/client.go b/pkg/organization_domains/client.go index fb095f0f..2e3e35e1 100644 --- a/pkg/organization_domains/client.go +++ b/pkg/organization_domains/client.go @@ -69,6 +69,11 @@ type VerifyOrganizationDomainOpts struct { DomainID string } +// DeleteOrganizationDomainOpts con...
2
1
1
[{"id": "G0", "claim": "Add a test covering the new DeleteDomain client method.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The client method DeleteDomain should perhaps be named DeleteOrganizationDomain.", "category": "maintainability", "verdict": "...
null
workos__workos-go__470
workos/workos-go
470
defect
c3c94a5f7525e81cf8385e38cbc2ae6da9536dc4
f2b30597feedb3cd21aed2c083f81f0ba1d8daba
add list session method
## Description Add List Session Method that will call workOS API for list session ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintai...
diff --git a/pkg/usermanagement/client.go b/pkg/usermanagement/client.go index 62e3cf55..40817027 100644 --- a/pkg/usermanagement/client.go +++ b/pkg/usermanagement/client.go @@ -588,6 +588,50 @@ type ListIdentitiesOpts struct { ID string `json:"id"` } +type Session struct { + // The Object will always be "session...
3
3
2
[{"id": "G0", "claim": "ListSessionsOpts fields lack url struct tags, so query.Values(opts) will not encode them and the filtering/pagination options will not be sent to the API.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The list sessions endpo...
null
workos__workos-go__475
workos/workos-go
475
defect
33538f0715984037769f5f65e0d24cb0f155b6ae
3b9a57a28f39b51114f6de009b53f73e897f67b2
Default to adding idempotecy-key to audit-logs/events if not present, added in retryability logic to endpoints#492
Updating go library to always generate an idempotencyKey if not present for audit-logs api's. Also updated to add retryability to endpoints.
diff --git a/go.mod b/go.mod index 96841345..27a3496a 100644 --- a/go.mod +++ b/go.mod @@ -4,5 +4,6 @@ go 1.13 require ( github.com/google/go-querystring v1.0.0 + github.com/google/uuid v1.6.0 github.com/stretchr/testify v1.10.0 ) diff --git a/go.sum b/go.sum index 97cd5707..e781d7a3 100644 --- a/go.sum +++ b/g...
2
2
0
[{"id": "G0", "claim": "When the retryable HTTP client retries a request, the previous response body is never closed before the next attempt, which will leak file descriptors and connections.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The auto...
null
workos__workos-go__488
workos/workos-go
488
defect
2ce53a307d12583702d91282046472c479d149f3
621d76535250b819ce46db96eaa5a70c1170d83d
Make Pipes interface a little more idiomatic Go
## Description The previous commit more or less directly returned the Pipes API response; this makes it a little more idiomatic and easier to work with in Go. ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates...
diff --git a/pkg/pipes/client.go b/pkg/pipes/client.go index 5081e999..b6719fdd 100644 --- a/pkg/pipes/client.go +++ b/pkg/pipes/client.go @@ -22,6 +22,10 @@ const ( NeedsReauthorization GetAccessTokenError = "needs_reauthorization" ) +func (e GetAccessTokenError) Error() string { + return string(e) +} + // Clien...
1
1
1
[{"id": "G0", "claim": "The PR may panic with a nil pointer dereference at pkg/pipes/client.go:151 if the API returns active:true without an access_token field; consider adding a nil check before dereferencing body.AccessToken.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
workos__workos-go__522
workos/workos-go
522
defect
0212325dbdb43bc5cd51146dca283577c4794615
9a71a41840a3389bb27d3b5a62a46bf847b6a2eb
fix: allow clearing organization domains by sending empty arrays
## Summary - Remove `omitempty` from `Domains` and `DomainData` JSON tags in `UpdateOrganizationOpts` - In Go, `json:",omitempty"` omits both `nil` and empty slices (`[]string{}`), making it impossible to send an empty array to the API to clear an organization's domains - After this fix: - `nil` → seria...
diff --git a/pkg/organizations/client.go b/pkg/organizations/client.go index 93da64f6..3f211697 100644 --- a/pkg/organizations/client.go +++ b/pkg/organizations/client.go @@ -213,10 +213,10 @@ type UpdateOrganizationOpts struct { // Domains of the Organization. // // Deprecated: Use DomainData instead. - Domains...
2
2
2
[{"id": "G0", "claim": "Removing `omitempty` makes a nil `Domains`/`DomainData` serialize as JSON `null` instead of being omitted, a silent behavioral change for existing callers that update an organization without touching domains (which may clear their domains if the API treats null as clear); the reviewer asks for a...
null
workos__workos-go__548
workos/workos-go
548
defect
491190e912c0a53f71831e16f3ab3a0ef7d75bb8
c894d7d679956bff511e4adca9b99c32851e83e7
fix: add URL escaping, JWT exp, and refresh errors
## Description - Escape user-controlled identifiers in outgoing URLs: `url.QueryEscape` for `session_id` in the logout URL, `url.PathEscape` for the passwordless session ID, and `url.PathEscape` for every interpolated path parameter in `vault_kv.go` (read/describe/update/delete/list-versions, plus read-by-name). Preve...
diff --git a/README.md b/README.md index 66ffbf82..b66a1f85 100644 --- a/README.md +++ b/README.md @@ -127,9 +127,15 @@ fmt.Println(event.Event, event.ID) ## Session Management -Authenticate and refresh user sessions using sealed cookies: +Authenticate and refresh user sessions using sealed cookies. + +The `cookie...
3
3
1
[{"id": "G0", "claim": "In deriveKey, the len(decoded) != 32 guard is dead code because 64 valid hex characters always decode to exactly 32 bytes, so the branch can never be reached and should be removed.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
workos__workos-go__56
workos/workos-go
56
defect
2c3178df15c6ad633c07e668b1c9b56b5027c7fe
34eb62f53bb20794b015cbe4eb1ecc5235bfaaac
Expose `connection_id` on Profile Objects
This PR introduces the following changes: * Passes the `connection_id` Profile object attribute through to the SDK. We currently expose `connection_id` via the `/sso/token` API endpoint. * Updates the SDK version to `0.6.0`
diff --git a/internal/workos/workos.go b/internal/workos/workos.go index 468461c4..bb77cf36 100644 --- a/internal/workos/workos.go +++ b/internal/workos/workos.go @@ -2,5 +2,5 @@ package workos const ( // Version represents the SDK version number. - Version = "v0.5.0" + Version = "v0.6.0" ) diff --git a/pkg/sso/c...
2
1
0
[{"id": "G0", "claim": "Since this isn't a breaking change, the version should be bumped to 0.5.1 rather than 0.6.0.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A minor formatting change is needed in the pull request's code.", "category": "main...
null
worldcoin__orb-software__1009
worldcoin/orb-software
1,009
defect
6dc7d6deee86b8b13e8db3bdab823f12c47a6909
3ad54bc9d647300f525d7968e6c80cf69df330a9
feat: improve thermal cam pairing behavior, add config publishing in …
…from orb-core add explicit timeout for thermal camera pairing, report statues via zenoh. add collector for config reported from orb-core
diff --git a/orb-backend-status/src/backend/status.rs b/orb-backend-status/src/backend/status.rs index c154bf73..926804f0 100644 --- a/orb-backend-status/src/backend/status.rs +++ b/orb-backend-status/src/backend/status.rs @@ -295,6 +295,7 @@ async fn build_status_request_v2( .collect() }), ...
9
9
8
[{"id": "G0", "claim": "Pair::run always joins the watchdog thread after start_manager returns, but the watchdog first sleeps the full timeout before checking `armed`, so a pairing that ends early still blocks in join for the whole --timeout-secs (90s by default), making successful runs appear hung and risking higher-l...
null
worldcoin__orb-software__1130
worldcoin/orb-software
1,130
defect
67e980c8131c56fafee927f9247f05b95497d96d
36921da8f52aeb2886896c07911105ee23150edb
test(qr-link): verify empty hash QR is rejected by verify()
## Summary - Adds a test that a 16-byte-only QR payload (UUID with no hash) passes `decode_v4` but is rejected by `verify()` in orb-relay-messages - Bumps `orb-relay-messages` to `e7714ebe` which adds the empty-hash guard in `verify()` Context: `payload.get(16..)` returns `Some(&[])` for exactly-16-byte payloads, so t...
diff --git a/Cargo.lock b/Cargo.lock index 4e130f7f..5253db47 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8362,7 +8362,7 @@ dependencies = [ "orb-endpoints", "orb-info", "orb-relay-client", - "orb-relay-messages", + "orb-relay-messages 0.0.0 (git+https://github.com/worldcoin/orb-relay-messages.git?rev=301889d17f...
2
1
1
[{"id": "G0", "claim": "Update the orb-relay-messages dev-dependency rev in qr-link/Cargo.toml to c447563af1970aa001a45e741b4b8448eeb5cb99.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The orb-core and oxide crates probably also need to be updated...
null
worldcoin__orb-software__709
worldcoin/orb-software
709
defect
fc56d0d8d488c698e4ebec9967c74ac2b7cdf19e
76696f60b76807d34904ce67464dd5451ffbc54b
fix(jobs-agent): reboot will now reboot but not by rebooting but instead by shutting down and power cycling beceuase reboot is a no no
## fix - use newly added reboot command in `orb-mcu-util` (thanks @fouge!) - orb will now power cycle as a reboot, being powered back on by the mcu - this will avoid issues with nvidia's retry counter which went down with regular reboots ## todo - [x] test on a real orb :D ![reboooot](https://media1.tenor.com...
diff --git a/orb-jobs-agent/src/handlers/reboot.rs b/orb-jobs-agent/src/handlers/reboot.rs index aa1c0e92..06fd5f2e 100644 --- a/orb-jobs-agent/src/handlers/reboot.rs +++ b/orb-jobs-agent/src/handlers/reboot.rs @@ -32,6 +32,7 @@ pub async fn handler(ctx: Ctx) -> Result<JobExecutionUpdate> { "Orb reboot...
1
1
1
[{"id": "G0", "claim": "Asks whether the jetson should still be rebooted even when the orb-mcu-util reboot command fails.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
worldcoin__orb-software__728
worldcoin/orb-software
728
defect
cbc0ed12f8592a6a085acc4e2de671c17b11c9d0
e6ed3492fa964be444339d787c83bb9a5cdbab2b
feat: Add support for new jobs commands - gimbal recalibration and beacon
This pull request introduces several new job handlers and significant improvements to the `orb-jobs-agent` crate, focusing on device management and calibration functionality. Notably, it adds new handlers for beaconing, MCU information, reading and resetting gimbal calibration, and refactors the reboot logic to be more...
diff --git a/Cargo.lock b/Cargo.lock index 248697a56..4c2a6ff88 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7772,6 +7772,7 @@ dependencies = [ "async-tempfile", "async-trait", "bon", + "chrono", "clap", "color-eyre", "const_format", diff --git a/orb-jobs-agent/Cargo.toml b/orb-jobs-agent/Cargo.toml index e...
7
6
3
[{"id": "G0", "claim": "Question whether reset_gimbal needs to reboot the whole device at all, since a restart of orb-core alone might suffice.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The beacon and mcu handlers could simply return an error (e.g. vi...
null
worldcoin__orb-software__917
worldcoin/orb-software
917
defect
41f7b400c6bec10158fea3a389c9a66ee79c302d
a669286c2345e85fc22f3091c91d48ccb684b264
feat(zenorb): zenoh lib
`zenorb` lib to help reduce boilerplate, keep patterns around zenoh similar, and improve testability. [README.md](https://github.com/worldcoin/orb-software/blob/1ffa4153b369b9a984a1afe0e9ebb3a28dd281f7/zenorb/README.md) contains more information on the crate and the reasoning behind it
diff --git a/Cargo.lock b/Cargo.lock index bd4bcb1c..269c2fb8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -83,7 +83,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.108", + "syn 2.0.114", ] [[package]] @@ -271,7 +271,7 @@ checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948...
4
1
0
[{"id": "G0", "claim": "The per-message error logging in the receiver run loop may generate a huge volume of logs on high-frequency topics, and throttling or log sampling should be added if there is an easy way.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
worldcoin__orb-software__941
worldcoin/orb-software
941
defect
8b5207ca867e08b48868d3c35b954603c5591d70
ecfdfdd6d0ab1f2fc01758574265168f940b6f17
feat(connd): publish connection info on zenoh
periodically publishes a connection event every time there is a change in connection state this can be consumed asynchronously by any other process and is uncoupled to connd
diff --git a/Cargo.lock b/Cargo.lock index 0cb5f477..f8082fe9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8170,13 +8170,16 @@ dependencies = [ "orb-backend-status-dbus", "orb-build-info", "orb-connd-dbus", + "orb-connd-events", "orb-info", "orb-secure-storage-ca", "orb-telemetry", "p256 0.13.2", + "portp...
2
1
0
[{"id": "G0", "claim": "The tokio multi-thread tests should use 1 worker thread instead of 2.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "orb-core uses rkyv 0.7.45 while this PR pins 0.7.46, though the reviewer doubts it matters.", "category": "maint...
null
worldcoin__orb-software__959
worldcoin/orb-software
959
defect
b6e8b2cc12c0fbd050387bc9f2ff414db5afb8af
0b1d78f16653cab2a390ee3ea02ddbf906195747
feat: add hw-status reporting with backend-status
Add hardware-states reporting to backend-status and als reporting
diff --git a/orb-backend-status/src/backend/status.rs b/orb-backend-status/src/backend/status.rs index 53e6f12d..bf97b705 100644 --- a/orb-backend-status/src/backend/status.rs +++ b/orb-backend-status/src/backend/status.rs @@ -1,8 +1,9 @@ use crate::{ backend::{ types::{ - BatteryApiV2, Cellul...
2
2
1
[{"id": "G0", "claim": "The documentation for the front-ALS data should be extended to note that on Pearl the sensor is oddly located and hard to rely upon, and that on Diamond the inner-ring RGB LEDs can interfere with the ALS value if turned on, so the flag should be checked.", "category": "documentation", "verdict":...
null
worldcoin__orb-software__999
worldcoin/orb-software
999
defect
6a7554a2a67c419cd607ff8df3a8c1617d052af2
5eb0d7b50c9fbcc9c0eb4d761aff95be442213ba
chore(connd): connection report for troubleshooting
adds dns resolution and connectivity diagnostics to the network change reporter, to help troubleshoot issues like being stuck on `ConnectedSite` when connectivity actually works. ## new - `resolved::Resolved` module wrapping systemd-resolved's `org.freedesktop.resolve1` d-bus interface via `zbus_systemd` - `re...
diff --git a/Cargo.lock b/Cargo.lock index fcd1f825..61fb4d58 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8200,6 +8200,7 @@ dependencies = [ "proptest", "rand 0.8.5", "regex", + "reqwest 0.12.24", "rkyv", "rustix 0.38.44", "rusty_network_manager", @@ -8218,6 +8219,7 @@ dependencies = [ "uuid 1.19.0", "...
1
1
0
[{"id": "G0", "claim": "The reqwest client should be created once at the top of report_loop() and passed into connectivity_check, instead of being built on every check, because the reqwest docs advise creating one client and reusing it for connection pooling.", "category": "performance", "verdict": "supported", "priori...
null
worldcoin__signup-sequencer__264
worldcoin/signup-sequencer
264
defect
a2dc5980b1ccc163e4bfc71c094353bd09847dcd
2bc3f120ce06b6a64278c389f88fe2662c1282d9
Pending identity inserts
<!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Bug fixes and new features should include tests. Contributors guide: <https://github.com/Recni/rust-app-template/blob/master/CONTRIBUTING.md> The contributors guide includes instructions for running ru...
diff --git a/schemas/database/003_pending_identities.sql b/schemas/database/003_pending_identities.sql new file mode 100644 index 00000000..21b48eed --- /dev/null +++ b/schemas/database/003_pending_identities.sql @@ -0,0 +1,9 @@ +CREATE TABLE pending_identities +( + commitment BYTEA NOT NULL, + group_i...
11
10
2
[{"id": "G0", "claim": "Unless there is a bigger plan for the EventBus wrapper, it may not be worth keeping.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "process_pending_identities can be made to take &self instead of Arc<Self>.", "category": "design",...
null
worldcoin__signup-sequencer__364
worldcoin/signup-sequencer
364
defect
c0be83ee376643641b7fa77d7a5461db75156d40
a9e4717ab0753c6e0d201cfc2bb2a0ad2617ce95
Initial Refactoring for Batching Integration
This PR refactors how the existing legacy contract is handled by introducing a trait to unify behaviour between the two contracts. This is in preparation for introducing the batching contract to the codebase with the swap between the two controlled by a cargo feature. There are no functional changes in this PR, but ...
diff --git a/Cargo.lock b/Cargo.lock index ba0f506de..e7b506fca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -99,6 +99,9 @@ name = "anyhow" version = "1.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2cb2f989d18dd141ab8ae82f64d1a8cdd37e0840f73a406896cf5e99502fab61" +dependencies = ...
5
4
1
[{"id": "G0", "claim": "The `backtrace` feature on the `anyhow` dependency is not needed for this PR (it was enabled for debugging) and should be removed, given the past problems with eyre + tracing + opentelemetry hanging the sequencer.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i...
null
worldcoin__signup-sequencer__378
worldcoin/signup-sequencer
378
defect
2ebc6d118011729625c39747cccc4b803961f52d
dc61439fde0b17e2f4f6669916e703a64f0d425a
Connect to and work with the prover service
This commit does some initial integration with the batch prover by connecting to `semaphore-mtb` and requesting proofs from it. It does not yet use these proofs in the batch prover.
diff --git a/Cargo.lock b/Cargo.lock index d41f7afd7..14b7b7221 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -407,9 +407,9 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "axum" -version = "0.6.1" +version = "0.6.4" source = "registry+https://github.com/rust-lang/...
4
4
2
[{"id": "G0", "claim": "Remove the group_id method from the batching contract's IdentityManager implementation altogether.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "generate_proof should deal with batch sizes too, i.e. validate the provided identi...
null
worldcoin__signup-sequencer__387
worldcoin/signup-sequencer
387
defect
51774c1a283fad9b681871e3f7846b7a4d93b277
bf3babc1b7368fd97b6cb226a3750cdb46ec2758
/verifyProof endpoint
## To Do - [x] check root history - [x] invalid root test (unknown or stale) - [x] invalid proof test Closes #402 Closes #401
diff --git a/Cargo.lock b/Cargo.lock index f10045a0..32e37e05 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5546,6 +5546,7 @@ dependencies = [ "bitflags", "byteorder", "bytes", + "chrono", "crc", "crossbeam-queue", "dirs", diff --git a/Cargo.toml b/Cargo.toml index f241e80c..ec39d4ef 100644 --- a/Cargo.toml ...
10
10
5
[{"id": "G0", "claim": "The root_history table should also track each root's status with respect to chain status (whether it is even a mined-batch root and, in the future, whether it is confirmed).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "It would ...
null
worldcoin__signup-sequencer__432
worldcoin/signup-sequencer
432
defect
36bf50dbb945cf23c53a1fb560b0a6dfd78ca3a5
d55718d9874bbc61b5c75025c10ce5284a52af53
Memory efficient and type safe merkle trees
Integrates the half-lazy trees (allowing us to run with d=30) and makes versions API typesafe.
diff --git a/Cargo.lock b/Cargo.lock index 9505fb77..e4d55d62 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -128,7 +128,7 @@ dependencies = [ "cfg-if", "color-eyre 0.5.11", "criterion 0.3.6", - "ethers-core 1.0.2", + "ethers-core 2.0.0", "fnv", "hex", "num", @@ -773,6 +773,12 @@ version = "0.1.1" source = "r...
4
3
0
[{"id": "G0", "claim": "Because garbage_collect acquires locks on all transitive successors, calling it while holding a lock from TreeVersion#get_data() could deadlock; the reviewer asks that it try to lock and raise an error before backing out or dying instead.", "category": "correctness", "verdict": "uncertain", "pri...
null
worldcoin__signup-sequencer__449
worldcoin/signup-sequencer
449
defect
826fbf0951d84db85bf15eb4c95ef65edc5f1c02
613e822e3926778a2457331bf1fc3499515d5c3c
Batching Support for multiple batch sizes + bug fix
Changes: 1. The sequencer no longer accepts the following cli args `--batch-size`, `--batch-insertion-prover-timeout` or `--batch-insertion-prover-url`, instead it accepts `--prover-urls` which accepts a JSON list of the following format: `[{"url": "http://localhost:3001","batch_size": 3,"timeout_s": 30}]` 2. If se...
diff --git a/Cargo.lock b/Cargo.lock index 52f41fc3..60127b71 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3609,6 +3609,12 @@ dependencies = [ "libc", ] +[[package]] +name = "maplit" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4...
6
5
0
[{"id": "G0", "claim": "The struct `TreeUpdateWithTree` should be renamed to `AppliedTreeUpdate`, and with it its `tree` field to `result`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "apply_next_updates could be smarter: it needlessly recompu...
null
worldcoin__signup-sequencer__485
worldcoin/signup-sequencer
485
defect
e67731c10587426a542b081c4bfafd184fb2ff10
813c97c64069e0da1de2ca029cac4c790fb4b9b4
Add support for adding and removing batch sizes at runtime
I've had some issues running `clippy` locally due to a failed download, and I expect the same to currently happen on CI. Closes #466
diff --git a/src/app.rs b/src/app.rs index 8079d4c6..dc2e5798 100644 --- a/src/app.rs +++ b/src/app.rs @@ -15,8 +15,8 @@ use crate::{ ethereum::{self, Ethereum}, identity_tree::{CanonicalTreeBuilder, Hash, InclusionProof, RootItem, Status, TreeState}, prover, - prover::ProverMap, - server::{Error a...
5
5
1
[{"id": "G0", "claim": "An endpoint should be added to list the currently available batch sizes.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "add_batch_size's url parameter should use impl ToString instead of impl Into<String>.", "category": "design", ...
null
worldcoin__signup-sequencer__514
worldcoin/signup-sequencer
514
defect
9dee104118f81fe8898cfbdf63470f26f68a4af5
70738afa361ba2095df629ae0cec38a5a1819f0d
Separate identity commitment from API process
<!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Bug fixes and new features should include tests. Contributors guide: <https://github.com/Recni/rust-app-template/blob/master/CONTRIBUTING.md> The contributors guide includes instructions for running ru...
diff --git a/Cargo.toml b/Cargo.toml index 641a87be..31fa75ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,7 +70,7 @@ maplit = "1.0.2" postgres-docker-utils = { path = "crates/postgres-docker-utils" } proptest = { version = "1.0" } regex = { version = "1.7.1", features = ["std"] } -semaphore = { git = "https://gi...
4
4
2
[{"id": "G0", "claim": "The insert_identity handler could return `()` instead of the needless EmptyResponse struct.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The oneshot channel created in insert_identity, whose receiver is discarded, should be remo...
null
worldcoin__signup-sequencer__521
worldcoin/signup-sequencer
521
defect
70738afa361ba2095df629ae0cec38a5a1819f0d
79af00b59af74d1875d32b1ecd5da9befce34e98
changing identities insert
Identity insert, reading from database instead of channels
diff --git a/src/app.rs b/src/app.rs index 586114b2..848fa7c8 100644 --- a/src/app.rs +++ b/src/app.rs @@ -286,6 +286,7 @@ impl App { self.database.insert_new_identity(commitment).await?; + // TODO: remove this let (tx, _) = oneshot::channel(); self.insert_identities_sender ...
6
6
4
[{"id": "G0", "claim": "The status of an unprocessed commitment should be the Status enum rather than a raw String, both in the UnprocessedCommitment struct field and in the value passed to get_unprocessed_commitments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
worldcoin__signup-sequencer__540
worldcoin/signup-sequencer
540
defect
282b718e1e0dc02c695ae5c0e40ad5092eac9afd
fa784c797b3880e216945773f4730d6a4785e62f
Add tree restore
This PR depends on [this semaphore PR](https://github.com/worldcoin/semaphore-rs/pull/45). The merge should be done after semaphore PR is merged. Adds functions to attempt and restore a tree, if it fails it builds a new one
diff --git a/src/app.rs b/src/app.rs index 0f654175..87d5a997 100644 --- a/src/app.rs +++ b/src/app.rs @@ -101,6 +101,9 @@ pub struct Options { #[clap(long, env, default_value = "20")] pub dense_tree_prefix_depth: usize, + #[clap(env, default_value = "./dense_tree_mmap")] + pub dense_tree_mmap_file: S...
5
5
3
[{"id": "G0", "claim": "There is no way to know whether the data read back from the mmap file is correct, since disks can hold broken data.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The else branch fetching all mined identities to get one eleme...
null
worldcoin__signup-sequencer__584
worldcoin/signup-sequencer
584
defect
28a527785366a0cda12b4d6e203e71835f62f8d8
73375c771649aeb22b554cf126f028bcf0f749a1
Add option to validate semaphore proof with root age
<!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Bug fixes and new features should include tests. Contributors guide: <https://github.com/Recni/rust-app-template/blob/master/CONTRIBUTING.md> The contributors guide includes instructions for running rustfmt an...
diff --git a/schemas/openapi.yaml b/schemas/openapi.yaml index b03f87bd..13695d02 100644 --- a/schemas/openapi.yaml +++ b/schemas/openapi.yaml @@ -82,6 +82,13 @@ paths: application/json: schema: $ref: "#/components/schemas/VerifySemaphoreProofRequest" + parameters: + -...
2
2
0
[{"id": "G0", "claim": "The intermediate variables in validate_root_age should be inlined and the mined/pending age branch simplified as suggested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "max_root_age should be passed into validate_root_a...
null
worldcoin__signup-sequencer__605
worldcoin/signup-sequencer
605
defect
748caeeb7bca36ca83c168bfd98f9eb913d377c1
a7967c01d9255e5f40610777184d3d8bd7f29a85
Fix: Sync tree state / `get_commitments_by_status`
This PR introduces changes to the identities table to fix tree state syncing on startup. Additionally, `get_commitments_by_status` was updated to only get the `TreeUpdate` at a given leaf index with the highest `id` value.
diff --git a/schemas/database/004_identities.up.sql b/schemas/database/004_identities.up.sql index ef302c7f..5e5aabb5 100644 --- a/schemas/database/004_identities.up.sql +++ b/schemas/database/004_identities.up.sql @@ -1,5 +1,8 @@ -- Add the new 'id' column -ALTER TABLE identities ADD COLUMN id BIGSERIAL; +ALTER TABLE...
2
2
2
[{"id": "G0", "claim": "The post-restart portion of the delete_identities test should also fetch inclusion proofs for identities that have not been deleted, not only for the deleted ones.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A test should be a...
null
worldcoin__signup-sequencer__611
worldcoin/signup-sequencer
611
defect
d578921db191e4682e6c601e9effe4d57429fc04
66df0ff72a026ea32d642cdb5448b59d35186a7c
tree mmap cache
Rebasing older branch was too troublesome, so i made a new one
diff --git a/Cargo.lock b/Cargo.lock index a08817c55..1fe4eeb0c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -177,7 +177,7 @@ dependencies = [ "cfg-if", "color-eyre 0.5.11", "criterion", - "ethers-core 2.0.3", + "ethers-core 2.0.10", "fnv", "hex", "num", @@ -1486,6 +1486,16 @@ version = "1.0.0" source = "re...
3
3
3
[{"id": "G0", "claim": "The new get_cached_tree_state restore path needs 'let mined_items = dedup_tree_updates(mined_items);' somewhere before using them, otherwise the mined_items can contain duplicate items.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
worldcoin__signup-sequencer__638
worldcoin/signup-sequencer
638
defect
c435b907256534f8f425ae901d8f8ab42d330c5e
57db8d47b28228aaa0fcc8659c6bdd9c8390e1d3
Audit-changes
<!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Bug fixes and new features should include tests. Contributors guide: <https://github.com/Recni/rust-app-template/blob/master/CONTRIBUTING.md> The contributors guide includes instructions for running rustfmt an...
diff --git a/Readme.md b/Readme.md index 2f2d4139..3b6c1e38 100644 --- a/Readme.md +++ b/Readme.md @@ -31,14 +31,16 @@ Sequencer has 6 API routes. 2. `/inclusionProof` - Takes the identity commitment hash, and checks for any errors that might have occurred in the insert identity steps. Then leaf index is fetched ...
2
1
0
[{"id": "G0", "claim": "Add a doc comment to the UnprocessedStatus enum to clarify how it differs from the Status enum.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If ApiStatus pertains to the API/server, consider moving it into the server modu...
null
worldcoin__signup-sequencer__709
worldcoin/signup-sequencer
709
defect
b5bd04e9a1ee7012181802819bd0f4023fcb8127
462c72480fbc3a02d704a29ac13a11a115ad861e
Use testcontainers to run postgres database. Disable shutdown tests due to interfering tests (global var impl).
## Motivation As discussed: There was a bug (docker containers running after tests) in docker wrapper and to follow direction from other projects testcontainers was introduced here instead. Docker image of postgres is being used for testing. Question: which version of postgres is being used? I think it should match...
diff --git a/Cargo.lock b/Cargo.lock index 1d93f48d7..c4976af4b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1034,6 +1034,16 @@ dependencies = [ "generic-array", ] +[[package]] +name = "bollard-stubs" +version = "1.42.0-rc.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed59b5c000...
2
2
0
[{"id": "G0", "claim": "The shutdown_signal test should be deleted outright instead of being left disabled behind #[ignore].", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The DBSetuper struct should be dropped in favour of a plain async setup_db functi...
null
worldcoin__signup-sequencer__716
worldcoin/signup-sequencer
716
defect
9160930fe94327be94c6203418ec92fd7b44fafa
f6d36a04c3e163261d5164e1ccb8b572eb245a5b
Fix restoring tree when there are no commitments added.
<!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Bug fixes and new features should include tests. Contributors guide: <https://github.com/Recni/rust-app-template/blob/master/CONTRIBUTING.md> The contributors guide includes instructions for running ru...
diff --git a/src/app.rs b/src/app.rs index 5d1ae0657..be1fcd15a 100644 --- a/src/app.rs +++ b/src/app.rs @@ -174,7 +174,7 @@ impl App { } pub fn get_leftover_leaves_and_update_index( - index: &mut usize, + index: &mut Option<usize>, dense_prefix_depth: usize, mined_items: &[T...
2
2
0
[{"id": "G0", "claim": "The new test file names misspell `commitment` as `comittment` (tests/tree_restore_multiple_comittments.rs and tests/tree_restore_one_comittment.rs) and should be renamed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
worldcoin__signup-sequencer__724
worldcoin/signup-sequencer
724
defect
408b6a8959f423611f5b5626110af35a40009ae8
cfff3ef8ae476a11e03ef7d3b996fcb422f83fe5
Added batching using DB.
This is a first step to introduce batches and transactions table. This is not HA solution yet - just the first step towards it. <!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Bug fixes and new features should include tests. Contributors guide: <htt...
diff --git a/schemas/database/013_batches_and_transactions.sql b/schemas/database/013_batches_and_transactions.sql new file mode 100644 index 000000000..720050f3e --- /dev/null +++ b/schemas/database/013_batches_and_transactions.sql @@ -0,0 +1,25 @@ +-- Create ENUM for prover type +CREATE TABLE batches +( + id ...
2
2
0
[{"id": "G0", "claim": "The SQL selects can be left as the plain qualified column name (e.g. `batches.created_at`) without the redundant `as created_at` alias, since sqlx handles fully qualified names.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The In...
null
worldcoin__signup-sequencer__743
worldcoin/signup-sequencer
743
defect
3c40f15845a4a0abf78c0c56d67cd1f3d6c65708
86a289f5a046080307030503ad11e0b6d49a8f1e
Refactor code and introduce offchain mode.
<!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Bug fixes and new features should include tests. Contributors guide: <https://github.com/Recni/rust-app-template/blob/master/CONTRIBUTING.md> The contributors guide includes instructions for running ru...
diff --git a/src/app.rs b/src/app.rs index 1eb3076b4..041317308 100644 --- a/src/app.rs +++ b/src/app.rs @@ -12,8 +12,8 @@ use crate::contracts::IdentityManager; use crate::database::query::DatabaseQuery as _; use crate::database::Database; use crate::ethereum::Ethereum; -use crate::identity::transaction_manager::{ ...
4
4
3
[{"id": "G0", "claim": "With off-chain mode the network, providers and relayer configs should be made optional.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ProofValidator abstraction is unnecessary — it is equivalent to a function call with two ar...
null
worldcoin__signup-sequencer__805
worldcoin/signup-sequencer
805
defect
1d18ba4dcd997086045159650dd867d41ff00508
a911a2d6a1f3a61518a14a6f51e38ff4e8d2fe1c
Graceful Shutdown
## Motivation Currently we've been running with `panic="abort"` which is known to cause problems with our mmap caching system. ## Solution I've overhauled the shutdown system that we've been using to - make it more ergonomic - make it more functional - allow for graceful shutdowns through `std::process::ex...
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5ac3b74d..246e0732 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,12 +9,12 @@ on: branches: - main pull_request: - types: [ opened, synchronize, reopened ] + types: [opened, synchronize, reope...
3
2
0
[{"id": "G0", "claim": "The doc comment on the shutdown_timeout field should read 'before timing out' instead of the typo 'bofore timing out'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In await_shutdown_begin the call should be awaited once m...
null
worldcoin__signup-sequencer__842
worldcoin/signup-sequencer
842
defect
e7af1d4791c0f64833bf9c84f3349059508d43a8
dfbff0593baf678b2e508acc9b0374f9798c8958
Sync in-memory trees using DB (DB is source of truth now).
<!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Bug fixes and new features should include tests. Contributors guide: <https://github.com/Recni/rust-app-template/blob/master/CONTRIBUTING.md> The contributors guide includes instructions for running ru...
diff --git a/Cargo.toml b/Cargo.toml index 50775c3a..e2e8f4d0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -64,7 +64,7 @@ sqlx = { version = "0.8.2", features = [ take_mut = "0.2.2" tempfile = "3.5.0" thiserror = "1.0" -tokio = { version = "1.17", features = [ +tokio = { version = "1.38", features = [ "signal", ...
12
6
0
[{"id": "G0", "claim": "In the test helper parse_exposed_port, .expect/.unwrap (or .context on the anyhow error) would be better than the bare anyhow! mapping because the error message lacks line-number information.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": ...
null
worldcoin__signup-sequencer__869
worldcoin/signup-sequencer
869
defect
a90a2460acf38c171a1bb9d012ad0a881ba545f6
1e69d007a26cf3edb835d63e444552219cc49593
Refactor database methods. Add new columns for metrics purposes.
<!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Bug fixes and new features should include tests. Contributors guide: <https://github.com/Recni/rust-app-template/blob/master/CONTRIBUTING.md> The contributors guide includes instructions for running ru...
diff --git a/e2e_tests/scenarios/tests/common/docker_compose.rs b/e2e_tests/scenarios/tests/common/docker_compose.rs index 61d4644e..4e5d9a6b 100644 --- a/e2e_tests/scenarios/tests/common/docker_compose.rs +++ b/e2e_tests/scenarios/tests/common/docker_compose.rs @@ -139,7 +139,7 @@ impl<'a> DockerComposeGuard<'a> { ...
1
1
0
[{"id": "G0", "claim": "The explicit turbofish `::<_, TreeUpdate>` in `sqlx::query_as::<_, TreeUpdate>(` in `get_tree_update_by_root` is redundant and should be removed, per the supplied suggestion making it `sqlx::query_as(`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
worldcoin__signup-sequencer__936
worldcoin/signup-sequencer
936
defect
1c7c274e82ec014a17e2fab4bd85620db0b2c092
197f66f5fb4ed64b07355edabfa6193de66337ba
feat: upgrade authorized_keys to support multiple PEM entries with optional expiry.
- `authorized_keys` type changes from `HashMap<String, String>` to `HashMap<String, Vec<AuthorizedKey>>`, where `AuthorizedKey` carries a PEM string and an optional `expires_at` timestamp - JWT validation skips keys whose `expires_at` is in the past, enabling zero-downtime key rotation by listing old and new keys side...
diff --git a/src/config.rs b/src/config.rs index eb44195a..e2022233 100644 --- a/src/config.rs +++ b/src/config.rs @@ -3,6 +3,7 @@ use std::net::SocketAddr; use std::path::Path; use std::time::Duration; +use chrono::{DateTime, Utc}; use ethers::types::{Address, H160}; use semaphore_rs::Field; use serde::{Deseria...
2
1
0
[{"id": "G0", "claim": "Validate the token against the key before checking expiry, so that a validation against an expired key can be logged as a warning with the key name/id.", "category": "observability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The serde attribute shou...
null
worldcoin__signup-sequencer__940
worldcoin/signup-sequencer
940
defect
68dfea710b6de2b938456d74fdf8245e96cbe828
878019b7ff5b47793b45230536667e8eb6cec26a
fix: reduce TreeState mutex hold time in sync_tree_state_with_db
## Problem `sync_tree_state_with_db::run_sync_tree()` held the global `TreeState` async `Mutex` for the **entire duration of its database I/O**: ```rust // Before async fn run_sync_tree(app: &Arc<App>) -> anyhow::Result<SyncTreeResult> { let tree_state = app.tree_state().await?; // acquire mutex // MutexGu...
diff --git a/src/config.rs b/src/config.rs index 898b54da..47c6eef8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -148,6 +148,12 @@ pub struct AppConfig { #[serde(default = "default::tree_modify_interval")] pub tree_modify_interval: Duration, + /// The interval used for syncing the in-memory tree sta...
6
5
0
[{"id": "G0", "claim": "The four-field TreeStateSnapshot built inline in run_sync_tree should be constructed via a TreeStateSnapshot::from_tree_state(&tree_state) constructor instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The run_sync_t...
null
worldcoin__wallet-bridge__83
worldcoin/wallet-bridge
83
defect
d26bac26e88f804ea08434a84fd21920050bca52
78f78d622434689c301c5e55777876a81eeda132
Add integration testing infrastructure
- added docker-compose.test.yml with Redis for local testing - added comprehensive integration test suite (12 tests) - updated documentation with testing instructions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d5088e..b80d9c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,6 +101,6 @@ jobs: toolchain: stable - name: Run cargo-deny - uses: EmbarkStudios/cargo-deny-action@30f817c6f72275c6d54dc744fbca0...
3
3
0
[{"id": "G0", "claim": "The integration-testing setup should use default ports instead of the non-default host port 6380 for Redis.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the sections below Running Integration Tests in README.md, since the t...
null
worldcoin__wallet-bridge__89
worldcoin/wallet-bridge
89
defect
2e6d83056bb8c4590fe7812ddb09b18b51ba42fd
955a6bfa3a0835374d1cf37f547e55c06581d8bf
Allow RP to supply request_id on POST /request
## Summary Lets the RP optionally supply a `request_id` on `POST /request` and relaxes the `request_id` path param from `Uuid` to `String`, turning the bridge into a generic content-addressable single-use store keyed by any opaque identifier the caller chooses. - `POST /request` accepts an optional `request_id` field...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b80d9c7..a4141b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,3 +104,62 @@ jobs: uses: EmbarkStudios/cargo-deny-action@3fd3802e88374d3fe9159b834c7714ec57d6c979 # v2.0.15 https://github.com/EmbarkStudios/cargo...
10
10
3
[{"id": "G0", "claim": "The doc comment added on create_request should be reworded to read 'correct creation strategy (invite code or raw request)' instead of the current branching description.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Li...
null
worldcoin__walletkit__12
worldcoin/walletkit
12
defect
30bf785931a98caa1743c72efaf93755bc10983a
f4f54d0955ccd0a4bca73d78b19ebbdd5e595d25
proof context / external nullifier generation
Implements logic to generate external nullifier from a proof context struct. - Supports generating external nullifiers solely from `app_id`s. - Supports string-based actions (for off-chain use cases). - Supports Solidity-based custom actions.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4dd943a4f..e86943f87 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -113,6 +113,9 @@ jobs: run: | rustup update stable && rustup default stable + - name: Install Foundry + uses: foundry-rs/f...
1
1
0
[{"id": "G0", "claim": "From an API perspective, `Context::new`'s `app_id` and `action` should be `&str` and `Option<&str>` with the internal implementation doing `.as_bytes()`, or alternatively, if kept as bytes, the doc comment should specify that these should be UTF-8 bytes.", "category": "design", "verdict": "suppo...
null
worldcoin__walletkit__126
worldcoin/walletkit
126
defect
18b2bf402d117ac55b1f652c11cc976b2e8111eb
df35cafc530d613a95a42bfcc6ac0078ed348c04
feat: world id 4.0 upgrades
Protocol version bump and related relevant updates.
diff --git a/Cargo.lock b/Cargo.lock index 76b8f5081..47f3b93b7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -61,9 +61,9 @@ checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" [[package]] name = "alloy" -version = "1.0.41" +version = "1.4.3" source = "registry+https://github.com/rust-lang/...
5
1
1
[{"id": "G0", "claim": "The new register* APIs return `InitializingAuthenticator`, which is a tuple struct with a private inner value and no public methods, so callers (including UniFFI bindings) cannot poll status or await completion despite the docs claiming they can, leaving the non-blocking registration flow unusab...
null
worldcoin__walletkit__16
worldcoin/walletkit
16
defect
03583cd99aa670ea7e0f4211571b87dd86466bba
72ba4ee39d18b76e4e9f0a374df5a9a25e84002b
proof generation
- Adds base support for generating ZKPs under the protocol. - Introduces a global `Environment` to identities to be able to distinguish between different sets. - The default proof process generation also fetches the Merkle inclusion proof from the relevant sign up sequencer. - Extends `U256Wrapper` to also parse hex...
diff --git a/Cargo.lock b/Cargo.lock index d83bd2da9..acb613c9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -56,6 +56,21 @@ dependencies = [ "memchr", ] +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77b...
3
3
1
[{"id": "G0", "claim": "The custom `deserialize_merkle_root` on `InclusionProofResponse::root` may no longer be required now that `U256Wrapper` has a `Deserialize` implementation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `From<MerkleTr...
null
worldcoin__walletkit__183
worldcoin/walletkit
183
defect
214667ab5cf47e2ecb1f24be8578722e6b05a209
72c399f8960fc35e8e38a9b767bd0e3fe04f89e9
feat: refactor nullifier replay store
### What changed? - Replay guards will only be nullifier based. - Added a 10-minute grace period before replay guards are enforced to prevent user lockout in case of proof delivery failure. CC @andy-t-wang @Takaros999 - Set a fixed 1-year TTL for replay guard entries. This should be reviewed before shipping. - S...
diff --git a/Cargo.lock b/Cargo.lock index 06a9fa7ec..34a3df642 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1422,6 +1422,70 @@ dependencies = [ "fs_extra", ] +[[package]] +name = "axum" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b52af3cb4058c895d37317bb27508...
5
4
2
[{"id": "G0", "claim": "Changing the replay-guard cache-key prefix from 0x04 to 0x03 means existing cache rows written by previous versions are never found by the new replay_guard_get logic, so previously recorded nullifier replays become invisible on upgrade and can be replayed within the TTL unless a migration or com...
null
worldcoin__walletkit__187
worldcoin/walletkit
187
defect
214667ab5cf47e2ecb1f24be8578722e6b05a209
b5d6e1183a04d76ce05cdf5224b641613d3f7ab0
feat: initialize credential storage in Authenticator
### What changed? - Restructured the `Authenticator` to hold the `CredentialStore` instead of passing on every parameter. - Renamed `storage.rs` to `with_storage.rs` to better reflect its purpose - Exposing proof requests and responses for World ID 4.0 - Renamed `request.rs` to `http_request.rs` to avoid naming confli...
diff --git a/Cargo.lock b/Cargo.lock index 06a9fa7ec..34a3df642 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1422,6 +1422,70 @@ dependencies = [ "fs_extra", ] +[[package]] +name = "axum" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b52af3cb4058c895d37317bb27508...
1
1
1
[{"id": "G0", "claim": "The public, uniffi-exported fetch_inclusion_proof_cached now unconditionally panics via todo!() instead of returning inclusion_proof_payload_from_cached(&payload), making it unusable at runtime for any caller that reaches this path on a cache miss or expired cache.", "category": "correctness", "...
null
worldcoin__walletkit__192
worldcoin/walletkit
192
defect
6516f7d78fec1db12644494cd24910d0930a1ea2
4d9f05ac5c60ee07dc60a1e676ddeda7e4e03a85
chore: remove v4 feature flag
In preparation to release v4, we're flipping to feature flag v3 and by default run v4 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes default feature selection and build flags for published Swift/Kotlin artifacts, which can alter exported APIs and compiled behavior even though the code changes are m...
diff --git a/Cargo.lock b/Cargo.lock index 1bfa47616..34a3df642 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6388,7 +6388,7 @@ dependencies = [ "hkdf", "log", "mockito", - "rand 0.9.1", + "rand 0.8.5", "regex", "reqwest 0.12.28", "ruint", diff --git a/build_swift.sh b/build_swift.sh index 14d80e759..ee6bfd6...
3
3
3
[{"id": "G0", "claim": "With `authenticator` now always compiled while `storage` remains behind `#[cfg(feature = \"storage\")]` and out of the default features, a plain `cargo build -p walletkit-core` (or any downstream crate using default features) will fail with an unresolved import for `storage`; the bot asks to eit...
null
worldcoin__walletkit__198
worldcoin/walletkit
198
defect
162dbdceb9a267c63836d8b3eb8445611ef84a51
5d0346f545f08a7249bcb7d4144f686373a437ad
feat: expose blinding factor generation
### Changes Exposes a method to generate credential blinding factors remotely through OPRF Nodes. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Touches credential/proof-generation and storage interfaces (including FFI-facing APIs), so call sites and serialization compatibility need careful verification; ...
diff --git a/Cargo.lock b/Cargo.lock index 8d3460754..c8fb9a0cc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6891,7 +6891,7 @@ checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" [[package]] name = "world-id-authenticator" version = "0.3.0" -source = "git+https://github.com/worldcoin/world-...
3
3
1
[{"id": "G0", "claim": "The exported Credential wrapper has a private inner field with no constructor, From impl or factory, so it and its sub() method can never be instantiated and are effectively dead code; a From impl or constructor is needed to make it usable.", "category": "design", "verdict": "supported", "priori...
null
worldcoin__walletkit__216
worldcoin/walletkit
216
defect
fec289ab7a55f9926ce0eb168b79bea424559a16
0936a4180b10d8971c31fe04d6e31e84b3500675
feat: add OPRF region selection (Us/Eu/Ap)
Adds OprfRegion enum exposed via UniFFI, threaded through all _with_defaults constructors. Defaults to Eu when None is passed. Generates node URLs dynamically from region + environment, removing the hardcoded/commented-out URL blocks. Closes #194
diff --git a/walletkit-core/src/authenticator/mod.rs b/walletkit-core/src/authenticator/mod.rs index 3843786c9..982657cf5 100644 --- a/walletkit-core/src/authenticator/mod.rs +++ b/walletkit-core/src/authenticator/mod.rs @@ -18,7 +18,7 @@ use crate::{ error::WalletKitError, primitives::ParseFromForeignBinding...
4
3
1
[{"id": "G0", "claim": "The OprfRegion enum should be defined as a generic Region so it can be re-used, e.g. for the indexer.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment stating each region has 5 nodes should be removed because the nod...
null
worldcoin__walletkit__221
worldcoin/walletkit
221
defect
63f95cb5fb7c567ea4c59f5424dfdf6338909811
6b21da5edead3bdb2cf765b326a77bfcda87cf6e
feat: enable explicit groth16 cache manipulation
Essentially exposes `cache_embedded_groth16_material` which loads embedded material & caches it to provided paths. The cached material is then required to initialize the authenticator
diff --git a/Cargo.lock b/Cargo.lock index fb2648add..8404b54f3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -72,9 +72,9 @@ checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" [[package]] name = "alloy" -version = "1.6.3" +version = "1.7.3" source = "registry+https://github.com/rust-lang/c...
3
1
0
[{"id": "G0", "claim": "The storage-feature `Authenticator::init` constructors should not take `paths: Arc<StoragePaths>` as an extra explicit parameter since the paths are already available from the `CredentialStore` that is also passed in.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "intr...
null
worldcoin__walletkit__234
worldcoin/walletkit
234
defect
05546d6653c12ce69d7383043b0d79f911bb254e
5de9c0168fade6ff204d67b7f4233cc4b2a454ad
chore!: feature flag v3 proofs
this will remove semaphore / v3 from the android & swift builds <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes crate feature defaults and gates v3/semaphore code behind a new `v3` feature, which can break downstream builds relying on prior default exports. Mostly build/config refactoring, but impac...
diff --git a/README.md b/README.md index 1d437223a..73f418121 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Replace `VERSION` with the desired WalletKit version. To test local changes before publishing a release, use the build script to compile the Rust library, generate UniFFI bindings, and publish a SNAPS...
2
2
2
[{"id": "G0", "claim": "Changing the dependency to `walletkit-core = { workspace = true }` silently drops the previously forced `storage` and `issuers` features (the workspace dependency has `default-features = false` and the build scripts only pass `compress-zkeys`), so production Android/Swift builds lose storage-gat...
null
worldcoin__walletkit__261
worldcoin/walletkit
261
defect
2f061eb9ac7618e5a3a6408e060d6c1bed7bed6b
594751f7385266c1190da2f123fbb3283e258dbf
chore: enforce clippy warnings as errors across workspace
## Summary - Add `[workspace.lints]` config with `clippy::all = warn` and `warnings = "deny"` so all clippy warnings are errors - All four member crates (`walletkit`, `walletkit-core`, `walletkit-db`, `uniffi-bindgen`) inherit via `[lints] workspace = true` - CI clippy step now passes `-- -D warnings` to match - Fix e...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0343b42a..0f5906553 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: run: cargo fmt -- --check - name: Run clippy - run: cargo clippy --workspace --all-targets --all-features + ...
1
1
0
[{"id": "G0", "claim": "Setting `warnings = \"deny\"` in the published workspace manifest can make downstream builds brittle when a new Rust release or target-specific warning becomes a hard compile error; the suggestion is to keep manifest lint levels at `warn` and enforce `-D warnings` in CI only.", "category": "main...
null
worldcoin__walletkit__270
worldcoin/walletkit
270
defect
d0bad70deee1f78e1e69aa2a7e9b8ac79828051e
807392337f7f5841cd76fce9f67dce3ef537eacb
chore: bump world-id-core to 0.5.x
The new core version contains local input verification. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Upgrades `world-id-core` and related cryptography/proof dependencies, which can change proof-generation behavior and error surfaces. Also simplifies proof error mapping, which may affect how callers detec...
diff --git a/Cargo.lock b/Cargo.lock index 29afb230a..0d1d9bb34 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1957,7 +1957,7 @@ version = "3.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34" dependencies = [ - "windows-s...
1
1
1
[{"id": "G0", "claim": "Removing the dedicated conversion for OPRF quorum failures makes an OPRF quorum outage during nullifier generation fall through to the generic AuthenticatorError branch and surface as unexpected_authenticator_error, a behavior regression for callers that rely on structured/retryable nullifier-ge...
null
worldcoin__walletkit__273
worldcoin/walletkit
273
defect
cb521792256a0654e43c3d38168e667a6e45346e
6086137b15aa9cdafa1d040b5c389363ce1f2c21
Storage: include expired credentials in list + add delete by ID
## Summary - include expired credentials in `list_credentials` by default - add `is_expired: bool` to `CredentialRecord` (computed at query time) - add `delete_credential` methods in vault/store APIs - keep authenticator behavior unchanged by filtering out expired credentials before request fulfillment - update vault a...
diff --git a/walletkit-core/src/authenticator/mod.rs b/walletkit-core/src/authenticator/mod.rs index c1320965a..6b97e312a 100644 --- a/walletkit-core/src/authenticator/mod.rs +++ b/walletkit-core/src/authenticator/mod.rs @@ -334,6 +334,7 @@ impl Authenticator { let credential_list = self.store.list_credentials...
4
2
1
[{"id": "G0", "claim": "WalletKit should implement logic to automatically clear up expired credentials, possibly letting RPs specify a preferred grace period maintained after expiration upon issuance.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "delete...
null
worldcoin__walletkit__308
worldcoin/walletkit
308
defect
92dc2b4cb65bb67d3188360070eb1af9e894130c
6b0d4ef0da37b69db8513feba449ec0201170dc8
feat!: version bump to 0.6 with new RP signature
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Medium Risk** > Upgrades core cryptography/proof dependencies and updates request signing/proof-material initialization paths, which can affect proof generation/verification and external bindings despite mostly mechanical call-site changes. > > **Overview** > Bumps `world-id-core`...
diff --git a/Cargo.lock b/Cargo.lock index 52e0bf1eb..00f2503f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1475,6 +1475,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" +[[package]] +name = "base6...
1
1
1
[{"id": "G0", "claim": "The #[cfg(feature = \"storage\")] init_with_defaults creates a CoreAuthenticator without ever calling with_proof_materials, so any subsequent generate_proof call will fail for lack of the Groth16 materials.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduc...
null
worldcoin__walletkit__330
worldcoin/walletkit
330
defect
89f343de1344f2a9607d5ac035adeef9f8666c5d
a60bff57f72e10d391c3f97b8a6bf9220c95f7f2
feat: add account recovery mechanisms
## Summary Introduces two new types to support the World ID account recovery flow on the walletkit/protocol side. ### New types **`RecoveryMaterial`** (UniFFI Record) Derives the three values that must be submitted on-chain during recovery: - `authenticator_address` — checksummed hex Ethereum address - `authenticat...
diff --git a/walletkit-core/src/authenticator/mod.rs b/walletkit-core/src/authenticator/mod.rs index dd81f50cb..93ed55d00 100644 --- a/walletkit-core/src/authenticator/mod.rs +++ b/walletkit-core/src/authenticator/mod.rs @@ -5,13 +5,15 @@ use crate::{ primitives::ParseFromForeignBinding, Environment, FieldElement,...
10
10
2
[{"id": "G0", "claim": "RecoveringAuthenticator::new takes (seed, environment, rpc_url, region) while every other constructor in the file uses (seed, rpc_url, environment, region), and the swapped order breaks the SDK's public API consistency and likely confuses callers.", "category": "design", "verdict": "supported", ...
null
worldcoin__walletkit__347
worldcoin/walletkit
347
defect
cb75b661d44b10a7b209a7e372390d1bb9db1a69
01105621a5ed9a889a301c9a2a6e901e65983225
feat: session proofs support
- Adds support for Session Proofs by generating the appropriate seeds when a Session Proof request comes in. - Standardizes Merkle cache proof storage using the existing `AccountInclusionProof` - Misc fixes and bump world-id-core **Next Steps** - Add support for creating sessions. @Takaros999 is helping define ...
diff --git a/Cargo.lock b/Cargo.lock index 37a75632a..28caad38a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6165,7 +6165,7 @@ dependencies = [ "dirs", "eyre", "hex", - "rand 0.9.2", + "rand 0.8.5", "reqwest", "serde", "serde_json", @@ -6196,7 +6196,7 @@ dependencies = [ "hkdf", "log", "mockito", - "r...
5
4
2
[{"id": "G0", "claim": "The new `session_seeds` table added to the vault schema is not listed in `BACKUP_TABLES` in walletkit-db/src/cipher.rs, so session seeds are silently dropped during vault backup export and are not restored on import, potentially causing `SessionIdMismatch` errors for active sessions.", "category...
null
worldcoin__walletkit__382
worldcoin/walletkit
382
defect
23559d595481c277386b815d21980de1902d25ad
13f2a60b3d0af3abdc1b8d09233bce0de3c65016
feat: expose credential sub proving for issuers
Exposes WIP-103 Ownership Proof to prove ownership over a `sub` for a Credential. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Adds a new externally callable proof-generation API and serialization surface in a security-sensitive area (ZK/credential ownership), so misuse or incorrect wiring could have pri...
diff --git a/walletkit-core/src/authenticator/mod.rs b/walletkit-core/src/authenticator/mod.rs index 552b9972..3c24129f 100644 --- a/walletkit-core/src/authenticator/mod.rs +++ b/walletkit-core/src/authenticator/mod.rs @@ -21,7 +21,10 @@ use world_id_core::{ use world_id_core::CredentialInput; #[cfg(feature = "stor...
2
1
1
[{"id": "G0", "claim": "Gate the new always-compiled `proof` module (which unconditionally uses the optional `base64` and `ciborium` deps) on features, because unconditional `mod proof; pub use proof::OwnershipProof;` makes feature sets that previously compiled (e.g. `--no-default-features`) fail at compile time.", "ca...
null
worldcoin__walletkit__401
worldcoin/walletkit
401
defect
e832bfa8c93c4c76721e0a4cd9619eb0f2f43a2f
1ee5feb6cd4255fbf46322283fba2e7fe9abea7e
fix: ffi builds embedding keys
Fixes a few things: 1. The key embedding became optional recently, this resulted in Swift & Kotlin libraries having no zkeys. 2. A recent change made `set_vault_changed_listener` no longer exposed to foreign code. CC @thomas-waite 3. Updates Kotlin scripts to follow naming convention of Swift. <!-- CURSOR_SUMMARY ...
diff --git a/.github/workflows/release-swift-kotlin.yml b/.github/workflows/release-swift-kotlin.yml index 485174d7a..3e4981765 100644 --- a/.github/workflows/release-swift-kotlin.yml +++ b/.github/workflows/release-swift-kotlin.yml @@ -4,6 +4,11 @@ on: release: types: [published] +env: + # The feature flags...
2
1
1
[{"id": "G0", "claim": "Removing `alloy-primitives` from `[workspace.dependencies]` while `walletkit-cli/Cargo.toml` still declares `alloy-primitives = { workspace = true }` breaks manifest resolution, so Cargo errors before building the workspace.", "category": "correctness", "verdict": "supported", "priority": "P0", ...
null
worldcoin__walletkit__408
worldcoin/walletkit
408
defect
fc4911bb22125b3aaa3825a7cc69549c045878bf
c24ae3ae82a99150e2c59f27fac6a0889207fa05
refactor: default Authenticator to direct service endpoints, add OHTTP opt-in constructors
## Summary - Drops the single-impl `DefaultConfig` trait in `walletkit-core/src/defaults.rs` and replaces it with two free functions: `defaults::default_config` (direct service endpoints) and `defaults::default_config_with_ohttp` (OHTTP-routed endpoints). - `Authenticator::init_with_defaults` and `InitializingAuthe...
diff --git a/Cargo.lock b/Cargo.lock index cbdeed64..a8b93062 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7193,6 +7193,15 @@ name = "taceo-oprf" version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72e971b7c52f9a91a499ed15580da6dbfd593c6ad9c6d519c6b72c7f0c421355" +dependen...
5
1
0
[{"id": "G0", "claim": "The new OHTTP constructors share the same tracing span names (rpc_init, gateway_register) as their direct counterparts, so traces/metrics cannot tell which transport path a span used; it would be valuable to distinguish them, e.g. name = \"rpc_init_ohttp\".", "category": "observability", "verdic...
null
worldcoin__world-id-protocol__389
worldcoin/world-id-protocol
389
defect
16f07d1f72fb7ff843dc0a69e253732784233c26
9c52f925d3469a79b18827cf7571b84ce0178bce
feat: improved blockchain event streaming
Fixes https://github.com/worldcoin/world-id-protocol/issues/348 and makes some other improvements: - Better iterative backfill logic that accounts for moving head during backfill and minimizes buffered events when websocket is started - Proper retry handling for RPC calls - More consistent error emission in streams ...
diff --git a/Cargo.lock b/Cargo.lock index 2e08b0890..9c24c2578 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9176,6 +9176,7 @@ dependencies = [ "ark-bn254 0.5.0", "ark-ff 0.5.0", "axum", + "backon", "common", "dotenvy", "futures-util", diff --git a/services/indexer/Cargo.toml b/services/indexer/Cargo.toml i...
2
1
0
[{"id": "G0", "claim": "The create_accounts test helper writes createAccount transactions to a log file in cleartext, exposing sensitive information.", "category": "security", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hand-rolled generic RPC retry wrapper could instead...
null
worldcoin__world-id-protocol__392
worldcoin/world-id-protocol
392
defect
8ddf6e28aae620ce9c15331b01b58d41f84e9472
5ca51b0e78936e162685d545c4df12173e7ec0e9
feat: use CascadingMerkleTree
`CascadingMerkleTree` is a fully parallelized and growable fixed depth merkle tree implementation. Tree capacity and memory consumption double as required when new leaves are pushed. We use Mmap backed Vecs as the underlying storage and support reloading from a file based cache.
diff --git a/Cargo.lock b/Cargo.lock index 512b02f31..43602f238 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9195,6 +9195,7 @@ dependencies = [ "axum", "common", "dotenvy", + "eyre", "futures-util", "hex", "http 1.4.0", @@ -9204,6 +9205,7 @@ dependencies = [ "ruint", "rustls 0.23.36", "semaphore-rs-ha...
2
2
0
[{"id": "G0", "claim": "Document the safety assumptions of the newly introduced unsafe functions (initialize_tree_with_config and run_indexer, and by extension the other unsafe fns added by the PR).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "D...
null
worldcoin__world-id-protocol__406
worldcoin/world-id-protocol
406
defect
a61e758eaae0bc7f8c20687813b33103ce377b35
2bbe2840b162f30d396c00d80ae591dab070d4d3
chore: add tree cache tests
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Low Risk** > Primarily adds tests and a module visibility change; no production logic changes beyond exposing `tree` publicly. > > **Overview** > Improves test coverage for the tree mmap cache lifecycle, exercising `init_tree` restore vs rebuild paths, replay semantics (including ...
diff --git a/services/indexer/src/lib.rs b/services/indexer/src/lib.rs index 712414910..7be9ca80a 100644 --- a/services/indexer/src/lib.rs +++ b/services/indexer/src/lib.rs @@ -29,7 +29,7 @@ mod error; pub mod events_committer; mod routes; mod sanity_check; -mod tree; +pub mod tree; static BLOCKCHAIN_RETRY_DELAY:...
3
3
3
[{"id": "G0", "claim": "test_restore_invalid_utf8_path asserts that restore_from_cache returns InvalidCacheFilePath for non-UTF8 paths, but restore_from_cache never performs UTF-8 validation, so the test verifies the wrong function and would fail at runtime.", "category": "testing", "verdict": "supported", "priority": ...
null
worldcoin__world-id-protocol__462
worldcoin/world-id-protocol
462
defect
92cee94c2fb242055abd0a629f71d406bf6d626b
07b45df3d8478b1c33acfc9f14182394c51e550b
feat: improve gateway timeout layer
* Returning 408 on handler timeout is semantically not correct. Return 503 instead. * Make timeout value configurable and reduce default to 10s
diff --git a/crates/core/tests/authenticator_registration.rs b/crates/core/tests/authenticator_registration.rs index 58f8012d7..2fec36e10 100644 --- a/crates/core/tests/authenticator_registration.rs +++ b/crates/core/tests/authenticator_registration.rs @@ -49,6 +49,7 @@ async fn test_authenticator_registration() { ...
1
1
0
[{"id": "G0", "claim": "Asks why the timeout status code was changed from REQUEST_TIMEOUT (408), challenging the choice of SERVICE_UNAVAILABLE (503) for the gateway's timeout response.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
worldcoin__world-id-protocol__475
worldcoin/world-id-protocol
475
defect
0c8e88f81497f39267c5d81ec6e87c395122a654
998de4bd674c4005b0608c49b763381bcee31c92
feat: indexer use common provider
Use the common provider in the indexer. This makes indexer rpc calls more robust and consitent with the gateway. Changes: * Make provider signer keys optional since indexer doesn't need it * Create one provider using the common provider module and inject into blockchain service, sanity checker and server * Add provi...
diff --git a/Cargo.lock b/Cargo.lock index 4d6e6891f..99df699b6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8860,6 +8860,7 @@ dependencies = [ "ark-bn254 0.5.0", "ark-ff 0.5.0", "axum", + "clap", "dotenvy", "eyre", "futures-util", diff --git a/services/common/src/provider.rs b/services/common/src/provider....
1
1
0
[{"id": "G0", "claim": "A dedicated ConfigError enum could eventually be created and used for gateway configuration errors instead of the current GatewayError::Config string; offered as a non-blocking, low-hanging-fruit idea.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
worldcoin__world-id-protocol__494
worldcoin/world-id-protocol
494
defect
ccc4c6dacf46a4fd31132de2ea6475faaea7ff56
ad4c7c37c2797d9e57f9ae7b96ac9d27104dd440
feat: gateway orphan sweeper
## Summary Currently, gateway requests can become orphaned when a replica crashes or restarts between accepting a request and confirming its on-chain transaction, because requests states are only updated by the replica that handles them. Without cleanup, these requests remain stuck in `Queued`, `Batching`, or `Submi...
diff --git a/crates/core/tests/authenticator_registration.rs b/crates/core/tests/authenticator_registration.rs index 2fec36e10..c66d18d01 100644 --- a/crates/core/tests/authenticator_registration.rs +++ b/crates/core/tests/authenticator_registration.rs @@ -5,7 +5,7 @@ use std::sync::Arc; use alloy::primitives::U256; ...
6
6
0
[{"id": "G0", "claim": "get_pending_requests and snapshot_batch swallow Redis errors by logging them and returning empty/None results; the reviewer suggests that, if the errors are not meant to be recovered internally, the helpers should return an error to the caller.", "category": "design", "verdict": "supported", "pr...
null
worldcoin__world-id-protocol__518
worldcoin/world-id-protocol
518
defect
2e6300c340a7f21ff998711ea815fca6bf2c3daf
eb60096259af8d58a836dcf0c8baa0e7f7bf5658
feat: explicit nullifier type
Introduces an explicit `Nullifier` type. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes the public API and JSON encoding for uniqueness proof nullifiers (from `FieldElement` hex to prefixed canonical `Nullifier`), which is potentially breaking for downstream consumers and any stored/compared nullif...
diff --git a/crates/authenticator/src/authenticator.rs b/crates/authenticator/src/authenticator.rs index 53e3c8293..25e9d60af 100644 --- a/crates/authenticator/src/authenticator.rs +++ b/crates/authenticator/src/authenticator.rs @@ -689,7 +689,7 @@ impl Authenticator { request_item.identifier.clone(), ...
4
4
2
[{"id": "G0", "claim": "The new human-readable Nullifier parser hard-requires the `nil_` prefix, so ResponseItem.nullifier no longer accepts the previous V1 `0x...` encoding used in existing payloads, and ProofResponse::from_json will fail deserialization on stored or mixed-version responses unless deserialization supp...
null
worldcoin__world-id-protocol__519
worldcoin/world-id-protocol
519
defect
02a18d7e174ad9cf57cad68b3dbf223d250b4bc7
58a8ba488b1c40d02586faff4c80d30d05f0cdf9
feat: in-flight locks for all gateway operations
## Summary Extends in-flight locking to all operation types and makes lock acquisition/release atomic with request record creation/finalization. For leaf-index operations (insert/update/remove/recover), the leaf index is the lock key — allowing only one in-flight operation per account. For CreateAccount, the authent...
diff --git a/Cargo.lock b/Cargo.lock index 69c3e2045..eee638016 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8865,8 +8865,10 @@ dependencies = [ "metrics", "moka", "once_cell", + "rand 0.8.5", "redis", "reqwest", + "rustls 0.23.36", "serde", "serde_json", "strum", diff --git a/crates/authenticator/src/a...
2
1
0
[{"id": "G0", "claim": "The Redis key tag for GatewayRequestKind::CreateAccount should be \"create\" instead of \"auth\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test_same_leaf_conflict_matrix test looks too similar to the previou...
null
worldcoin__world-id-protocol__550
worldcoin/world-id-protocol
550
defect
52d0f046493afd4b45ef3d9921a7a60ab757689f
7f600c10ee76f50160ce40d66408819488e3e07f
feat: /get-recovery-agent endpoint
Introduces a new indexer endpoint to get the recovery agent for a particular leaf index. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Introduces a new public API and changes `/signature-nonce` error semantics for non-existent leaf indices, which may break existing clients relying on the previous zero-val...
diff --git a/crates/primitives/src/api_types.rs b/crates/primitives/src/api_types.rs index a23e8c16c..12dafb165 100644 --- a/crates/primitives/src/api_types.rs +++ b/crates/primitives/src/api_types.rs @@ -314,6 +314,19 @@ pub struct IndexerSignatureNonceResponse { pub signature_nonce: U256, } +/// Response cont...
3
2
1
[{"id": "G0", "claim": "The new /recovery-agent route is registered but get_recovery_agent::handler is not listed in #[openapi(paths(...))], so openapi.json will omit the operation and clients relying on the spec will miss the new endpoint.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope...
null
worldcoin__world-id-protocol__553
worldcoin/world-id-protocol
553
defect
8f529dc23e7e7faf719cbb62cb42acb8fefb68b5
1b59e33f0f0e79cdc2294a12cd1b654fb573d2d1
chore: state bridge e2e tests
Add rust E2E test to test the relayer service Update the relayer CLI to take in an array of gateways (with their own config type) Deploy PR - https://github.com/worldcoin/world-id-protocol-deploy/pull/52 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Medium risk because it changes relay startup/con...
diff --git a/Cargo.lock b/Cargo.lock index f4fa91fa8..a677d5236 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9113,6 +9113,7 @@ version = "0.5.1" dependencies = [ "alloy", "alloy-primitives", + "ark-ff 0.5.0", "clap", "config", "dashmap", @@ -9126,8 +9127,10 @@ dependencies = [ "telemetry-batteries 0.2.1", ...
4
2
2
[{"id": "G0", "claim": "The World Chain provider is built without a signer while the engine calls propagateState(...).send() through it, so every propagateState call will fail at runtime; attach shared_signer to wc_provider_args.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduce...
null
worldcoin__world-id-protocol__593
worldcoin/world-id-protocol
593
defect
fff0672fb79683f2200448f37d012c9d61bcd0b3
2371f4ff672e62d22308a6f75b4a769801fa8c08
feat(indexer): expose offchain_signer_commitment
Pretty self-explanatory. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > This changes the `POST /authenticator-pubkeys` response schema by adding a new required field, which can break existing clients that strictly validate responses. The functional changes are straightforward (DB fetch + serialization) and...
diff --git a/crates/primitives/src/api_types.rs b/crates/primitives/src/api_types.rs index c91578641..0c58252c9 100644 --- a/crates/primitives/src/api_types.rs +++ b/crates/primitives/src/api_types.rs @@ -398,8 +398,14 @@ pub struct IndexerAuthenticatorPubkeysResponse { /// /// Entries may be `null` for remov...
1
1
1
[{"id": "G0", "claim": "The OpenAPI annotation advertises `authenticator_pubkeys` as `Vec<String>` although the field is `Vec<Option<U256>>` with explicit `null` entries for removed slots, so schema-generated clients would treat items as non-null and could fail validation/deserialization on removed authenticators.", "c...
null
worldcoin__world-id-protocol__597
worldcoin/world-id-protocol
597
defect
443585a935fb07418a8fe81b54743b446d9ec9ee
501b25de05c1d0ab974a434566b4caecd675fe1c
fix: sign_recover_account with async processing
### Motivation Recovery Agents are likely to implement signing mechanisms that are not simply a local signing key for a more robust approach. Such mechanisms likely require async processing. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes the `sign_recover_account` API from sync to async and update...
diff --git a/crates/authenticator/src/registry.rs b/crates/authenticator/src/registry.rs index dde34df47..4922f98ac 100644 --- a/crates/authenticator/src/registry.rs +++ b/crates/authenticator/src/registry.rs @@ -5,7 +5,7 @@ use alloy::{ primitives::{Address, Signature, U256}, - signers::SignerSync, + sig...
1
1
1
[{"id": "G0", "claim": "Changing sign_recover_account from a synchronous function to async is a breaking API change not accompanied by caller updates or a compatibility shim: existing synchronous call sites in services/gateway/tests/test_inflight.rs and services/gateway/tests/gateway_integration.rs no longer compile.",...
null
worldcoin__world-id-protocol__602
worldcoin/world-id-protocol
602
defect
5d78da8f282c441d0b735af2c55f2e03f8f9e522
68cc364d32515492e00c077b0b4252f4315ff25d
feat: add recovery agent update methods to CoreAuthenticator
Adds three new methods to `Authenticator` for managing recovery agent updates: - **`initiate_recovery_agent_update`** — signs and POSTs an initiate request to the gateway - **`execute_recovery_agent_update`** — permissionless execute (no signature needed) - **`cancel_recovery_agent_update`** — signs and POSTs a cancel...
diff --git a/crates/authenticator/src/authenticator.rs b/crates/authenticator/src/authenticator.rs index ba45c2479..76cc602bf 100644 --- a/crates/authenticator/src/authenticator.rs +++ b/crates/authenticator/src/authenticator.rs @@ -5,19 +5,21 @@ use std::sync::Arc; use crate::api_types::{ - AccountInclusionProo...
2
1
1
[{"id": "G0", "claim": "The new recovery agent update methods (initiate, and likewise execute) should support a direct RPC call when an rpc_url is configured instead of only going through the gateway.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an i...
null
worldcoin__world-id-protocol__603
worldcoin/world-id-protocol
603
defect
5d78da8f282c441d0b735af2c55f2e03f8f9e522
c634ba68e48464b3690d7cbc1c7b56864776b551
feat: GatewayRequestId newtype and Authenticator::poll_status
<!-- otto-requester: @Dzejkop --> ## Summary Two improvements to gateway operations in the protocol crates: ### 1. `GatewayRequestId` newtype Replaces bare `String` with a strongly-typed `GatewayRequestId(String)` wherever a gateway request ID is returned or accepted. This prevents accidental misuse (e.g. p...
diff --git a/crates/authenticator/src/authenticator.rs b/crates/authenticator/src/authenticator.rs index ba45c2479..69b3b47c6 100644 --- a/crates/authenticator/src/authenticator.rs +++ b/crates/authenticator/src/authenticator.rs @@ -5,11 +5,11 @@ use std::sync::Arc; use crate::api_types::{ - AccountInclusionProo...
5
5
3
[{"id": "G0", "claim": "The `#[allow(dead_code)]` in services/gateway/tests/common.rs should be changed to `#[expect(...)]` with a reason.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The new `Authenticator::poll_status` near-exactly duplica...
null
worldcoin__world-id-protocol__628
worldcoin/world-id-protocol
628
defect
d3736c623ade8487e63b90de2ccdcdefbddba6bd
a0622e8031899fd445f4c4a8d9b81e2096411ff3
feat: generate session_id_r_seed through OPRF nodes
Introduces `session_id_r_seed` computation through OPRF Nodes for persistence. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Changes how `SessionId` seeds are generated (random local vs OPRF-derived) and alters OPRF request construction/inputs, which could impact session proof compatibility if mis-specifi...
diff --git a/crates/authenticator/src/authenticator.rs b/crates/authenticator/src/authenticator.rs index 6ce207a26..b421256e5 100644 --- a/crates/authenticator/src/authenticator.rs +++ b/crates/authenticator/src/authenticator.rs @@ -13,7 +13,8 @@ use crate::api_types::{ ServiceApiError, UpdateAuthenticatorRequest,...
2
1
1
[{"id": "G0", "claim": "Calling gen_session_id_r_seed with the same proof_request nonce that generate_nullifier uses for session proofs means a normal cache-miss flow performs two /session OPRF requests with one nonce and the second is rejected as replay, making session proof generation fail whenever session_id_r_seed ...
null