Skip to content

resources: add authentication and target resources - #160

Open
Paul2803k wants to merge 6 commits into
feature/resources-integrationfrom
feature/stored-resources
Open

Paul2803k wants to merge 6 commits into
feature/resources-integrationfrom
feature/stored-resources

Conversation

@Paul2803k

@Paul2803k Paul2803k commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

This adds stored authentication and targets to Resources. Authentication fields can map to stored secrets or variables. Target addresses and ports can use literal values or mappings, and editing an address preserves additional imported entries. The page supports creating, viewing, editing and deleting these objects.

SOARCA does not provide these endpoints yet. VITE_MOCK_STORE_API=true enables in-memory authentication, target and field-mapping routes in the development server. Mock data resets on restart and secret values are never returned.

Errors use one card style at the top of the form or dialog they belong to. A failed load shows a warning with a Try again button, and a failed save or delete shows an error. Most API errors use generic messages based on HTTP status. Deleting a variable, target or authentication that is still in use is an exception: HTTP 409 shows instructions to remove its mappings or references first, plus the API's explanation and blocking references when provided. Update version conflicts and other errors keep their existing handling.

Adds a shared button loading state, used for sign-in and logout. Labels stay visible and buttons keep their size while loading.

Usual eye candy:

Light Dark
resources-authentication-light resources-authentication-dark
resources-targets-light resources-targets-dark

@Paul2803k
Paul2803k added this pull request to stack #148 November 30, 2026 17:35
@Paul2803k Paul2803k linked an issue Nov 30, 2026 that may be closed by this pull request
@Paul2803k
Paul2803k force-pushed the feature/stored-resources branch from 6481327 to 1f7a3e1 Compare November 30, 2026 23:38
@Paul2803k
Paul2803k marked this pull request as ready for review December 1, 2026 14:44
@Paul2803k
Paul2803k force-pushed the feature/stored-resources branch from 087c792 to 3f6f68a Compare December 3, 2026 10:45

@MaartendeKruijf MaartendeKruijf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Update the 409 error

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 reusable agents, targets and authentication blocks

2 participants