aws / aws/pg_tle

Allow clientauth extension to be used on a cluster with a Reader instance

Open
#296 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
410
Forks
41
Avg merge
18h 17m
Merged PRs (30d)
2

Description

## Describe the problem

* I have added a READER instance to my Aurora PostgreSQL v15 cluster, but users received an exception when the clientauth tried to insert/update on the client_lockout.failed_attempts table via the Reader instance.

## Describe the proposal

* Update the Insert/update command in the clientauth extension to catch the ReadOnly exception and log a special message to postgres/cloudwatch logs.
* I have submitted a PR from my fork with the proposed exception handling

## Describe alternatives

* Cannot currently use this extension on a cluster with Reader instances

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.