-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(fix): Enforce Consensus Capability config field key_id #892
Conversation
f04a018
to
2d39657
Compare
2d39657
to
6f9db6b
Compare
6f9db6b
to
bf7de3a
Compare
bf7de3a
to
511658e
Compare
@@ -12,7 +12,7 @@ type config struct { | |||
ReportID string `mapstructure:"report_id" json:"report_id" jsonschema:"required,pattern=^[a-f0-9]{4}$"` | |||
RequestTimeoutMS int64 `mapstructure:"request_timeout_ms" json:"request_timeout_ms"` | |||
|
|||
KeyID string `mapstructure:"key_id" json:"key_id"` | |||
KeyID string `mapstructure:"key_id" json:"key_id,omitempty" jsonschema:"required"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from this, we should also check if the desired key ID is available, probably somewhere very early in the consensus step. I'm not sure if that's easy without some refactoring...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When you say if the desired key ID is available, we would use this key ID from the workflow spec, where would we be checking against?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Against all possible bundle IDs available in OCR3OnchainKeyringMultiChainAdapter (essentially in Keystore). That's why it might be a bit trickier because I don't think we have easy access to that data where we need to run a check... but maybe I'm wrong
511658e
to
49d2c70
Compare
49d2c70
to
08e3df5
Compare
No description provided.