Skip to content

[BREAKING][CDTOOL-1830 Add support for AI Firewall configurations - #886

Merged
rcaril merged 6 commits into
mainfrom
rcaril/CDTOOL-1808-add-support-for-ai-firewall
Oct 19, 2026
Merged

rcaril merged 6 commits into
mainfrom
rcaril/CDTOOL-1808-add-support-for-ai-firewall

Conversation

@rcaril

@rcaril rcaril commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Change summary

This PR the AI Runtime Control packages in line with the latest AI Firewall release. Internal references linked here.

Virtual keys

  • Keys can now be created and updated with AI Firewall settings, requests-per-minute and
    tokens-per-minute limits, and a spend limit.
  • New GetFailover and UpdateFailover operations manage a key's failover policy.
  • Rotate no longer requires an expiration. If omitted, the rotated key doesn't expire.

Provider connections

  • Connections can now use Bedrock or Vertex authentication, in addition to API keys.
  • New GetBedrockSetup and GetVertexSetup operations return the values needed to
    configure the cloud-side trust before creating those connections.

Sessions and usage metrics

  • Both now report the primary provider, meaning the connection that was originally
    requested before any failover.
  • Usage metrics List now pages through all results automatically, like the other list
    operations.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

Changes to Core Features:

  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?

User Impact

Users can now manage Virtual Key security, rate limits, spend limits, and failover policies, and can create Bedrock and Vertex AI provider connections.

Are there any considerations that need to be addressed for release?

The following are breaking changes:

  • usagemetrics.List now returns []UsageMetric instead of *UsageMetrics.
  • key.CreateInput.UserID has been removed.
  • key.Rotate no longer requires ExpiresAt, and leaving it out clears the key's
    expiration.

@rcaril rcaril changed the title [CDCDTOOL-1808] Add support for AI Firewall configurations [Breaking][CDCDTOOL-1808] Add support for AI Firewall configurations Oct 16, 2026
@rcaril rcaril changed the title [Breaking][CDCDTOOL-1808] Add support for AI Firewall configurations [BREAKING][CDCDTOOL-1808] Add support for AI Firewall configurations Oct 16, 2026
Comment thread fastly/fastly_test_utils.go
@rcaril
rcaril marked this pull request as ready for review October 16, 2026 16:34
@rcaril
rcaril requested a review from a team as a code owner October 16, 2026 16:34
@rcaril

rcaril commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

Adding both @kpfleming and @anthony-gomez-fastly as this is a breaking change.

Comment thread fastly/airuntimecontrol/v1/key/api_create.go
Comment thread fastly/airuntimecontrol/v1/key/api_rotate.go
Comment thread fastly/airuntimecontrol/v1/key/api_get_failover.go Outdated
Comment thread fastly/airuntimecontrol/v1/key/api_response.go Outdated
Not needed since we are auto-paginating.
@kpfleming kpfleming changed the title [BREAKING][CDCDTOOL-1808] Add support for AI Firewall configurations [BREAKING][CDTOOL-1808] Add support for AI Firewall configurations Oct 16, 2026

@kpfleming kpfleming left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some small changes, along with the change from Failover to FailoverPolicy, but overall this looks very good!

Comment thread fastly/airuntimecontrol/v1/providerconnection/api_create.go Outdated
Comment thread CHANGELOG.md Outdated
@rcaril
rcaril requested a review from kpfleming October 19, 2026 13:44
@rcaril
rcaril merged commit 94bbd7f into main Oct 19, 2026
9 checks passed
@rcaril
rcaril deleted the rcaril/CDTOOL-1808-add-support-for-ai-firewall branch October 19, 2026 14:12
@rcaril rcaril changed the title [BREAKING][CDTOOL-1808] Add support for AI Firewall configurations [BREAKING][CDTOOL-1830 Add support for AI Firewall configurations Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants