In summary, it appears that something around CommitHook ends up calling CreateSecret, which ends up doing a Mongo query, and Mongo is returning "Invalid Regex".
I haven't found a smoking gun there, but I do see that $regex is used extensively in 'state/secrets.go':
$ rg '\$regex'
In summary, it appears that something around CommitHook ends up calling CreateSecret, which ends up doing a Mongo query, and Mongo is returning "Invalid Regex".
I haven't found a smoking gun there, but I do see that $regex is used extensively in 'state/secrets.go':
$ rg '\$regex'
state/secrets.go "%s/.*" , uri.ID) }}}}).Select( "%s/%s" , uri.ID, revisionRegexp)}}, "%s/.*" , uri.ID) }}}}).Select( "%s/.*" , uri.ID)}}, "%s#.*" , uri.ID)}}, "%s#.*" , uri.ID), bson.M{ "_id": bson.M{"$regex": keyPattern} }).Count( ) "%s#.*" , uri.ID)}}}}, "%s#.*" , uri.ID)}}, "%s#.*" , uri.ID)}}, {"consumer- tag", bson.D{{"$regex", match}}}} ollection. Find(bson. D{{"_id" , bson.D{{"$regex", idSnippet} }}}).All( &docs) ollection. Find(bson. D{{"_id" , bson.D{{"$regex", q}}}}).All(&docs) {"consumer- tag", bson.D{{"$regex", match}}}}
622: bson.D{{"$regex", fmt.Sprintf(
650: "_id", bson.D{{"$regex", fmt.Sprintf(
723: bson.D{{"$regex", fmt.Sprintf(
738: "_id", bson.D{{"$regex", fmt.Sprintf(
747: "_id", bson.D{{"$regex", fmt.Sprintf(
904: "$regex": fmt.Sprintf(
1164: q = bson.D{{"_id", bson.D{{"$regex", uri.ID + "/.*"}}}}
1381: count, err := col.Find(
1392: Id: bson.M{"$regex": keyPattern},
1461: q := bson.D{{"_id", bson.D{{"$regex", id}}}}
1579: {{"_id", bson.D{{"$regex", fmt.Sprintf(
1602: "_id", bson.D{{"$regex", fmt.Sprintf(
1615: "_id", bson.D{{"$regex", fmt.Sprintf(
1662: q := bson.D{
1856: q := bson.D{{"_id", bson.D{{"$regex", key}}}}
1884: err := secretConsumerC
1899: err := secretConsumerC
1958: w.matchQuery = bson.D{
2376: "_id": bson.M{"$regex": st.docID(uri.ID + "#.*")},