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

Implement If-Not-Modified-Since HTTP header on GetLatestIntelRuleFile call #141

Merged
merged 2 commits into from Oct 25, 2021

Conversation

isimluk
Copy link
Contributor

@isimluk isimluk commented Oct 19, 2021

No description provided.

@isimluk isimluk changed the title WIP: Implement If_Not-Modified-Since HTTP header on GetLatestIntelRuleFile call WIP: Implement If-Not-Modified-Since HTTP header on GetLatestIntelRuleFile call Oct 19, 2021
@isimluk isimluk force-pushed the if-not-modified-since branch 4 times, most recently from 575e8a5 to a590c70 Compare October 22, 2021 09:43
@isimluk isimluk changed the title WIP: Implement If-Not-Modified-Since HTTP header on GetLatestIntelRuleFile call Implement If-Not-Modified-Since HTTP header on GetLatestIntelRuleFile call Oct 22, 2021
@@ -20,6 +22,7 @@ func main() {
memberCID := flag.String("member-cid", os.Getenv("FALCON_MEMBER_CID"), "Member CID for MSSP (for cases when OAuth2 authenticates multiple CIDs)")
clientCloud := flag.String("cloud", os.Getenv("FALCON_CLOUD"), "Falcon cloud abbreviation (us-1, us-2, eu-1, us-gov-1)")
intelRuleType := flag.String("rule-type", "", fmt.Sprintf("Falcon Intelligence Rule Type: available types: %s", intel.RuleTypeValidValues))
ifModifiedSince := flag.String("if-modified-since", "", "Download file only if it was not modified since the given date. Example value: 'Fri, 16 Oct 2021 11:04:27 GMT'")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we just make the flag since instead of if-modified-since?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👋 done

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@redhatrises
Copy link
Collaborator

ack

@redhatrises redhatrises merged commit c64e33a into CrowdStrike:main Oct 25, 2021
@isimluk isimluk deleted the if-not-modified-since branch December 6, 2021 14:52
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.

None yet

2 participants