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

added option for insecure http driver download #3058

Merged
merged 4 commits into from
Feb 8, 2024

Conversation

toamto94
Copy link
Contributor

@toamto94 toamto94 commented Feb 7, 2024

Added option for insecure http driver download in the docker-entrypoint.sh script. By passing --http-insecure to the container via an argument, the flag is forwarded to the falcoctl driver install command.

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

/kind release

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area engine

/area tests

/area proposals

/area CI

What this PR does / why we need it:
Adds a simple functionality to the driverbuilder script which has not been enabled before

Which issue(s) this PR fixes:
Feature has been available until the migration from script based driver build to falcoctl based one.

Fixes #3057

Special notes for your reviewer:
Simply adds a flag that is forwarded

Does this PR introduce a user-facing change?:
No, everythin works as before and the default of the flag is false anyway

new(docker): added option for insecure http driver download to falco and driver-loader images

Added option for insecure http driver download in the docker-entrypoint.sh script. By passing --http-insecure to the container via an argument, the flag is forwarded to the falcoctl driver install command.

Signed-off-by: Tom Müller <60851960+toamto94@users.noreply.github.com>
@poiana
Copy link

poiana commented Feb 7, 2024

Welcome @toamto94! It looks like this is your first PR to falcosecurity/falco 🎉

@poiana poiana requested review from Kaizhe and leogr February 7, 2024 19:22
@poiana poiana added the size/S label Feb 7, 2024
@FedeDP
Copy link
Contributor

FedeDP commented Feb 7, 2024

/assign

@FedeDP
Copy link
Contributor

FedeDP commented Feb 7, 2024

Thanks for this PR! Can you add the same code to driver-loader-legacy and Falco images entrypoints?

@FedeDP
Copy link
Contributor

FedeDP commented Feb 7, 2024

Btw sorry, I completely forgot to add the option back in the 0.37.0 dev cycle!

@toamto94
Copy link
Contributor Author

toamto94 commented Feb 7, 2024

Thanks for this PR! Can you add the same code to driver-loader-legacy and Falco images entrypoints?

Of course! I will quickly add it

added insecure http driver download to the driver-loader-legacy entrypoint.

Signed-off-by: Tom Müller <60851960+toamto94@users.noreply.github.com>
@poiana poiana added size/M and removed size/S labels Feb 7, 2024
added option for insecure http driver download to the falco docker entrypoint.

Signed-off-by: Tom Müller <60851960+toamto94@users.noreply.github.com>
fixed typo in the print usage description of the docker run command

Signed-off-by: Tom Müller <60851960+toamto94@users.noreply.github.com>
@toamto94
Copy link
Contributor Author

toamto94 commented Feb 7, 2024

@FedeDP Code is added. First added a typo do the description of the docker command in the legacy script but this fixed as well now

Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

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

/approve

Great job, thank you very much!

@poiana poiana added the lgtm label Feb 8, 2024
@poiana
Copy link

poiana commented Feb 8, 2024

LGTM label has been added.

Git tree hash: 21c79530ffa9c83337ec54e74afb6a2df24a8263

@poiana poiana added the approved label Feb 8, 2024
@FedeDP
Copy link
Contributor

FedeDP commented Feb 8, 2024

/milestone 0.38.0

Might be ported into a 0.37.1 patch release, if needed.

@poiana poiana added this to the 0.38.0 milestone Feb 8, 2024
Copy link
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

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

/approve

@poiana
Copy link

poiana commented Feb 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, FedeDP, toamto94

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 71f3c77 into falcosecurity:master Feb 8, 2024
27 checks passed
@FedeDP
Copy link
Contributor

FedeDP commented Feb 8, 2024

/milestone 0.37.1

@poiana poiana modified the milestones: 0.38.0, 0.37.1 Feb 8, 2024
@FedeDP FedeDP mentioned this pull request Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add option for unsecure driver download in the new driver-loader image
4 participants