Skip to content

added auth header to status and usage#148

Merged
raphael-goetz merged 2 commits intomainfrom
#147-auth-metadata
Apr 12, 2026
Merged

added auth header to status and usage#148
raphael-goetz merged 2 commits intomainfrom
#147-auth-metadata

Conversation

@raphael-goetz
Copy link
Copy Markdown
Member

Resolves: #147

Copilot AI review requested due to automatic review settings April 12, 2026 12:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Aquila auth metadata to Taurus runtime status and usage gRPC calls (per #147), ensuring these updates include the configured authorization token.

Changes:

  • Extend TaurusRuntimeUsageService and TaurusRuntimeStatusService constructors to accept and store aquila_token.
  • Attach authorization metadata to outgoing update requests for runtime usage and runtime status.
  • Wire token through main.rs when constructing the services.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
crates/taurus/src/main.rs Passes aquila_token into runtime usage/status service constructors.
crates/taurus/src/client/runtime_usage.rs Stores token and sends usage updates with auth metadata.
crates/taurus/src/client/runtime_status.rs Stores token and sends status updates with auth metadata.
Comments suppressed due to low confidence (2)

crates/taurus/src/client/runtime_usage.rs:41

  • This success log message refers to "RuntimeStatus" and "Sagittarius", but the request being sent here is a RuntimeUsage update via RuntimeUsageServiceClient (Aquila). Consider updating the wording to match the actual operation/target service.
            Ok(response) => {
                log::info!(
                    "Was the update of the RuntimeStatus accepted by Sagittarius? {}",
                    response.into_inner().success
                );

crates/taurus/src/client/runtime_status.rs:81

  • This success log message mentions "Sagittarius", but this client connects to "Aquila" (create_channel_with_retry("Aquila", ...) and RuntimeStatusServiceClient). Please align the log wording with the actual service being called to keep operational logs accurate.
            Ok(response) => {
                log::info!(
                    "Was the update of the RuntimeStatus accepted by Sagittarius? {}",
                    response.into_inner().success
                );

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@raphael-goetz raphael-goetz merged commit 291b370 into main Apr 12, 2026
1 check passed
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.

Add Auth Metadata for Status and Usage

2 participants