WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@LorenzoTettamanti
Copy link
Member

@LorenzoTettamanti LorenzoTettamanti commented Oct 20, 2025

This PR introduces the "remove-ip" subcommand in the policy section. This update is far from considering it completed, the next PR will introduce better API responses and better flexibility

Related issue: [#105]

Changes:

  • Added remove-ip CLI subcommand
  • Agent API update: added remove_ip_from_blocklist function and api request
  • Added the blocklist logic in kernel space (conntracker/main.rs)

Tests:

Images used:

  • cortexflow-identity:0.1.1-beta.2
  • cortexflow-agent:0.1.1.beta.2

agent port-foward reference command: https://docs.cortexflow.org/cfcli/quick-start-guide/#agent-setup

Command list check:

Screenshot from 2025-10-20 17-55-36

Blocklist creation check:

commands:

cargo run policy -f "0.0.0.0" create-blocklist
cargo run policy -f "10.4.2.1" create-blocklist
Screenshot from 2025-10-20 18-00-21

Blocklist remove-ip check:

commands:

cargo run policy -f "0.0.0.0" remove-ip
cargo run policy -f "10.4.2.1" remove-ip
Screenshot from 2025-10-20 18-03-17

@LorenzoTettamanti LorenzoTettamanti self-assigned this Oct 20, 2025
@LorenzoTettamanti LorenzoTettamanti added enhancement New feature or request cortexflow cli CLI related issues ebpf eBPF related tasks labels Oct 20, 2025
@LorenzoTettamanti LorenzoTettamanti changed the title Agent API update: added remove-ip subcommand Agent API update: added remove-ip subcommand and identity-improvements (pt.1) Oct 20, 2025
@LorenzoTettamanti LorenzoTettamanti moved this to In Progress in CortexFlow v0.1 Oct 20, 2025
@LorenzoTettamanti LorenzoTettamanti marked this pull request as ready for review October 20, 2025 16:10
@siddh34
Copy link
Collaborator

siddh34 commented Oct 21, 2025

Policy add command worked

image

Policy remove worked

image

@LorenzoTettamanti
Copy link
Member Author

@siddh34 Thanks for the review! I'm merging the changes

@LorenzoTettamanti LorenzoTettamanti merged commit a7a1eac into CortexFlow:feature/ebpf-core Oct 21, 2025
@siddh34
Copy link
Collaborator

siddh34 commented Oct 21, 2025

@LorenzoTettamanti Welcome!

@LorenzoTettamanti LorenzoTettamanti moved this from In Progress to Done in CortexFlow v0.1 Nov 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cortexflow cli CLI related issues ebpf eBPF related tasks enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants