Skip to content

Commit 0ee0704

Browse files
committed
Fixing a few probe scan criticals I introduced. Nothing major
1 parent ec0332b commit 0ee0704

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

lib/idp_common_pkg/idp_common/agents/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,15 @@ The agent requires credentials stored in AWS Secrets Manager at `{StackName}/ext
153153
"mcp_url": "https://your-first-mcp-server.com/mcp",
154154
"cognito_user_pool_id": "us-east-1_XXXXXXXXX",
155155
"cognito_client_id": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
156-
"cognito_username": "mcp-user-1",
157-
"cognito_password": "secure-password-1"
156+
"cognito_username": "<your first user here>",
157+
"cognito_password": "<your first password here>"
158158
},
159159
{
160160
"mcp_url": "https://your-second-mcp-server.com/mcp",
161161
"cognito_user_pool_id": "us-east-1_YYYYYYYYY",
162162
"cognito_client_id": "yyyyyyyyyyyyyyyyyyyyyyyyyy",
163-
"cognito_username": "mcp-user-2",
164-
"cognito_password": "secure-password-2"
163+
"cognito_username": "<your second user here>",
164+
"cognito_password": "<your second password here>"
165165
}
166166
]
167167
```

lib/idp_common_pkg/idp_common/agents/analytics/tools/athena_tool.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ def run_athena_query(
8383
logger.debug(
8484
f"Query state: {state}, sleeping for 2 seconds (attempt {attempts + 1}/{max_polling_attempts})"
8585
)
86-
time.sleep(2)
86+
time.sleep( # semgrep-ignore: arbitrary-sleep - Intentional delay. Duration is hardcoded and not user-controlled.
87+
2
88+
) # semgrep-ignore: arbitrary-sleep - Intentional delay. Duration is hardcoded and not user-controlled.
8789
attempts += 1
8890

8991
# Check final state

src/lambda/agent_processor/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def handler(event, context):
347347

348348
if attempt < max_retries - 1: # Not the last attempt
349349
logger.info(f"Waiting {retry_delay} seconds before retry {attempt + 2}/{max_retries} for job {job_id}")
350-
time.sleep(retry_delay)
350+
time.sleep(retry_delay) # semgrep-ignore: arbitrary-sleep - Intentional delay. Duration is hardcoded and not user-controlled.
351351
else:
352352
# Last attempt failed
353353
logger.error(f"All {max_retries} attempts failed for agent query processing, job {job_id}: {str(e)}")

0 commit comments

Comments
 (0)