-
Notifications
You must be signed in to change notification settings - Fork 0
feat(midnight-crossed-books): add readonly mode #152
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e9885b7
feat(midnight-crossed-books): add readonly mode
prd-carapulse[bot] e19cbba
fix(midnight-crossed-books): address review findings
prd-carapulse[bot] d211480
fix(midnight-crossed-books): harden readonly configuration
prd-carapulse[bot] 2403415
fix(midnight-crossed-books): preserve readonly caller semantics
prd-carapulse[bot] 79acc32
fix(midnight-crossed-books): harden readonly mode transitions
prd-carapulse[bot] 97fa2d5
fix(midnight-crossed-books): scope Railway variable mutations
prd-carapulse[bot] 471dc18
fix(midnight-crossed-books): avoid secret variable listing
prd-carapulse[bot] cb337bb
fix(midnight-crossed-books): isolate simulation caller by mode
prd-carapulse[bot] b9f2c9c
fix(midnight-crossed-books): bound Railway metadata pagination
prd-carapulse[bot] db2c6c4
fix(midnight-crossed-books): preserve Railway CLI provisioning
prd-carapulse[bot] f4fbfe7
fix(midnight-crossed-books): use supported Railway variable flags
prd-carapulse[bot] 91efac1
fix(midnight-crossed-books): address Railway review feedback
prd-carapulse[bot] f9a13e9
fix(midnight-crossed-books): make Railway mode transitions safe
prd-carapulse[bot] 90e8d32
fix(midnight-crossed-books): scope Railway variable lookup
prd-carapulse[bot] 9f6fbb0
fix(midnight-crossed-books): avoid reading stale signing keys
prd-carapulse[bot] 5be87ef
fix(midnight-crossed-books): make Railway deletes secret-safe
prd-carapulse[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
8 changes: 8 additions & 0 deletions
8
bots/midnight-crossed-books/scripts/railway-access-token-required.error.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| /** Raised when secret-safe Railway API operations have no supported API credential. */ | ||
| export class RailwayAccessTokenRequiredError extends Error { | ||
| /** Creates a credential-free provisioning failure. */ | ||
| constructor() { | ||
| super('RAILWAY_TOKEN or RAILWAY_API_TOKEN is required for safe Railway variable deletion') | ||
| this.name = 'RailwayAccessTokenRequiredError' | ||
| } | ||
| } |
18 changes: 18 additions & 0 deletions
18
bots/midnight-crossed-books/scripts/railway-variable-operation.error.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| type RailwayVariableOperation = 'delete' | 'set' | ||
|
|
||
| /** Raised when a Railway variable operation fails without exposing variable values. */ | ||
| export class RailwayVariableOperationError extends Error { | ||
| /** | ||
| * Creates a secret-safe CLI operation failure. | ||
| * @param operation - Failed Railway operation. | ||
| * @param variableName - Variable name for a targeted operation; never a value. | ||
| */ | ||
| constructor(operation: RailwayVariableOperation, variableName?: string) { | ||
| super( | ||
| variableName | ||
| ? `Failed to ${operation} Railway variable ${variableName}` | ||
| : `Failed to ${operation} Railway variables` | ||
| ) | ||
| this.name = 'RailwayVariableOperationError' | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.