Skip to content

feat(dsp): VIS-59 use sample bundle tagging config on startup#5

Open
cassandrabailey293 wants to merge 1 commit into
mainfrom
VIS-59-add-tagging-config
Open

feat(dsp): VIS-59 use sample bundle tagging config on startup#5
cassandrabailey293 wants to merge 1 commit into
mainfrom
VIS-59-add-tagging-config

Conversation

@cassandrabailey293
Copy link
Copy Markdown
Contributor

adds tagging config to dsp-standalone.

the setup-and-validate script expects a path to your dsp bundle. the sample tagging workflow will be extracted from the bundle by default. if none is present, it will prompt you for the path to your tagging workflow.

Copilot AI review requested due to automatic review settings May 7, 2026 15:20
Copy link
Copy Markdown

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

This PR updates DSP Standalone startup to automatically source and stage a tagging PDP workflow YAML (preferably from an unpacked Virtru bundle) and wires the staged file into the running DSP container via Docker Compose.

Changes:

  • Add startup logic in setup_and_validate.sh to locate tagging-pdp-workflows.yaml, optionally prompt the user, and stage it under .generated/.
  • Update dsp.yaml to point the tagging PDP service at /config/tagging-pdp-workflows.yaml.
  • Bind-mount the staged workflow file into the DSP container and ignore .generated/ in git.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 4 comments.

File Description
setup_and_validate.sh Adds workflow resolution + staging before bringing up the compose stack.
dsp.yaml Changes tagging PDP config path to the mounted /config/tagging-pdp-workflows.yaml.
docker-compose.yaml Mounts the staged workflow YAML into the DSP container.
.gitignore Ignores the generated staging directory.

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

Comment thread setup_and_validate.sh
Comment thread setup_and_validate.sh
Comment on lines +269 to +271
mkdir -p "$GENERATED_DIR"
if grep -q '^taggingpdpWorkflows:$' "$source_path" && grep -q '^ config\.yaml:$' "$source_path"; then
awk '
Comment thread setup_and_validate.sh
' "$source_path" > "$GENERATED_TAGGING_PDP_WORKFLOW"
log_info "Extracted inner tagging PDP workflow from bundle wrapper format"
else
cp "$source_path" "$GENERATED_TAGGING_PDP_WORKFLOW"
Comment thread docker-compose.yaml
restart: always
volumes:
- ./dsp-keys:/dsp-keys:z
- ./.generated/tagging-pdp-workflows.yaml:/config/tagging-pdp-workflows.yaml:ro,z
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.

2 participants