Repository navigation
Commit 481f2fc
authored
Enables comprehensive AWS diagnostics with piped commands while maintaining security.
Changes:
- Add 7 utility command permissions for piping/processing (jq, awk, sed, column, less, more, date)
- Simplify AWS permissions: replace 9 verb-specific patterns with single "aws*" allow
- Preserve all 26 AWS write-deny patterns (create, delete, put, update, modify, etc.)
- Apply changes identically to both opencode.work.json and opencode.personal.json
This enables commands like:
- aws cloudwatch get-metric-statistics ... | head -50
- aws logs filter-log-events ... | jq '.events'
While still blocking write operations:
- aws ec2 terminate-instances (denied)
- aws rds delete-db-instance (denied)
1 parent 8d46e18 commit 481f2fc
2 files changed
Lines changed: 28 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
825 | 825 | | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
835 | 834 | | |
836 | 835 | | |
837 | 836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
827 | 827 | | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
837 | 836 | | |
838 | 837 | | |
839 | 838 | | |
| |||
0 commit comments