getsops / getsops/sops

Option to passthrough CTRL-C/SIGINT

Open
#1,209 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
23.1k
Forks
1.1k
Avg merge
1d 11h
Merged PRs (30d)
9

Description

I am using sops to start psql (PostgreSQL client) sessions.

The thing is now that psql handles CTRL-C, since it is an interactive shell by itself (e.g. just aborts editing of a commend and returning to a clean DB prompt).

When inside an sops exec-env ... 'psql -w, that behavior is broken since sops seems to handle the interrupt request and simply drops me out of the psql session.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing signal handling in the sops exec-env command and reproduce the behavior with an interactive psql session. Done means an option allows CTRL-C/SIGINT to reach psql without sops terminating the session unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, postgresql
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.