Commit graph

1237 commits

Author SHA1 Message Date
Sander Declerck
59f8b55bda
Add a section about troubleshooting when the package is already in the cache 2026-01-08 08:00:26 +01:00
Uriel Corfa
3bfca9e296
Propagate command-not-found errors when invoking wrapped commands
Before this change, if a package manager was not installed, safe-chain still
sets the function and when invoked, the wrapper will invoke safe-chain, which
will exit with error code 127 when it fails to invoke the wrapped command. As an
example (with a shell prompt that shows $? when non-zero):

```
$ type -f pip
bash: type: pip: not found
1$ pip
127$
```

With this patch, the wrapper first checks for the existence of the wrapped
command (ignoring functions), and if no such command exists, it instructs the
shell to invoke it anyway. This results in the shell failing to find the
command, and reporting an error as if the wrapper function wasn't there:

```
$ source init-posix.sh
$ type -f pip
bash: type: pip: not found
1$ pip
Command 'pip' not found, but can be installed with:
sudo apt install python3-pip
127$
```
2026-01-07 17:18:48 +01:00
Sander Declerck
4a63f976ae
Merge pull request #280 from AikidoSec/fix-broken-compatibility-in-install-beta
Fix broken compatibility in install
2026-01-07 14:40:36 +01:00
Sander Declerck
43eda4fadf
Add deprecation message to powershell version as well 2026-01-07 14:20:16 +01:00
Sander Declerck
6820e1e76c
Fix broken compatibility in install 2026-01-07 14:09:18 +01:00
Sander Declerck
094d1416ca
Merge pull request #272 from graemechapman/patch-1
fix: Allow running commands if safe-chain npm package is not installed
2026-01-07 12:03:19 +01:00
Sander Declerck
b215474271
Merge pull request #273 from AikidoSec/docker-standalone-exec
Safe-chain standalone binaries for docker
2026-01-07 12:01:33 +01:00
Sander Declerck
b2a5336556
Use latest build of safe-chain in CI again 2026-01-07 11:39:22 +01:00
Sander Declerck
7a4b7057bc
Test on gh actions 2026-01-07 09:40:40 +01:00
Sander Declerck
8fc3727b88
Merge branch 'docker-standalone-exec' into docker-standalone-exec-beta 2026-01-07 08:55:34 +01:00
Sander Declerck
b19d67f853
Add linuxstatic artifact to release 2026-01-07 08:55:20 +01:00
Sander Declerck
17d567d0bb
Merge branch 'docker-standalone-exec' into docker-standalone-exec-beta 2026-01-07 08:49:18 +01:00
Sander Declerck
ffaf7b60b6
Merge branch 'main' into docker-standalone-exec 2026-01-07 08:48:30 +01:00
bitterpanda
0a7b096abf
Merge pull request #277 from AikidoSec/add-troubleshooting-docs
Add troubleshooting docs
2026-01-06 16:07:51 +01:00
Sander Declerck
504b3ca596
Update Conflicting Installations note 2026-01-06 16:04:15 +01:00
Sander Declerck
e8f993623b
Add troubleshooting docs 2026-01-06 15:48:15 +01:00
bitterpanda
5ebbf5c6b2
Merge pull request #276 from AikidoSec/cleanup-nvm-in-install-script-beta 2026-01-06 13:06:40 +01:00
Sander Declerck
1f4e50df9d
Checkout code in set version 2026-01-06 11:51:01 +01:00
Sander Declerck
66c1da0f1e
Rework release workflow (split npm and github release), and skip npm publish for prereleases 2026-01-06 11:48:06 +01:00
Sander Declerck
4e098bcff7
Change order of removal for npm-based installations 2026-01-06 11:23:47 +01:00
Sander Declerck
4aca6ef86a
Restore publish script 2026-01-06 10:54:34 +01:00
Sander Declerck
d7d5bacd21
Remove warning from readme 2026-01-06 10:53:32 +01:00
Sander Declerck
5a28d6646f
Update comments 2026-01-06 10:53:24 +01:00
Sander Declerck
10a2407b32
Source nvm in script 2026-01-06 10:43:15 +01:00
Sander Declerck
6bbd3f5955
Add nvm detection to uninstall script 2026-01-06 10:35:10 +01:00
Sander Declerck
efe3b24ab9
Comment npm publish step 2026-01-06 10:07:40 +01:00
Sander Declerck
24230da4a7
Add nvm safe-chain uninstallation in install script 2026-01-06 10:05:52 +01:00
Sander Declerck
eb32da49aa
Add extra artifact for linuxstatic, change install script to use it. 2026-01-06 09:05:32 +01:00
Sander Declerck
50f20cc30d
Run tests with 0.0.1-docker-linux-exec-beta 2026-01-06 09:05:32 +01:00
Sander Declerck
ff4618602a
Add extra artifact for linuxstatic, change install script to use it. 2026-01-06 09:02:22 +01:00
Sander Declerck
d530b9a1de
Run tests with 0.0.1-docker-linux-exec-beta 2026-01-06 08:17:35 +01:00
Sander Declerck
52a096b739
Re-order steps 2026-01-05 15:47:31 +01:00
Sander Declerck
35ca2233f8
Use linuxstatic target for linux 2026-01-05 15:45:57 +01:00
Sander Declerck
40b8638ddd
Fix artifact name 2026-01-05 14:24:19 +01:00
Sander Declerck
a910851422
Build for linuxstatic and alpine 2026-01-05 14:15:28 +01:00
Sander Declerck
8bfbe1c77d
Merge pull request #232 from galargh/pip-custom-registries
feat: allow python custom registries configuration
2026-01-05 14:01:51 +01:00
Sander Declerck
74c57cd86a
Merge pull request #262 from AikidoSec/safe-chain-verify-command
Add command to verify safe-chain is intercepting the package managers commands
2026-01-05 09:10:05 +01:00
galargh
b23ba9d9c4 chore: update test parametrization 2026-01-02 10:39:15 +01:00
Graeme Chapman
c510d886a9
Simplify command execution in init-posix.sh 2025-12-31 10:57:08 +00:00
Graeme Chapman
a0e19818a0
fix: Allow running commands if safe-chain npm package is not installed 2025-12-31 10:18:58 +00:00
bitterpanda
acb4aa1a13
Merge pull request #271 from AikidoSec/feature/jenkins 2025-12-30 20:22:31 +01:00
Reinier Criel
bc4370348f Adapt per review 2025-12-30 11:19:00 -08:00
Reinier Criel
8d0dcd0068 Small fix 2025-12-30 10:11:25 -08:00
Reinier Criel
7bfbe1376b Jenkins CI pipeline 2025-12-30 09:22:03 -08:00
Sander Declerck
25221b5271
Merge pull request #264 from jassanw/proxy-use-connect-request-port
Fix proxy request to respect HTTPS port from CONNECT request
2025-12-24 11:34:22 +01:00
galargh
c53a7347e2 feat: allow python custom registries configuration through config file 2025-12-22 13:49:45 +01:00
galargh
39e2001d97 Merge remote-tracking branch 'origin/main' into pip-custom-registries 2025-12-22 13:27:04 +01:00
jassanw
3b6beb7f16 default to port 443 if port is null or empty 2025-12-19 18:49:58 -08:00
cherryace
bd19f477f7 Using port from req url when creating proxy request instead of hardcoded port 443 2025-12-19 17:57:33 -08:00
Sander Declerck
b571aad6a0
Add command to verify safe-chain is intercepting the package managers commands 2025-12-19 16:18:21 +01:00