Skip to content

Create CLI and static-site docs #6

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

dandye
Copy link

@dandye dandye commented Mar 27, 2025

Changes

  • CLI (created with click). See docs for cli
    • Option to config with .env
    • Run from src with ./secops-cli.sh ... or after pip install -e . with secops ...
  • Static Site

Known Limitations

  • I think the params after secops and before the next command are odd but they do work.

Usage examples

./secops-cli.sh  --project-id=$PROJECT_ID --customer-id=$CUSTOMER_ID \
   chronicle search --query "metadata.log_type != \"FOO\"" --start-time "1d"
secops \
  --project-id=$PROJECT_ID \
  --customer-id=$CUSTOMER_ID \
  chronicle nl-search \
  --query "Show me all logs from log type GCP_CLOUDAUDIT" \
  --start-time "1d"

Works with uv tool use / uvx

 uvx --from ./secops-0.1.5-py3-none-any.whl \
   secops \
  --project-id=$PROJECT_ID \
  --customer-id=$CUSTOMER_ID \
  chronicle nl-search \
  --query "Show me all logs from log type GCP_CLOUDAUDIT" \
  --start-time "1d"

@dandye
Copy link
Author

dandye commented Apr 12, 2025

@emeryray2002 I just rebased on upstream/main, so this should be good for review.

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.

1 participant