Skip to content

Commit 481f2fc

Browse files
authored
feat(#70): enhance research-specialist permissions for AWS diagnostics (#71)
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

File tree

‎opencode.personal.json‎

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -816,22 +816,21 @@
816816
"git status*": "allow",
817817
"git log*": "allow",
818818
"git show*": "allow",
819-
"git diff*": "allow",
820-
"git add*": "deny",
821-
"git commit*": "deny",
822-
"git push*": "deny",
823-
"git pull*": "deny",
824-
"git merge*": "deny",
819+
"git diff*": "allow",
820+
"git add*": "deny",
821+
"git commit*": "deny",
822+
"git push*": "deny",
823+
"git pull*": "deny",
824+
"git merge*": "deny",
825825
"git rebase*": "deny",
826-
"aws * describe* *": "allow",
827-
"aws * list* *": "allow",
828-
"aws * get* *": "allow",
829-
"aws * search* *": "allow",
830-
"aws * lookup* *": "allow",
831-
"aws * show* *": "allow",
832-
"aws logs filter* *": "allow",
833-
"aws logs describe* *": "allow",
834-
"aws logs get* *": "allow",
826+
"jq*": "allow",
827+
"awk*": "allow",
828+
"sed*": "allow",
829+
"column*": "allow",
830+
"less*": "allow",
831+
"more*": "allow",
832+
"date*": "allow",
833+
"aws*": "allow",
835834
"aws * create*": "deny",
836835
"aws * delete*": "deny",
837836
"aws * put*": "deny",

‎opencode.work.json‎

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -818,22 +818,21 @@
818818
"git status*": "allow",
819819
"git log*": "allow",
820820
"git show*": "allow",
821-
"git diff*": "allow",
822-
"git add*": "deny",
823-
"git commit*": "deny",
824-
"git push*": "deny",
825-
"git pull*": "deny",
826-
"git merge*": "deny",
821+
"git diff*": "allow",
822+
"git add*": "deny",
823+
"git commit*": "deny",
824+
"git push*": "deny",
825+
"git pull*": "deny",
826+
"git merge*": "deny",
827827
"git rebase*": "deny",
828-
"aws * describe* *": "allow",
829-
"aws * list* *": "allow",
830-
"aws * get* *": "allow",
831-
"aws * search* *": "allow",
832-
"aws * lookup* *": "allow",
833-
"aws * show* *": "allow",
834-
"aws logs filter* *": "allow",
835-
"aws logs describe* *": "allow",
836-
"aws logs get* *": "allow",
828+
"jq*": "allow",
829+
"awk*": "allow",
830+
"sed*": "allow",
831+
"column*": "allow",
832+
"less*": "allow",
833+
"more*": "allow",
834+
"date*": "allow",
835+
"aws*": "allow",
837836
"aws * create*": "deny",
838837
"aws * delete*": "deny",
839838
"aws * put*": "deny",

0 commit comments

Comments
 (0)