Skip to content

Commit

Permalink
Update Consent_request.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Josef Edwards <joed6834@colorado.edu>
  • Loading branch information
bearycool11 authored Nov 23, 2024
1 parent c8d8234 commit 5546478
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Consent_request.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ CONSENT_PAYLOAD='{
}'

# Log files for responses
INTERNAL_LOG_FILE="internal_consent_responses.log"
EXTERNAL_LOG_FILE="external_consent_responses.log"
INTERNAL_LOG_FILE="./logs/internal_consent_responses.log"
EXTERNAL_LOG_FILE="./logs/external_consent_responses.log"

# Initialize log files
echo "Consent Request Log - $(date)" > "$INTERNAL_LOG_FILE"
Expand All @@ -28,16 +28,11 @@ discover_endpoints() {
EXTERNAL_SILOS+=("https://silo$i.external")
done

# Example 2: Fetch endpoints from a central registry (optional)
# Uncomment and replace with your registry URL if applicable
# INTERNAL_SILOS=($(curl -s https://your-registry.com/internal_silos))
# EXTERNAL_SILOS=($(curl -s https://your-registry.com/external_silos))

# Print discovered endpoints for debugging
echo "Discovered Internal Silos:"
printf "%s\n" "${INTERNAL_SILOS[@]}"
printf "%s\n" "${INTERNAL_SILOS[@]}" > ./logs/internal_endpoints.log
echo "Discovered External Silos:"
printf "%s\n" "${EXTERNAL_SILOS[@]}"
printf "%s\n" "${EXTERNAL_SILOS[@]}" > ./logs/external_endpoints.log
}

# Function to send consent requests
Expand Down

0 comments on commit 5546478

Please sign in to comment.