Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solution #37

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

solution #37

wants to merge 3 commits into from

Conversation

dvitalijb
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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


Thank you for your hard work on this pull request! 😊 While you've made great progress, there are a couple of critical issues that need to be addressed before we can approve the changes:

  1. ConfigMap File: The PYTHONUNBUFFERED value should be set to "1" instead of "3.2". This ensures that Python's output is unbuffered, which is crucial for real-time logging.

  2. Secret File: The SECRET_KEY should be base64 encoded. Currently, it is set as a plain number 5.2. Please encode the secret value in base64 format to enhance security.

Additionally, there are a few minor issues to consider:

  • Typo in ConfigMap Filename: The filename .infrastructure/confgiMap.yml contains a typo. It should be configMap.yml.

  • Instruction File: The INSTRUCTION.md file is missing. It should include commands to apply all the changes and instructions on how to validate them.

Once these issues are resolved, your code will be in great shape! Keep up the excellent work, and don't hesitate to reach out if you need any help. 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

name: app-config
namespace: todoapp
data:
PYTHONUNBUFFERED: 3.2

Choose a reason for hiding this comment

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

The value for PYTHONUNBUFFERED should be 1 to ensure that Python's output is unbuffered. This is important for real-time logging and debugging. Please change 3.2 to 1.

namespace: todoapp
type: Opaque
data:
SECRET_KEY: 5.2

Choose a reason for hiding this comment

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

The SECRET_KEY value should be base64 encoded. Currently, it is set as a plain number 5.2. Please encode the secret value in base64 format before placing it here.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

Something went wrong while processing the review.
[CODE: 2]

If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Great job on addressing the critical issues from the previous review! 🎉 Your changes to the configMap.yml and secret.yml files are spot on. Here are a few points to consider for further improvement:

  • Liveness and Readiness Probes: Ensure the paths in the deployment.yml file are correctly set for proper health checks.
  • DEBUG Setting: Remember to set DEBUG to False in production environments to prevent exposing sensitive information.
  • Missing INSTRUCTION.md: Please add this file with commands and validation instructions to complete the task requirements.

Overall, you've made significant progress, and the decision to approve is to help you move forward with your learning. Keep up the good work, and make sure to address these points in future updates to enhance the security and functionality of your code. 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

@@ -18,7 +18,7 @@
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "@e2(yx)v&tgh3_s=0yja-i!dpebxsz^dg47x)-k&kq_3zf*9e*"
SECRET_KEY = os.environ['SECRET_KEY']

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

Choose a reason for hiding this comment

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

The DEBUG setting is currently set to True. This should be set to False in production to avoid exposing sensitive information.

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