QuestionQ48

VerifiedIntroduction to DevSecOps

Charlotte Flair, a DevSecOps engineer at Egma Soft Solution Pvt. Ltd., works for an organization that develops software and applications for supply chain management. She wants to integrate the Sqreen RASP tool with Slack to monitor applications at runtime for malicious activity and block threats before they can cause damage.

As part of this effort, she created a Sqreen account and installed the Sqreen Microagent. She now wants to install the PHP microagent. To do this, she:

  • Reviewed the PHP microagent's compatibility requirements
  • Signed in to her Sqreen account and noted down the token in Notepad

Which of the following commands should Charlotte run in the terminal to install the PHP extension and the Sqreen daemon?

Explanation

The Sqreen PHP microagent install script must be downloaded silently and its output saved to a local file before execution. The -s (silent) flag suppresses curl's progress meter and error messages, producing clean script output, while the > operator redirects that output into the file sqreen-install.sh. The script is then executed with bash sqreen-install.sh <ORG_TOKEN> "<APP_NAME>", passing Charlotte's organization token and application name as arguments so the daemon and PHP extension can be installed and registered to her Sqreen account. Using < would attempt to feed a file into curl as input rather than saving curl's output, which is not valid for downloading a script, and using -i would include HTTP headers in the saved file, breaking the script.

Community Discussion

No comments yet. Be the first to start the discussion!