cockroachdb / cockroachdb/cockroach

security: TestRotateCerts fails when pointed to a secondary tenant

Open
#110,007 0 comments 0 reactions 0 assignees View on GitHub
A-multitenancy A-security C-bug T-db-server
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

Found while working on #110001.

**Describe the problem**

After `TestRotateCerts` is modify to use `.ApplicationLayer()` it starts failing as follows when pointed to a secondary tenant:

```
certs_rotation_test.go:129: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "Cockroach CA")
```

**Expected behavior**

The behavior should be the same regardless of whether a secondary tenant is used or not.

Epic CRDB-38970

Jira issue: CRDB-31214

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.