Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added socket keep alive option (SO_KEEPALIVE) to Cassandra plugin #6201

Merged
merged 1 commit into from
Feb 10, 2019
Merged

Added socket keep alive option (SO_KEEPALIVE) to Cassandra plugin #6201

merged 1 commit into from
Feb 10, 2019

Conversation

andrejvanderzee
Copy link
Contributor

@andrejvanderzee andrejvanderzee commented Feb 9, 2019

Firewalls configured with an idle connection timeout can close connections between Vault and Cassandra nodes. This results in stale connection at the Vault side, because it never receives a TCP FIN packet, and regards the connection as healthy. Such stale connections cause timeouts when a Vault client reads the role for issuing new Cassandra credentials, resulting in a broken Cassandra secret engine. The SO_KEEPALIVE socket option prevents such firewalls to close connections, because the kernel at Vault side will send duplicate ACK messages every interval.

This pull request adds the socket_keep_alive duration option to the Cassandra plugin and solves the above issue.

@briankassouf briankassouf added this to the 1.0.4 milestone Feb 9, 2019
Copy link
Contributor

@briankassouf briankassouf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good! Thanks!

@jefferai jefferai modified the milestones: 1.0.4, 1.0.3 Feb 10, 2019
@jefferai jefferai merged commit d41c726 into hashicorp:master Feb 10, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants