Skip to content

sds-go: unmarshal JwtClaimsValidator config - #385

Merged
vinckama merged 2 commits into
mainfrom
vincent.roy/sds-go-jwt-claims-validator
Aug 28, 2026
Merged

sds-go: unmarshal JwtClaimsValidator config#385
vinckama merged 2 commits into
mainfrom
vincent.roy/sds-go-jwt-claims-validator

Conversation

@vinckama

Copy link
Copy Markdown
Contributor

The Go bindings already constructed JwtClaimsValidator rules and sent them over FFI, but SecondaryValidator had no UnmarshalJSON, so loading a rule from JSON left Config as nested maps instead of JwtClaimsValidatorConfig.

For DATASEC-201

The Go bindings already constructed JwtClaimsValidator rules and sent
them over FFI, but SecondaryValidator had no UnmarshalJSON, so loading
a rule from JSON left Config as nested maps instead of
JwtClaimsValidatorConfig.

For DATASEC-201

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@vinckama
vinckama marked this pull request as ready for review August 28, 2026 14:27
@vinckama
vinckama requested a review from a team as a code owner August 28, 2026 14:27
Comment thread sds-go/go/regex_rule.go
switch rawMap.Type {
case string(JwtValidatorType):
var jwtConfig JwtClaimsValidatorConfig
if err := json.Unmarshal(rawMap.Config, &jwtConfig); err != nil {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This unmarshal doesn't seem to be supporting NotExpired (defined here in the Rust engine). Maybe this should be tackled in a follow up PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, I will add this in a follow-up PR.

Base automatically changed from vincent.roy/sds-go-precedence to main August 28, 2026 16:21
@vinckama
vinckama merged commit 9892c36 into main Aug 28, 2026
5 checks passed
@vinckama
vinckama deleted the vincent.roy/sds-go-jwt-claims-validator branch August 28, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants