When following https://blog.ferretdb.io/run-ferretdb-postgres-documentdb-extension-cnpg-kubernetes/ CNPG operator overrides applied changes breaking find*** Functionality
Author: meshpaulCreated Nov 19, 2025Updated Dec 8, 2025
Labelscode/bugnot ready
FerretDB, PostgreSQL, and DocumentDB versions
{
db.serverStatus()
{
host: 'ferretdb-6b77497dbd-8l778',
version: '7.0.77',
process: 'ferretdb',
pid: Long('1'),
uptime: 375931.161997486,
uptimeMillis: Long('375931161'),
uptimeEstimate: Long('375931'),
localTime: ISODate('2025-11-19T03:56:21.797Z'),
freeMonitoring: { state: 'undecided' },
metrics: {
commands: {
drop: { total: Long('1'), failed: Long('1') },
createIndexes: { total: Long('1603'), failed: Long('1469') },
atlasVersion: { total: Long('9'), failed: Long('9') },
delete: { total: Long('4'), failed: Long('0') },
saslContinue: { total: Long('471'), failed: Long('0') },
findAndModify: { total: Long('3'), failed: Long('0') },
aggregate: { total: Long('43'), failed: Long('0') },
listCollections: { total: Long('18'), failed: Long('0') },
getParameter: { total: Long('7'), failed: Long('0') },
update: { total: Long('20'), failed: Long('0') },
listDatabases: { total: Long('10'), failed: Long('0') },
insert: { total: Long('55'), failed: Long('0') },
count: { total: Long('113'), failed: Long('112') },
ping: { total: Long('66'), failed: Long('0') },
saslStart: { total: Long('2'), failed: Long('2') },
getLog: { total: Long('7'), failed: Long('0') },
create: { total: Long('753'), failed: Long('0') },
find: { total: Long('919'), failed: Long('8') },
hello: { total: Long('8922'), failed: Long('0') },
ismaster: { total: Long('539'), failed: Long('0') },
buildInfo: { total: Long('9'), failed: Long('0') },
endSessions: { total: Long('23'), failed: Long('0') },
serverStatus: { total: Long('1'), failed: Long('0') },
isMaster: { total: Long('10'), failed: Long('0') }
}
},
catalogStats: {
collections: 0,
clustered: 0,
timeseries: 0,
views: 0,
internalCollections: 0,
internalViews: 0
},
ferretdb: {
version: 'v2.7.0',
gitVersion: '0d5eb3343a50b800634cc08ace608bb6f3a3f74b',
buildEnvironment: {
'-buildmode': 'exe',
'-compiler': 'gc',
'-trimpath': 'true',
CGO_ENABLED: '0',
GOAMD64: 'v1',
GOARCH: 'amd64',
GOOS: 'linux',
'go.runtime': 'go1.25.4',
'go.version': 'go1.25.4',
vcs: 'git',
'vcs.modified': 'true',
'vcs.revision': '0d5eb3343a50b800634cc08ace608bb6f3a3f74b',
'vcs.time': '2025-11-10T17:18:24Z'
},
debug: false,
package: 'docker',
postgresql: 'PostgreSQL 15.14 (Debian 15.14-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit',
documentdb: '0.107.0 gitref: HEAD sha:e63835403d buildId:0'
},
ok: 1
}Environment
- OS: Debian GNU/Linux 12 (bookworm)
- Deployment: Kubernetes/containerd ferretdb/ferretdb:2.7.0
- Deployment details: All Details were followed from this article https://blog.ferretdb.io/run-ferretdb-postgres-documentdb-extension-cnpg-kubernetes/
the Prosgress/DocumentDb deployed followed same manifest for exception of aligning to 2.7.0 deployment of ferretdb/postgres-documentdb:15-0.107.0-ferretdb-2.7.0
What did you do?
Used mongosh to connect successfully and run the following command
db.test.insertOne({ hello: 'world' })
result
{ acknowledged: true, insertedId: ObjectId('691d39880544637143299801') }
then ran db.test.find()
resulting MongoServerError[InternalError]: fe_sendauth: no password supplied
Same for 'db.test.findOne()resulting infe_sendauth: no password supplied`
What did you expect to see?
at least one value from collection
What did you see instead?
resulting in fe_sendauth: no password supplied
And on the ferretDB the following was observed
2025-11-19T04:01:23.440Z INFO middleware/dispatcher.go:131 Command handled {"command":"insert","duration":"22.44777ms","handler":"documentdb","name":"middleware","result":"ok"}
2025-11-19T04:07:01.591Z ERROR documentdb/tracer.go:198 Query {"args":{"0":"sc-marketplace","1":"RawDocument<105>","2":0},"error":"ERROR: fe_sendauth: no password supplied (SQLSTATE 08006)","name":"documentdb","pid":535484,"sql":"SELECT cursorpage::bytea, continuation::bytea, persistconnection, cursorid FROM documentdb_api.find_cursor_first_page($1, $2::bytea, $3)","time":6763257}
2025-11-19T04:07:01.591Z ERROR mongoerrors/mongoerrors.go:127 Connection failure {"arg":"documentdb_api.find_cursor_first_page","error":"&pgconn.PgError{Severity:\"ERROR\", SeverityUnlocalized:\"ERROR\", Code:\"08006\", Message:\"fe_sendauth: no password supplied\", Detail:\"\", Hint:\"\", Position:0, InternalPosition:0, InternalQuery:\"\", Where:\"while executing command over libpq connection\", SchemaName:\"\", TableName:\"\", ColumnName:\"\", DataTypeName:\"\", ConstraintName:\"\", File:\"query_utils.c\", Line:766, Routine:\"PGConnReportError\"}","name":"documentdb"} Source: FerretDB/FerretDB