Commit graph

880 commits

Author SHA1 Message Date
Sander Declerck
d86246a71d
Handle code quality comments 2026-02-11 14:23:53 +01:00
Sander Declerck
fa94784130
Move download name construction to os installer function 2026-02-11 14:23:52 +01:00
Sander Declerck
27980aec82
Restructure code into separate files 2026-02-11 14:23:52 +01:00
Sander Declerck
d03a3a3a4b
Improve output 2026-02-11 14:23:52 +01:00
Sander Declerck
bee196cc55
Check if the agents service is running before starting it 2026-02-11 14:23:52 +01:00
Sander Declerck
0be42c8132
Parse cli args in ultimate installation 2026-02-11 14:23:52 +01:00
Sander Declerck
14ff245924
Uninstall safe-chain agent if it's there, before re-installing 2026-02-11 14:23:51 +01:00
Sander Declerck
2bfce02e66
Fix linting 2026-02-11 14:23:51 +01:00
Sander Declerck
8410b94b4c
Improve updating existing agent install 2026-02-11 14:23:51 +01:00
Sander Declerck
7f6ce79f44
Overwrite the agent if it's already installed. 2026-02-11 14:23:50 +01:00
Sander Declerck
2a649c5ef8
Start and stop safe-chain agent's Windows service. 2026-02-11 14:23:50 +01:00
Sander Declerck
dba101daa7
Add ultimate installer for Windows 2026-02-11 14:23:50 +01:00
Uriel Corfa
b1fa9f5492
Add the same handler for fish 2026-02-11 14:23:50 +01:00
Uriel Corfa
11d9e26a2d
init-posix: preserve arguments when exec'ing the original_cmd 2026-02-11 14:23:50 +01:00
Uriel Corfa
607b4ee87d
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-02-11 14:23:49 +01:00
Sander Declerck
20cc62d6e1
Only allow wildcards for scoped packages (@scope/*) 2026-02-11 14:23:49 +01:00
Sander Declerck
2d609066c8
Allow trailing * for wildcard matching 2026-02-11 14:23:49 +01:00
Sander Declerck
d7a9884ff6
Allow to exclude packages from the minimum package age 2026-02-11 14:23:49 +01:00
Reinier Criel
4ef4218eb5
Remove comment 2026-02-11 14:23:49 +01:00
Reinier Criel
5c431291c7
Fix some logic 2026-02-11 14:23:48 +01:00
Reinier Criel
b7f793f1f9
Attempted fix for powershell swallowing '--' 2026-02-11 14:23:48 +01:00
bitterpanda
3210b68b43
Update packages/safe-chain/src/api/aikido.js 2026-02-11 14:23:48 +01:00
Sander Declerck
0e6d002b4c
Don't swallow error on retry 2026-02-11 14:23:48 +01:00
Sander Declerck
cf8e39c5fd
Handle pr comments 2026-02-11 14:23:48 +01:00
Sander Declerck
4a53a7b20d
Add tests for malware db retry 2026-02-11 14:23:47 +01:00
Sander Declerck
14e94dcb62
Retry downloading the malware database 3 times 2026-02-11 14:23:47 +01:00
Robert Slootjes
7377b5577a
Add Bitbucket Pipelines example 2026-02-11 14:23:47 +01:00
bitterpanda
a7388bbdcf
Update packages/safe-chain/src/registryProxy/interceptors/npm/modifyNpmInfo.js 2026-02-11 14:23:47 +01:00
Reinier Criel
2cba4be1aa
Include package name in logging when minimum package age is not met 2026-02-11 14:23:47 +01:00
Sander Declerck
6fcca094c5
Add link to linux-arm64 proxy 2026-01-15 11:13:08 +01:00
Sander Declerck
c37b0c8265
Proxy version v0.0.7-linux-proxy-bins 2026-01-15 10:47:56 +01:00
Sander Declerck
83b62f9c7a
v0.0.5-linux-proxy-bins of proxy 2026-01-13 13:27:12 +01:00
Sander Declerck
67a8f2db52
Use prroxy version 0.0.4 2026-01-13 13:07:48 +01:00
Sander Declerck
0411a579ae
Wait and poll until proxy starts for max 60s 2026-01-13 10:02:48 +01:00
Sander Declerck
6006760b67
Only inherit io when loglevel verbose 2026-01-12 15:39:26 +01:00
Sander Declerck
22580bcf5f
Set correct version 2026-01-12 15:29:43 +01:00
Sander Declerck
f6abfb8a4e
Install script for linux x64 as well 2026-01-12 15:25:40 +01:00
Sander Declerck
9d1f7ac6fd
Use ramaproxy if it's available. 2026-01-12 14:15:30 +01:00
Sander Declerck
31b5f73197
Merge pull request #285 from AikidoSec/logging-as-env-variable
Allow to configure loglevel through an env variable
2026-01-12 12:41:13 +01:00
Sander Declerck
595f269f62
Add comment about backwards compat. 2026-01-12 11:20:25 +01:00
Sander Declerck
20994c1834
Document to configure loglevel through env variables. 2026-01-12 11:01:54 +01:00
Sander Declerck
3573ef2bc5
Allow to configure loglevel through an env variable 2026-01-12 10:50:06 +01:00
Sander Declerck
6d2d943e18
Merge pull request #284 from AikidoSec/troubleshooting-packagemanager-cache
Add a section about troubleshooting when the package is already in the cache
2026-01-09 09:28:39 +01:00
Sander Declerck
6a70898e7b
Remove "optional" from "Clean local installation artifacts" 2026-01-08 08:01:48 +01:00
Sander Declerck
59f8b55bda
Add a section about troubleshooting when the package is already in the cache 2026-01-08 08:00:26 +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