Aurora MySQL reader: connection test succeeds but opening the connection fails in v0.41.0
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by tracing the MySQL connection path for Aurora reader profiles, comparing the successful connection test with the workspace connection that fails when the server does not make the session read-only. The report gives the reproduction context and relevant policy configuration, but does not name source files or tests; locate the session read-only check and its coverage. Done means the reader opens successfully while preserving the expected read-only behavior.
Written by the indexing model from the issue text.
Description
Summary
When connecting to an AWS Aurora MySQL reader through an SSH bastion, Test connection succeeds, but opening the connection in the workspace fails with:
db.connection: Other: the server did not make the session read-only
I originally reported this directly to the maintainer, who suggested opening a GitHub issue so we can continue the discussion here.
Version
datarig 0.41.0 (installed through Homebrew).
OS and terminal
- macOS 26.5.2
- Ghostty 1.4.0
Database and connection
- AWS Aurora MySQL reader
- Connection through an SSH bastion
- Exact database engine version is not independently confirmed in this report.
Sequence of events observed
Before this happened, I had already registered a connection to a test database in datarig. That is background context from the original report; I have not confirmed that the existing test connection contributes to the failure or is required to reproduce it.
- I added a new connection profile for the production Aurora MySQL reader through the SSH bastion.
- I ran Test connection for that reader profile. The test succeeded.
- I then tried to open that same reader connection in the workspace. Opening it failed.
- I quit and restarted datarig. At first I thought the connection was working, but after checking again I confirmed it still failed. Restarting did not resolve the problem.
- I checked
errors.logand founddb.connection: Other: the server did not make the session read-only. - During the discussion with the maintainer, I checked the profile and policy configuration. The settings are recorded below.
The confirmed symptom is that testing the reader profile succeeds while opening its actual workspace connection fails. The role, if any, of the previously registered test connection has not been established.
Expected behaviour
The reader connection opens successfully and allows browsing metadata and running read queries, subject to the server's permissions and the profile's policy.
Actual behaviour
The connection test succeeds, but opening the actual connection fails. Restarting the app initially appeared to help, but on checking again the connection still failed, so restarting is not a confirmed workaround.
The error log contained:
1794814695 db.connection: Other: the server did not make the session read-only
Configuration checked at the time of the report
The reader profile had no startup_sql, legacy session_sql, or startup preset reference. It used policy = "prod"; the corresponding policy table was empty:
# Relevant fields only; connection details omitted.
[[connections]]
driver = "mysql"
policy = "prod"
[policy.prod]
There was no explicit read_only = true, no policy-level Startup SQL reference, and no [startup.*] preset definition in the configuration at that point. This snippet is an excerpt, not a complete connection configuration.
- Dominant language
- Rust
- Stars
- 166
- Forks
- 8
- Avg merge
- 4h 24m
- Merged PRs (30d)
- 291
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DokaDev/datarig
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
DokaDev/datarig#544 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 Half a day Newbie friendliness 55/100
Maintainers usually reply within 1 day
Similar issues
-
bug P2: medium
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
tests
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
vfarcic/dot-agent-deck#2512 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
pop-os/cosmic-applets#1641 ·
Maintainers usually reply within 3 days