Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: component b64 sigs and info #1547

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

jon-stewart
Copy link
Contributor

Summary

The CDK prototype code expects a base64 encoded .signature file. The CDK V1 code expects a NON b64 encoded .signature file. The fix for this is to treat b64 decoding as optional - if it fails try the signature anyway.

It wasn't possible to execute CDK v1 components - the componentType wasn't stored. This issue must have been introduced at some stage during development, possibly when tightening up the v1 component exec code path. The fix for this is to store component information in a .info file.

How did you test this change?

  1. Switch to prototype account
  2. Install prototype components
  3. Run prototype components
  4. Switch to V1 account
  5. Install V1 components
  6. Run prototype components
  7. Run V1 components
  8. Switch to prototype account
  9. Run V1 components

Issue

https://lacework.atlassian.net/browse/GROW-2781

@jon-stewart jon-stewart self-assigned this Feb 22, 2024
@jon-stewart jon-stewart requested a review from a team as a code owner February 22, 2024 11:59
@jon-stewart jon-stewart force-pushed the jon-stewart/GROW-2781/component-b64-sigs branch from d31335b to 2a2338c Compare February 22, 2024 12:00
@jon-stewart jon-stewart merged commit 353acb7 into main Feb 22, 2024
6 of 7 checks passed
@jon-stewart jon-stewart deleted the jon-stewart/GROW-2781/component-b64-sigs branch February 22, 2024 13:28
@lacework-releng lacework-releng mentioned this pull request Feb 22, 2024
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