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

events: WebSocket subscriptions support go-bexpr expressions #22835

Merged
merged 3 commits into from
Sep 7, 2023

Commits on Sep 7, 2023

  1. events: WebSocket subscriptions support go-bexpr expressions

    Subscribing to events through a WebSocket now support boolean
    expressions to filter only the events wanted based on the fields
    
    * `event_type`
    * `operation`
    * `source_plugin_mount`
    * `full_secret_path`
    * `namespace`
    
    Example expressions:
    
    These can be passed to `vault events subscribe`, e.g.,:
    * `event_type == abc`
    * `source_plugin_mount == secret/`
    * `event_type != def and operation != write`
    
    ```sh
    vault events subscribe -filter='source_plugin_mount == secret/' 'kv*'
    ```
    
    The docs for the `vault events subscribe` command and API endpoint
    will be coming shortly in a different PR, and will include a better
    specification for these expressions, similar to (or linking to)
    https://developer.hashicorp.com/boundary/docs/concepts/filtering
    Christopher Swenson committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    627df2f View commit details
    Browse the repository at this point in the history
  2. Add changelog

    Christopher Swenson committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    5770892 View commit details
    Browse the repository at this point in the history
  3. go mod tidy; rename full_secret_path to data_path

    Christopher Swenson committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    23b9d41 View commit details
    Browse the repository at this point in the history