-
Notifications
You must be signed in to change notification settings - Fork 9
Tracking pull request to merge release-1.32.0 to main #796
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
Open
kuanfandevops
wants to merge
5
commits into
main
Choose a base branch
from
release-1.32.0
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a9ac4cf
first commit
kuanfandevops 2d32e4f
add programpaused-page
kuanfandevops 6d903fd
rename to programpaused-bc.yaml
kuanfandevops 87c6752
chore: 804 - disable scheduling of send_expiry_emails job (#805)
tim738745 c9cf0ba
784: sftp automation (#813)
tim738745 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| FROM --platform=linux/amd64 python:3.9.1 | ||
| FROM python:3.9.1 | ||
|
|
||
| ENV PYTHONUNBUFFERED=1 | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Generated by Django 4.0.9 on 2025-09-05 03:31 | ||
|
|
||
| from django.db import migrations, models | ||
| import django_extensions.db.fields | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('api', '0022_legacygoelectricrebateapplication'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.CreateModel( | ||
| name='CraFileTracker', | ||
| fields=[ | ||
| ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
| ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')), | ||
| ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')), | ||
| ('sequence_number', models.IntegerField()), | ||
| ], | ||
| options={ | ||
| 'db_table': 'cra_file_tracker', | ||
| }, | ||
| ), | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| from django_extensions.db.models import TimeStampedModel | ||
| from django.db.models import ( | ||
| IntegerField, | ||
| ) | ||
|
|
||
|
|
||
| class CraFileTracker(TimeStampedModel): | ||
| sequence_number = IntegerField() | ||
|
|
||
| class Meta: | ||
| db_table = "cra_file_tracker" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| from minio import Minio | ||
| from django.conf import settings | ||
|
|
||
|
|
||
| def get_minio_client(): | ||
| return Minio( | ||
| settings.MINIO_ENDPOINT_INTERNAL, | ||
| settings.MINIO_ACCESS_KEY, | ||
| settings.MINIO_SECRET_KEY, | ||
| secure=(settings.MINIO_USE_SSL == "True"), | ||
| ) | ||
|
|
||
|
|
||
| def get_minio_object(object_name): | ||
| client = get_minio_client() | ||
| return client.get_object(settings.MINIO_BUCKET_NAME, object_name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check failure
Code scanning / CodeQL
Accepting unknown SSH host keys when using Paramiko High
Copilot Autofix
AI 5 months ago
To fix this issue, you should change the missing host key policy in the
get_ssh_client()function fromparamiko.AutoAddPolicytoparamiko.RejectPolicy. TheRejectPolicywill refuse connection if the host key is not present in the known hosts file, ensuring host authenticity and protecting against man-in-the-middle exploits. This fix should be implemented by changing line 157 indjango/api/services/cra.pyso that it readsclient.set_missing_host_key_policy(paramiko.RejectPolicy).If this change causes exceptions upon connecting to new servers, you'll need to ensure that host keys are preloaded into the system's known hosts (or manually added via Paramiko's
load_system_host_keysorload_host_keysmethods). However, based solely on the code provided, only the policy line needs to be updated.