feat(assessment): watermark the task text of real attempts
This commit is contained in:
1 parent
24b64d698a
commit
c975a0d506
57 files changed
+2429
-92
No files matched your search
@@ -56,5 +56,12 @@ func newAssessmentHandler(
|
||||
return nil, nil, fmt.Errorf("bootstrap.newAssessmentHandler - create signal observer: %w", err)
|
||||
}
|
||||
service.WithSignalObserver(observer)
|
||||
return v1.NewAssessmentHandler(service), pool.Close, nil
|
||||
// The watermark is derived from the identity keyring like the signal
|
||||
// digests: the same secret, a key of its own, and no new setting.
|
||||
watermarker, err := assessment.NewWatermarker(keyring)
|
||||
if err != nil {
|
||||
pool.Close()
|
||||
return nil, nil, fmt.Errorf("bootstrap.newAssessmentHandler - create watermarker: %w", err)
|
||||
}
|
||||
return v1.NewAssessmentHandler(service).WithPresenter(watermarker), pool.Close, nil
|
||||
}
|
||||
Reference in new issue
Block a user