Keep Mongo operations online across Vault credential rotation
This commit is contained in:
1 parent
80d6917aa7
commit
23f7b78c3b
30 files changed
+1290
-202
No files matched your search
@@ -1,16 +1,16 @@
|
||||
package verification
|
||||
|
||||
import (
|
||||
verificationmodel "git.sendico.io/tech/sxchnge/product/verification/model"
|
||||
"strings"
|
||||
|
||||
verificationmodel "git.sendico.io/tech/sxchnge/product/verification/model"
|
||||
ri "git.sendico.io/tech/sxchnge/shared/database/repository/index"
|
||||
"git.sendico.io/tech/sxchnge/shared/database/source"
|
||||
"git.sendico.io/tech/sxchnge/shared/database/template"
|
||||
"git.sendico.io/tech/sxchnge/shared/database/transaction"
|
||||
"git.sendico.io/tech/sxchnge/shared/logging"
|
||||
"git.sendico.io/tech/sxchnge/shared/ratelimit/store"
|
||||
"git.sendico.io/tech/sxchnge/shared/service"
|
||||
"go.mongodb.org/mongo-driver/v2/mongo"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
@@ -29,7 +29,7 @@ const verificationContextIdempotencyIndexName = "uniq_verification_context_idemp
|
||||
|
||||
func Create(
|
||||
logger mlogger.Logger,
|
||||
db *mongo.Database,
|
||||
db source.Source,
|
||||
tf transaction.Factory,
|
||||
) (*verificationDB, error) {
|
||||
return CreateWithCollection(logger, db, tf, "")
|
||||
@@ -37,7 +37,7 @@ func Create(
|
||||
|
||||
func CreateWithCollection(
|
||||
logger mlogger.Logger,
|
||||
db *mongo.Database,
|
||||
db source.Source,
|
||||
tf transaction.Factory,
|
||||
collection string,
|
||||
) (*verificationDB, error) {
|
||||
|
||||
Reference in new issue
Block a user