From 173e802291cdcfa6cb6703accd721b7b174a32fc Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 18 Nov 2026 15:16:57 +0100 Subject: [PATCH] update nono --- nono/pack-update-hints.json | 2 +- nono/profiles/.editorconfig | 2 + nono/profiles/codex.json | 93 +++--------------------------- nono/profiles/composer-dev.json | 8 +-- nono/profiles/default-local.json | 92 +---------------------------- nono/profiles/devel.json | 7 +-- nono/profiles/docker-dev.json | 43 +++----------- nono/profiles/docker-lockdown.json | 50 ++++++++++++++++ nono/profiles/git-ssh.json | 2 +- nono/profiles/git.json | 18 ++++++ nono/profiles/laravel.json | 4 +- 11 files changed, 95 insertions(+), 226 deletions(-) create mode 100644 nono/profiles/.editorconfig create mode 100644 nono/profiles/docker-lockdown.json create mode 100644 nono/profiles/git.json diff --git a/nono/pack-update-hints.json b/nono/pack-update-hints.json index 88926cf..4e96c8e 100644 --- a/nono/pack-update-hints.json +++ b/nono/pack-update-hints.json @@ -1,7 +1,7 @@ { "entries": { "nolabs-ai/codex": { - "last_check": "2026-11-12T12:36:48.166490579Z", + "last_check": "2026-11-17T10:53:12.569095006Z", "installed_at_check": "0.2.4", "latest": "0.2.4" } diff --git a/nono/profiles/.editorconfig b/nono/profiles/.editorconfig new file mode 100644 index 0000000..34bf1e7 --- /dev/null +++ b/nono/profiles/.editorconfig @@ -0,0 +1,2 @@ +[*.json] +indent_size = 2 diff --git a/nono/profiles/codex.json b/nono/profiles/codex.json index b67f58f..bdd9e05 100644 --- a/nono/profiles/codex.json +++ b/nono/profiles/codex.json @@ -1,93 +1,18 @@ { - "extends": [ - "nolabs-ai/codex" - ], "meta": { "name": "codex", "version": "1.0.0", "description": "Runtime-discovered path additions for codex", "author": "Henrik Hautakoski" }, - "security": { - "signal_mode": null, - "process_info_mode": null, - "ipc_mode": null, - "capability_elevation": null, - "approval_backends": {}, - "approval_defaults": null, - "wsl2_proxy_policy": null - }, - "groups": { - "include": [], - "exclude": [] - }, - "commands": { - "allow": [], - "deny": [] - }, - "filesystem": { - "allow": [], - "read": [], - "write": [], - "allow_file": [], - "read_file": [ - "/run/user/1000/bus" - ], - "write_file": [], - "unix_socket": [], - "unix_socket_bind": [], - "unix_socket_dir": [], - "unix_socket_dir_bind": [], - "unix_socket_subtree": [], - "unix_socket_subtree_bind": [], - "deny": [], - "bypass_protection": [], - "suppress_save_prompt": [] - }, + "extends": [ + "nolabs-ai/codex" + ], "network": { - "block": false, - "allow_http2": false, - "allow_domain": [], - "deny_domain": [], - "open_port": [], - "open_port_range": [], - "listen_port": [], - "listen_port_range": [], - "connect_port": [], - "no_proxy": [], - "custom_credentials": {}, - "tls_intercept": null, - "upstream_proxy": null, - "upstream_bypass": [], - "approval_backends": {}, - "approval_defaults": null - }, - "diagnostics": { - "suppress_system_services": [], - "redaction": { - "extra_env_vars": [] - }, - "network_denial_audit": {} - }, - "linux": { - "af_unix_mediation": null, - "sandbox_policy": null - }, - "env_credentials": {}, - "credential_capture": {}, - "credential_providers": {}, - "credential_routes": [], - "workdir": { - "access": "none" - }, - "hooks": {}, - "session_hooks": {}, - "rollback": { - "exclude_patterns": [], - "exclude_globs": [] - }, - "skipdirs": [], - "packs": [], - "command_args": [], - "unsafe_macos_seatbelt_rules": [] + "network_profile": "codex", + "allow_domain": [ + "chatgpt.com", + "ab.chatgpt.com" + ] + } } diff --git a/nono/profiles/composer-dev.json b/nono/profiles/composer-dev.json index 9ebd463..a838d80 100644 --- a/nono/profiles/composer-dev.json +++ b/nono/profiles/composer-dev.json @@ -1,7 +1,4 @@ { - "extends": [ - "devel", - ], "meta": { "name": "composer-dev" "version": "1.0.0", @@ -10,8 +7,7 @@ }, "filesystem": { "allow": [ - "$HOME/.cache/composer" - ], - "read": [] + "~/.cache/composer" + ] } } diff --git a/nono/profiles/default-local.json b/nono/profiles/default-local.json index d83380e..8e9ce93 100644 --- a/nono/profiles/default-local.json +++ b/nono/profiles/default-local.json @@ -1,101 +1,11 @@ { - "extends": [ - "default" - ], "meta": { "name": "default-local", "version": "1.0.0", "description": "Local defaults", "author": "Henrik Hautakoski" }, - "security": { - "signal_mode": null, - "process_info_mode": null, - "ipc_mode": null, - "capability_elevation": null, - "approval_backends": {}, - "approval_defaults": null, - "wsl2_proxy_policy": null - }, - "groups": { - "include": [], - "exclude": [] - }, - "commands": { - "allow": [], - "deny": [] - }, - "filesystem": { - "allow": [], - "read": [], - "write": [], - "allow_file": [], - "read_file": [], - "write_file": [], - "unix_socket": [], - "unix_socket_bind": [], - "unix_socket_dir": [], - "unix_socket_dir_bind": [], - "unix_socket_subtree": [], - "unix_socket_subtree_bind": [], - "deny": [ - "/home/pnx/.ssh", - "/home/pnx/.aws", - "/home/pnx/.gnupg", - "/home/pnx/.docker", - "/home/pnx/.local/share/keyrings" - ], - "bypass_protection": [], - "suppress_save_prompt": [ - "~/.docker", - "///var/run/docker.sock", - "/run/docker.sock" - ] - }, - "network": { - "block": false, - "allow_http2": false, - "allow_domain": [], - "deny_domain": [], - "open_port": [], - "open_port_range": [], - "listen_port": [], - "listen_port_range": [], - "connect_port": [], - "no_proxy": [], - "custom_credentials": {}, - "tls_intercept": null, - "upstream_proxy": null, - "upstream_bypass": [], - "approval_backends": {}, - "approval_defaults": null - }, - "diagnostics": { - "suppress_system_services": [], - "redaction": { - "extra_env_vars": [] - }, - "network_denial_audit": {} - }, "linux": { "af_unix_mediation": "pathname", - "sandbox_policy": null - }, - "env_credentials": {}, - "credential_capture": {}, - "credential_providers": {}, - "credential_routes": [], - "workdir": { - "access": "readwrite" - }, - "hooks": {}, - "session_hooks": {}, - "rollback": { - "exclude_patterns": [], - "exclude_globs": [] - }, - "skipdirs": [], - "packs": [], - "command_args": [], - "unsafe_macos_seatbelt_rules": [] + } } diff --git a/nono/profiles/devel.json b/nono/profiles/devel.json index 8f1e8dc..e42f641 100644 --- a/nono/profiles/devel.json +++ b/nono/profiles/devel.json @@ -1,14 +1,13 @@ { - "extends": [ - "default-local", - "git-ssh" - ], "meta": { "name": "devel" "version": "1.0.0", "description": "Generic development profile", "author": "Henrik Hautakoski" }, + "extends": [ + "git" + ], "network": { "network_profile": "developer" } diff --git a/nono/profiles/docker-dev.json b/nono/profiles/docker-dev.json index ea25043..b1c4f84 100644 --- a/nono/profiles/docker-dev.json +++ b/nono/profiles/docker-dev.json @@ -1,44 +1,15 @@ { - "extends": "default-local", "meta": { - "name": "docker-dev" + "name": "docker-dev", "version": "1.0.0", "description": "Docker development profile", "author": "Henrik Hautakoski" }, - "linux": { - "af_unix_mediation": "pathname" - }, - "command_policies": { - "commands": { - "docker": { - "from": { - "session": { - "sandbox": { - "fs_read": ["."], - "unix_socket_bind": [ - "/run/docker.sock", - "/run/run/docker.sock" - ] - }, - "invocation_policy": { - "default": "deny", - "allow": [ - { - "argv": { - "exact": ["ps"] - } - }, - { - "argv": { - "exact": ["compose", "ps"] - } - } - ] - } - } - } - } - } + "filesystem": { + "read": [ + "$HOME/.docker/config.json", + "/usr/libexec/docker/cli-plugins/docker-compose", + "/usr/libexec/docker/cli-plugins/docker-buildx" + ] } } diff --git a/nono/profiles/docker-lockdown.json b/nono/profiles/docker-lockdown.json new file mode 100644 index 0000000..1f12512 --- /dev/null +++ b/nono/profiles/docker-lockdown.json @@ -0,0 +1,50 @@ +{ + "meta": { + "name": "docker-dev", + "version": "1.0.0", + "description": "Lock down docker", + "author": "Henrik Hautakoski" + }, + "filesystem": { + "deny": [ + "/run/docker.sock", + "/var/run/docker.sock" + ] + }, + "command_policies": { + "commands": { + "docker": { + "from": { + "session": { + "sandbox": { + "fs_read": [ + ".", + "/usr/libexec/docker/cli-plugins" + ], + "unix_socket_bind": [ + "/run/docker.sock", + "/var/run/docker.sock" + ], + "exec_paths": [ + "/usr/libexec/docker/cli-plugins/docker-compose", + "/usr/libexec/docker/cli-plugins/docker-buildx" + ], + }, + "invocation_policy": { + "default": "deny", + "allow": [ + { "argv": { "exact": ["version"] } }, + { "argv": { "exact": ["ps"] } }, + { "argv": { "exact": ["compose"] } }, + { "argv": { "prefix": ["info"] } }, + { "argv": { "prefix": ["compose", "ps"] } }, + { "argv": { "prefix": ["compose", "version"] } }, + { "argv": { "prefix": ["compose", "exec"] } } + ] + } + } + } + } + } + } +} diff --git a/nono/profiles/git-ssh.json b/nono/profiles/git-ssh.json index 3a91091..61addae 100644 --- a/nono/profiles/git-ssh.json +++ b/nono/profiles/git-ssh.json @@ -57,5 +57,5 @@ } } } - } + }, } diff --git a/nono/profiles/git.json b/nono/profiles/git.json new file mode 100644 index 0000000..13350cb --- /dev/null +++ b/nono/profiles/git.json @@ -0,0 +1,18 @@ +{ + "meta": { + "name": "git" + "version": "1.0.0", + "description": "access to git", + "author": "Henrik Hautakoski" + }, + "groups": { + "include": [ + "git_config" + ] + }, + "filesystem": { + "read_file": [ + "$HOME/.config/git/delta.gitconfig" + ], + } +} diff --git a/nono/profiles/laravel.json b/nono/profiles/laravel.json index 31fac81..0330e25 100644 --- a/nono/profiles/laravel.json +++ b/nono/profiles/laravel.json @@ -1,9 +1,7 @@ { "extends": [ "devel", - "docker-dev", - "composer-dev", - "node-dev" + "docker-dev" ], "meta": { "name": "laravel",