From 152329c58b51f853dd0cf2779639d0b0dc8e53f8 Mon Sep 17 00:00:00 2001 From: Shah Habibul Imran Date: Tue, 25 May 2021 22:17:18 +0600 Subject: [PATCH 1/2] add: secrets --- .gitignore | 4 +--- GreenDivision/env.py | 24 ++++++++++++++++++++++++ keys.json | 12 ++++++++++++ 3 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 GreenDivision/env.py create mode 100644 keys.json diff --git a/.gitignore b/.gitignore index 3485dfc..f69bb99 100644 --- a/.gitignore +++ b/.gitignore @@ -149,11 +149,9 @@ dmypy.json .pytype/ # End of https://www.toptal.com/developers/gitignore/api/django -GreenDivision/env.py db.sqlite3 db.sqlite3 scrapper_log.txt -.vscode/ -keys.json \ No newline at end of file +.vscode/ \ No newline at end of file diff --git a/GreenDivision/env.py b/GreenDivision/env.py new file mode 100644 index 0000000..eea6e35 --- /dev/null +++ b/GreenDivision/env.py @@ -0,0 +1,24 @@ +# Secret Credentials used for various tasks + +secret_key = "jkfhsadkfhsdklfhskldhfksdlfjsd" + +Email_ID = "diuacm@gmail.com" +Email_pass = "buyvnjgvvuvserfr" + +Email_subject = "Confirm your email for Green Division, DIU ACM" + +Forget_subject = "Reset Password" + +Forget_body = "You've requested to reset your password. Please visit the link below to reset your password.\n" + +ignore_message= "\n\nIf you didn't send the request, ignore this mail.\n" + +EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +EMAIL_HOST = 'smtp.gmail.com' +EMAIL_USE_TLS = True +EMAIL_PORT = 587 + +# Cloudinary Secrets +CLOUDINARY_CLOUD_NAME = 'diuacm' +CLOUDINARY_API_KEY = '997647499769423' +CLOUDINARY_API_SECRET = 'MB2n2rhdpqU1dB5tzxE6iaHb3Xc' \ No newline at end of file diff --git a/keys.json b/keys.json new file mode 100644 index 0000000..9db3582 --- /dev/null +++ b/keys.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "greendivision", + "private_key_id": "24baf71b95cccea050f61beebb6d7601a2faea28", + "private_key": "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yAdqI/CnsFM4gEkIIotqBFRJq6L2RIdwP0NpVw7RzOhhhaouF+g4nHj2hmzubLsJ\n7Nr4iF4ZOwKBgQCLRsOscMZvpYez708VHJABcnh/1HGWaiSrbN9/pkNlN876DDqc\n+8eXZVuTlPeyztsubHX/E7e+NzLBpnYSKpL+vDbwo3QNuS52ixiNmycw4G0blMLc\nEiRXH6HqzgzoKR3ubXWGrO475npz4pdohI2IFbWmkE5UGi0j5jZX8OxGqQKBgHtT\nkz8/hSUn86kXRSpi+hj0HtF2b2CDkayT7Z0CJY/MPJsQzw71zqAT2Ral2mOI6b4U\n0YgLBJvxLt/ypySfryDn4IOQFkaGCsUqAVsT7WqjzegdJ3HE721d65ZGc1CiaVQF\n4cqmR8dSVd9i/69wDljdfX/jyQEYe2DIClShE88PAoGAPDi5bwj5PbNiWg51KmUf\nS72Cmt0rrD+trgcuL9HMUPgL64RBrmfuBXsN6vDYIp6OLB5N9qHBUwVg5fkWbN7h\np1uFWipTEB9Xlt4oNs0o2MKjCeuznhT/54+VsAZVaMfN2kNO+TLOw1PS332PDnr+\nv/35ghqxq/B2Upfy79vEP3Q=\n-----END PRIVATE KEY-----\n", + "client_email": "scrapper@greendivision.iam.gserviceaccount.com", + "client_id": "101799942785710207881", + "auth_uri": "https://accounts.google.com/o/oauth2/auth", + "token_uri": "https://oauth2.googleapis.com/token", + "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/scrapper%40greendivision.iam.gserviceaccount.com" +} From a2da0b2cd968b9769b6e4bcb0b9896130af046dd Mon Sep 17 00:00:00 2001 From: "Md. Erfanul Islam Bhuiyan" <52505947+erfanul007@users.noreply.github.com> Date: Sun, 27 Oct 2024 14:12:10 +0600 Subject: [PATCH 2/2] Removed Google API Authentication keys [moved the file to google drive] --- keys.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/keys.json b/keys.json index 9db3582..3f34aa8 100644 --- a/keys.json +++ b/keys.json @@ -1,12 +1,12 @@ { "type": "service_account", "project_id": "greendivision", - "private_key_id": "24baf71b95cccea050f61beebb6d7601a2faea28", - "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCtSodS/tE9M6H0\nqcLqoNb0xf7g1yTpP+7j/7K0bMIXB3yKt0iqnqPqLBnUN0p1hsJy1uBwBuiGLlj0\nXUPqFSuazRVE+8jaQubEDAhlcmByB+/g4wezvZqNY1GKf/V6Aev+IXVmcxRtwBTG\nCFEkXI/zcHzxXMbrxw1b2Qdvw6dckq3+RozTeTdApcB3U5OiMvLp6S954ovrXLmY\n7LhSi2VhFOIF7cjcVYR7Qftqdb/Qrv5mYuP5Nukcj2r1e1KVONsiUXbVBFp0IuNh\ncyceFqIndICqozUNSv2k4I7jQ3B4Olt3p3WUYtovXSUDZXKhXac+mgks6HBJBwOd\n9pvj9XsFAgMBAAECggEAEzGtGYFF9cxxRONExq44APapS4go+3jsYe6hgaCGQvy+\nS7MPZm6Z40ctOTdClQ/vG783LtFlEe+yRKbL7fKYWNYcY/6reZltbAuVJn9rtVWx\nuSwMX1lB9CUrE/cmXnQ2Cnj0Qvu+KIXdBy5GpotmGmW8QROwqM7saN76FuQJ9pPN\nzjvPWtZjLs5wjgDmvcVNG+vkPgoUnjLe8yJPzuaV/+I3DBGCE3kNNANBPLFt8nWw\nw4KZNDkc504z1bOwDwzxYAhbF2nnyL0EmE5tRsXHjtrp9QPVv9cVG4NdzntirNMU\nzpEo0Nc64YV7U0ydlXOD/milhcfVpngaY24SGxAnRQKBgQDi2wPC8txY8m5cH0WI\nGoAaE47QUCAIukL38TTwYo+pPIVedvtzwtkBbmUXv4ftG2WNk0FnNcScw6ojOvcs\nQuo/q6T4qQRO+o4PLZMuUR0dZGMGgGj14Jj2LRqPSE0aBcpZTLSeUEzQG6DIHmh3\nSH6D5tdVN/HGsK5Er10b9vd4vwKBgQDDjdmaWboslykzuyNI1b310Y6Gc9fubXWw\n8EmKLZ2KnKvDzdezeTsIiCyDLiHjo9e7wlTGaAY8rJRWplNHVxpu2iuW1NJDCEbg\nyAdqI/CnsFM4gEkIIotqBFRJq6L2RIdwP0NpVw7RzOhhhaouF+g4nHj2hmzubLsJ\n7Nr4iF4ZOwKBgQCLRsOscMZvpYez708VHJABcnh/1HGWaiSrbN9/pkNlN876DDqc\n+8eXZVuTlPeyztsubHX/E7e+NzLBpnYSKpL+vDbwo3QNuS52ixiNmycw4G0blMLc\nEiRXH6HqzgzoKR3ubXWGrO475npz4pdohI2IFbWmkE5UGi0j5jZX8OxGqQKBgHtT\nkz8/hSUn86kXRSpi+hj0HtF2b2CDkayT7Z0CJY/MPJsQzw71zqAT2Ral2mOI6b4U\n0YgLBJvxLt/ypySfryDn4IOQFkaGCsUqAVsT7WqjzegdJ3HE721d65ZGc1CiaVQF\n4cqmR8dSVd9i/69wDljdfX/jyQEYe2DIClShE88PAoGAPDi5bwj5PbNiWg51KmUf\nS72Cmt0rrD+trgcuL9HMUPgL64RBrmfuBXsN6vDYIp6OLB5N9qHBUwVg5fkWbN7h\np1uFWipTEB9Xlt4oNs0o2MKjCeuznhT/54+VsAZVaMfN2kNO+TLOw1PS332PDnr+\nv/35ghqxq/B2Upfy79vEP3Q=\n-----END PRIVATE KEY-----\n", - "client_email": "scrapper@greendivision.iam.gserviceaccount.com", - "client_id": "101799942785710207881", + "private_key_id": "private_key_id", + "private_key": "private_key", + "client_email": "client_email", + "client_id": "client_id", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", - "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/scrapper%40greendivision.iam.gserviceaccount.com" + "client_x509_cert_url": "client_x509_cert_url" }