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

ENG-44961: Resource provider for custom session identification rule #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

meghana-pedduri
Copy link
Contributor

Example usage:

resource "traceable_session_identification_custom_rule" "example" {
  name             = "example-session-rule"
  description      = "This is an example session identification rule"
  environment_names = ["dev", "prod"]
  service_names     = ["service1", "service2"]
  url_match_regexes = ["^/api/.*$", "^/internal/.*$"]

   token_extraction_condition_list {
     condition_request_header {
       key      = "X-Example-Header"
       operator = "EQUALS"
       value    = "example-value"
     }
   }

  custom_json = "{}"

}```
### **Schema:**
**Required:**
`name:` (string) name of the rule
`service_names: `(list of string) list of all the services the rule would be applicable for
` environment_names:` (list of string) list of all the env the rule would be applicable for
`custom_json:` (string): custom json as session token
**Optional:**
`description: `(string) description of the rule
`url_match_regexes:` (list of strings) the regex values of the url indicating its segment values that we would choose to redact
`token_extraction_condition_list: `(list of objects) the conditions to satisfy token extraction

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