Recover the OAuth storage slice from f6079e9d and the missing workflow persistence error handling from f07c314e, adapted to the current step contract. Require encryption for OAuth token storage and verify RPC round trips and task-grant denial.
29 lines
1.0 KiB
Go
29 lines
1.0 KiB
Go
package archied
|
|
|
|
import (
|
|
"github.com/samcharles93/archie-core/internal/domain/storecontract"
|
|
"github.com/samcharles93/archie-core/internal/infrastructure/bindingcipher"
|
|
"github.com/samcharles93/archie-core/internal/infrastructure/postgres"
|
|
)
|
|
|
|
// eventCaptureStore is every surface the State Store serves from the
|
|
// event-capture tables, plus the tool_call projection it writes through.
|
|
type eventCaptureStore interface { //nolint:interfacebloat // composite of the store contracts the event-capture tables serve
|
|
storecontract.CaptureStore
|
|
storecontract.MappingStore
|
|
storecontract.BindingStore
|
|
storecontract.BindingDispatcher
|
|
storecontract.MappingMatchRecorder
|
|
storecontract.PlaybookDispatcher
|
|
storecontract.EventTypeStore
|
|
storecontract.SourceStore
|
|
storecontract.HarnessSecretStore
|
|
toolCallWriter
|
|
}
|
|
|
|
// openEDAStore serves the event-capture store from the State Store's Postgres
|
|
// pool, sealing binding secrets with cipher.
|
|
func (b *boot) openEDAStore(cipher bindingcipher.BindingCipher) {
|
|
b.eda = postgres.NewEDA(b.pg, cipher)
|
|
}
|