Skip to content

fix(COD-6066): hide the Lacework credentials from the running commands#251

Merged
jeremydubreil merged 1 commit intomainfrom
hide-environment-variables
Mar 25, 2026
Merged

fix(COD-6066): hide the Lacework credentials from the running commands#251
jeremydubreil merged 1 commit intomainfrom
hide-environment-variables

Conversation

@jeremydubreil
Copy link
Contributor

@jeremydubreil jeremydubreil commented Mar 24, 2026

Tested here on WebGoat for the scheduled runs and here for the PR comments.

@jeremydubreil jeremydubreil force-pushed the hide-environment-variables branch 2 times, most recently from e3eb86b to 8ed7b41 Compare March 25, 2026 11:48
@jeremydubreil jeremydubreil marked this pull request as ready for review March 25, 2026 12:14
@jeremydubreil jeremydubreil marked this pull request as draft March 25, 2026 12:15
@jeremydubreil jeremydubreil force-pushed the hide-environment-variables branch 10 times, most recently from 22e22e6 to cc57013 Compare March 25, 2026 13:42
@jeremydubreil jeremydubreil force-pushed the hide-environment-variables branch from cc57013 to f5b6c80 Compare March 25, 2026 13:47
if: ${{ inputs.debug == 'true' }}
run: |
echo "LW_LOG=debug" >> $GITHUB_ENV
- name: Set Lacework account environment variable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for backward compatibility?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and it seems to work now. I am testing this on WebGoat.

@jeremydubreil jeremydubreil marked this pull request as ready for review March 25, 2026 13:54
@jeremydubreil jeremydubreil enabled auto-merge (squash) March 25, 2026 13:54
]
info('Calling lacework ' + expandedArgs.join(' '))
await callCommand('lacework', ...expandedArgs)
await callCommand('lacework', '--noninteractive', 'sca', ...args)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how come the credentials no longer need passing?

Copy link
Contributor Author

@jeremydubreil jeremydubreil Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because they are passed as environment. Before the changes, the workflow was setting the environment environment variables but not using them as such as it was overriding them with the -a, -k, and -s of the lacework CLI.

Copy link
Contributor

@baltoiteodor baltoiteodor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jeremydubreil jeremydubreil merged commit ddab6f9 into main Mar 25, 2026
3 of 4 checks passed
@jeremydubreil jeremydubreil deleted the hide-environment-variables branch March 25, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants