Skip to content

Conversation

@bpadhan-ks
Copy link

No description provided.

@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedslack-bolt@​1.27.098100100100100
Addedpyyaml@​6.0.3100100100100100

View full report

print(f" URL: {self.config.keeper.service_url}")
print(" The app will start but commands may fail.\n")

# Start PEDM poller in background

Choose a reason for hiding this comment

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

Remove the commented code

"""
Initialize Keeper Slack App.
"""
print("[INFO] Initializing Keeper Commander Slack App...")

Choose a reason for hiding this comment

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

Replace all print() with proper logger

Choose a reason for hiding this comment

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

Do we need this log file?

timeout=10
)

if response.status_code != 202:

Choose a reason for hiding this comment

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

Code from line 71 to 83 is repeated in each function. Make a common function for it use it in each API call function

pass
else:
print(f"[WARN] Unknown status: {status}")
else:

Choose a reason for hiding this comment

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

Need to handle 429 API response status code

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.

3 participants