bottlerocket-os / bottlerocket-os/bottlerocket-settings-sdk

Change `proto1` to operate over stdin

Open
#35 0 comments 0 reactions 1 assignee Claimed by @sam-berning View on GitHub
Dominant language
Rust
Stars
5
Forks
36
Avg merge
4d 12h
Merged PRs (30d)
2

Description

### Context

It's possible with the CLI-only interface for `proto1` that a settings extension command with large JSON values would exceed the max command buffer size on bottlerocket, 128KB.

In order to avoid this issue, we should change `proto1` to accept input from stdin.

### Definition of done

Settings extensions accept the following input mode:

```bash
echo '{"some": "json"}' | extension proto1 set
```

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.