lacework / circleci-orb-lacework

Lacework Orb for CircleCI
Apache License 2.0
2 stars 3 forks source link

Can't install inline-scanner on unprivileged containers (no sudo) #36

Closed carlosjgp closed 1 year ago

carlosjgp commented 2 years ago

Orb Version 1.5.0

Describe the bug The orb fails to install the inline scanner on unprivileged Docker executors

To Reproduce

version: 2.1

orbs:
  lacework lacework/lacework@1.5.0

executors:
  unprivileged-image:
    docker:
      - image: python:3.10-slim
  privileged-image:
    docker:
      - image: cimg/base:2022.03

jobs:
  will-fail:
    executor: unprivileged-image
    steps:
      - lacework/install-inline-scanner

  will-work:
    executor: privileged-image
    steps:
      - lacework/install-inline-scanner
#!/bin/bash -eo pipefail
curl https://raw.githubusercontent.com/lacework/circleci-orb-lacework/master/scripts/install.sh | sudo bash

/bin/bash: line 1: sudo: command not found
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 79  6274   79  4991    0     0  48931      0 --:--:-- --:--:-- --:--:-- 48456
curl: (23) Failure writing output to destination

Exited with code exit status 127

CircleCI received exit code 127

Expected behavior

CLI can be installed

dmurray-lacework commented 2 years ago

Hey @carlosjgp, thank you for raising this. The team will create a JIRA to look into this functionality.

carlosjgp commented 1 year ago

@dmurray-lacework We are still blocked with this