Repository navigation
Call the functions with a bearer token and drop DigitalOcean - #331
Merged
Merged
Conversation
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 10, 2026
Merged
OpenTofu plan for
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The four functions drop DigitalOcean: they take the secret as
Authorization: Bearerinstead of OpenWhisk'sX-Require-Whisk-Auth, and their contracts describe the Lambda Function URLs. This side follows, and the last DigitalOcean wording in the docs goes with it.What changes
AerolopaClient,OsmClient,OceanicTracksClientandPostcardClientsendAuthorization: Bearer <secret>, and their specs assert it. Base URLs and secrets are unchanged: production still reads each function's/urland/secretfrom SSM.functions-mockroutes sit at the root (seatmap,layouts,pull,tracks,city) and requireAuthorization: Bearer very-secret-token. The*_FUNCTION_BASE_URLvalues in.env.distlose the DigitalOcean package paths. The cabin-layout seed finds the seat map route by its new endpoint.aerolopa,osmandoceanic-tracks.openapi.jsonare the functions' 2.0.0 contracts, run through Prettier.postcard.openapi.jsonstays the trimmed mirror and is edited in place: the render goes to an asynchronous invocation, the hand-off modes areinvocationandinline, the platform's 202 is gone, and 401 answers withUNAUTHORIZEDunderbearerAuth.UNAUTHORIZEDjoins the AeroLOPA, OSM, oceanic tracks and postcard error codes, andPostcardHandoffModeisinvocation | inline.FRONTEND_BASE_URLlives ininfra/locals.tf, and the providers are AWS Lambda functions. The OpenSpec change records keep their DigitalOcean wording as history.Merge together
These five pull requests switch the functions and the API to the bearer header, so merge them close together. Until all five are in, the two sides disagree on the header: the functions answer
401, and the API reports seat maps, airport pulls, oceanic tracks and postcards as unavailable.After merging
Copy the four
*_FUNCTION_BASE_URLlines from.env.distinto your.envand recreateappandmock.Verification
🤖 Generated with Claude Code