Skip to content

Standardize rule endpoint client identification and remove Basic Auth #561

@bracyw

Description

@bracyw

Description

Rule endpoints use three different patterns for client identification: Basic Auth headers (add_rule, delete_rule), path parameters (get_all_rules_with_client_info), and JSON body (subscribe, unsubscribe). Standardize on one approach and remove the Basic Auth dependency.

Depends on PR #555 merging first.

Acceptance Criteria

  • add_rule and delete_rule no longer use Basic Auth
  • All rule endpoints use consistent client_id pattern (path param or body)
  • TypedHeader<Authorization> removed from rule_controller.rs
  • Frontend rules.api.ts updated to match

Proposed Solution

Replace Basic Auth extraction with path parameters in rule_controller.rs, matching get_all_rules_with_client_info. Update routes in main.rs and API calls in rules.api.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    angular-clientDevelopment Focused in the FrontendmediumA more complex taskscylla-serverDevelopment Focused in the Backend

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions