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

Move export options to config file with env read support #392

Merged
merged 5 commits into from
Oct 11, 2023

Conversation

dogancanbakir
Copy link
Member

@dogancanbakir dogancanbakir commented Oct 2, 2023

Proposal

Move export related options to config file similar to nuclei's reporting config file with env read support.

   -ec, -export-config string  proxify export configuration file

Following options will be replaced with -export-config option.

EXPORT:
   -max-size int              Max export data size (request/responses will be truncated) (default 9223372036854775807)
   -elastic-address string    elasticsearch address (ip:port)
   -elastic-ssl               enable elasticsearch ssl
   -elastic-ssl-verification  enable elasticsearch ssl verification
   -elastic-username string   elasticsearch username
   -elastic-password string   elasticsearch password
   -elastic-index string      elasticsearch index name (default "proxify")
   -kafka-address string      address of kafka broker (ip:port)
   -kafka-topic string        kafka topic to publish messages on (default "proxify")

Example config file:

kafka:
  # topic is kafka topic name to publish messages
  topic: proxify
  # address is kafka host to connect with in ip:port format
  address: $KAFKA_HOST

elastic
  # index is elastic index name
  index: proxify
  # elastic username
  username: $ELASTIC_USER
  # elastic password
  password: $ELASTIC_PASSWORD
  # elastic address in ip:port format
  address: $ELASTIC_HOST
  # enable / disable use of ssl for elastic host
  ssl: true
  # enable / disable ssl verification for elastic host
  ssl-verification: false

Closes #262.

@dogancanbakir dogancanbakir self-assigned this Oct 2, 2023
@ehsandeep ehsandeep linked an issue Oct 2, 2023 that may be closed by this pull request
@ehsandeep ehsandeep merged commit afa694d into dev Oct 11, 2023
8 checks passed
@ehsandeep ehsandeep deleted the move_export_options_to_file branch October 11, 2023 12:28
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.

Moving export options to config file with env read support
2 participants