federicopfund / data-engineer

Proceso ETL
3 stars 0 forks source link

Proceso de Extracción Transformación Carga `ETL` #1

Closed federicopfund closed 1 year ago

federicopfund commented 1 year ago

En este proceso de utilizo un script escrito en Power Shell, para la creación de servicio dentro del entorno de Azure, en el cual se logro automatizar el deploy de los servicio correspondiente como:

  1. Blobs Storage -> donde se almaceno el backpack dbRetail, en el proceso de Migración.
  2. DataLake Storage -> Donde se almacenaron las transformaciones correspondiente.
  3. DataBricks -> Donde se escribieron las transformación con PySpark y SQL.
  4. DataFactory -> Donde se programo un Pipeline que sincroniza los Notebook correspondiente al proceso ETL.
  5. SQL Server -> Motor de SQL para las correspondientes Query.
  6. Data Base -> Donde se importo las tablas a transformar del backpack dbRetail.
  7. LinkedService -> Linked de servicios de Azure.

Luego se realizaron las transformación a archivos en formato csv, con apache Spark, para esto utilice el entorno de databrick, luego utilice DataFactory para automatizar el procesó de ejecución de notebooks a través "Pipeline", El resultado de la ejecución se subió a un storage tipo Data Lake. También se logro conectar con Hadoop, por lo tanto a través de una Spark Applicatión se conecto con un nodo tipo storage, donde lee los archivos correspondiente a transformar. Luego para visualizar las transformaciones obtenidas, se utilizó Power BI.

gitguardian[bot] commented 1 year ago

⚠️ GitGuardian has uncovered 23 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
| GitGuardian id | Secret | Commit | Filename | | | -------------- | ------------------------- | ---------------- | --------------- | -------------------- | | [5554767](https://dashboard.gitguardian.com/incidents/5554767?occurrence=82875715) | Generic Database Assignment | edf220fb8751482e4218836f9c0cb61cda6bb8ab | databricks/notebooks/workspace/cliente/Tablas Intermedias/llena_table_SQL.py | [View secret](https://github.com/federicopfund/data-science/commit/edf220fb8751482e4218836f9c0cb61cda6bb8ab#diff-4aadb479d8a239bfa83656c5764cb1def431b2c23ccf21ad964ccbd10d4de19cR16) | | [5554767](https://dashboard.gitguardian.com/incidents/5554767?occurrence=82875724) | Generic Database Assignment | 02bb8d7e5922bb923679702e9123b0720a31340a | databricks/notebooks/workspace/cliente/Tablas Intermedias/llena_table_SQL.py | [View secret](https://github.com/federicopfund/data-science/commit/02bb8d7e5922bb923679702e9123b0720a31340a#diff-4aadb479d8a239bfa83656c5764cb1def431b2c23ccf21ad964ccbd10d4de19cL16) | | [5554767](https://dashboard.gitguardian.com/incidents/5554767?occurrence=82875729) | Generic Database Assignment | 4e401b08635b7ac2d99fc4f5acd39151ed356490 | cicd-etl/notebooks/workspace/cliente/Tablas Intermedias/llena_table_SQL.py | [View secret](https://github.com/federicopfund/data-science/commit/4e401b08635b7ac2d99fc4f5acd39151ed356490#diff-66764662f8cd9ef7abf27b5fb18df93e7bdfc8510abfea950985871ba34166a6R16) | | [5554768](https://dashboard.gitguardian.com/incidents/5554768?occurrence=82875716) | Microsoft Azure Storage Account Key | 51bd43ad4bac4a67dcaca1e3b5d34a16a6a969e9 | databricks/notebooks/workspace/cliente/tranformacion_csv.py | [View secret](https://github.com/federicopfund/data-science/commit/51bd43ad4bac4a67dcaca1e3b5d34a16a6a969e9#diff-c7753b8596b3c7df7a99b30242bbacbf2e26daade389e23a38e91147951a97c2R18) | | [5554768](https://dashboard.gitguardian.com/incidents/5554768?occurrence=82875719) | Microsoft Azure Storage Account Key | 16216c70067f6ed760173ab853779768716e3373 | databricks/notebooks/workspace/cliente/Transformaciones/transform.py | [View secret](https://github.com/federicopfund/data-science/commit/16216c70067f6ed760173ab853779768716e3373#diff-4f7469b035d3660a6563dd2c693dbc7b0f4a5b25292ea71b352d90218195c34eR18) | | [5554768](https://dashboard.gitguardian.com/incidents/5554768?occurrence=82875721) | Microsoft Azure Storage Account Key | 524a529b7960194f3f6acbba1f9d62c99444e7fc | databricks/notebooks/workspace/cliente/tranformacion_csv.py | [View secret](https://github.com/federicopfund/data-science/commit/524a529b7960194f3f6acbba1f9d62c99444e7fc#diff-c7753b8596b3c7df7a99b30242bbacbf2e26daade389e23a38e91147951a97c2L18) | | [5554768](https://dashboard.gitguardian.com/incidents/5554768?occurrence=82875725) | Microsoft Azure Storage Account Key | 02bb8d7e5922bb923679702e9123b0720a31340a | databricks/notebooks/workspace/cliente/Transformaciones/transform.py | [View secret](https://github.com/federicopfund/data-science/commit/02bb8d7e5922bb923679702e9123b0720a31340a#diff-4f7469b035d3660a6563dd2c693dbc7b0f4a5b25292ea71b352d90218195c34eL18) | | [5554768](https://dashboard.gitguardian.com/incidents/5554768?occurrence=82875727) | Microsoft Azure Storage Account Key | 6eb4a0545bb483a505fc23c3e95ac8848ba76ded | cicd-etl/notebooks/workspace/cliente/Transformaciones/transform.py | [View secret](https://github.com/federicopfund/data-science/commit/6eb4a0545bb483a505fc23c3e95ac8848ba76ded#diff-1a87b017024226f85fd616411976486cf3b2d5d52411a98a60e804e455c5d9e2R18) | | [5554768](https://dashboard.gitguardian.com/incidents/5554768?occurrence=82875731) | Microsoft Azure Storage Account Key | c2d03a232bcc34fe06612f206e6c90fdf3107d2e | cicd-etl/job/tasks/etl.py | [View secret](https://github.com/federicopfund/data-science/commit/c2d03a232bcc34fe06612f206e6c90fdf3107d2e#diff-4290111abd84120f33e1c445d69db0ead80564d3e48a58caed550a2e48d02612R12) | | [5554768](https://dashboard.gitguardian.com/incidents/5554768?occurrence=82875734) | Microsoft Azure Storage Account Key | 1954c4130cff8db2fd1aaf8a778f35fec4f79b15 | cicd-etl/job/tasks/etl.py | [View secret](https://github.com/federicopfund/data-science/commit/1954c4130cff8db2fd1aaf8a778f35fec4f79b15#diff-4290111abd84120f33e1c445d69db0ead80564d3e48a58caed550a2e48d02612L12) | | [5554768](https://dashboard.gitguardian.com/incidents/5554768?occurrence=82875736) | Microsoft Azure Storage Account Key | 1954c4130cff8db2fd1aaf8a778f35fec4f79b15 | cicd-etl/job/tasks/etl.py | [View secret](https://github.com/federicopfund/data-science/commit/1954c4130cff8db2fd1aaf8a778f35fec4f79b15#diff-4290111abd84120f33e1c445d69db0ead80564d3e48a58caed550a2e48d02612R360) | | [5554769](https://dashboard.gitguardian.com/incidents/5554769?occurrence=82875717) | Microsoft Azure Storage Account Key | 51bd43ad4bac4a67dcaca1e3b5d34a16a6a969e9 | databricks/notebooks/workspace/cliente/tranformacion_csv.py | [View secret](https://github.com/federicopfund/data-science/commit/51bd43ad4bac4a67dcaca1e3b5d34a16a6a969e9#diff-c7753b8596b3c7df7a99b30242bbacbf2e26daade389e23a38e91147951a97c2R22) | | [5554769](https://dashboard.gitguardian.com/incidents/5554769?occurrence=82875720) | Microsoft Azure Storage Account Key | 16216c70067f6ed760173ab853779768716e3373 | databricks/notebooks/workspace/cliente/Transformaciones/transform.py | [View secret](https://github.com/federicopfund/data-science/commit/16216c70067f6ed760173ab853779768716e3373#diff-4f7469b035d3660a6563dd2c693dbc7b0f4a5b25292ea71b352d90218195c34eR22) | | [5554769](https://dashboard.gitguardian.com/incidents/5554769?occurrence=82875722) | Microsoft Azure Storage Account Key | 524a529b7960194f3f6acbba1f9d62c99444e7fc | databricks/notebooks/workspace/cliente/tranformacion_csv.py | [View secret](https://github.com/federicopfund/data-science/commit/524a529b7960194f3f6acbba1f9d62c99444e7fc#diff-c7753b8596b3c7df7a99b30242bbacbf2e26daade389e23a38e91147951a97c2L22) | | [5554769](https://dashboard.gitguardian.com/incidents/5554769?occurrence=82875726) | Microsoft Azure Storage Account Key | 02bb8d7e5922bb923679702e9123b0720a31340a | databricks/notebooks/workspace/cliente/Transformaciones/transform.py | [View secret](https://github.com/federicopfund/data-science/commit/02bb8d7e5922bb923679702e9123b0720a31340a#diff-4f7469b035d3660a6563dd2c693dbc7b0f4a5b25292ea71b352d90218195c34eL22) | | [5554769](https://dashboard.gitguardian.com/incidents/5554769?occurrence=82875728) | Microsoft Azure Storage Account Key | 6eb4a0545bb483a505fc23c3e95ac8848ba76ded | cicd-etl/notebooks/workspace/cliente/Transformaciones/transform.py | [View secret](https://github.com/federicopfund/data-science/commit/6eb4a0545bb483a505fc23c3e95ac8848ba76ded#diff-1a87b017024226f85fd616411976486cf3b2d5d52411a98a60e804e455c5d9e2R22) | | [5554769](https://dashboard.gitguardian.com/incidents/5554769?occurrence=82875732) | Microsoft Azure Storage Account Key | c2d03a232bcc34fe06612f206e6c90fdf3107d2e | cicd-etl/job/tasks/etl.py | [View secret](https://github.com/federicopfund/data-science/commit/c2d03a232bcc34fe06612f206e6c90fdf3107d2e#diff-4290111abd84120f33e1c445d69db0ead80564d3e48a58caed550a2e48d02612R16) | | [5554769](https://dashboard.gitguardian.com/incidents/5554769?occurrence=82875733) | Microsoft Azure Storage Account Key | 607ae5b85fe3b35ac11d4170f85cc1d8638bdf56 | cicd-etl/job/tasks/etl.py | [View secret](https://github.com/federicopfund/data-science/commit/607ae5b85fe3b35ac11d4170f85cc1d8638bdf56#diff-4290111abd84120f33e1c445d69db0ead80564d3e48a58caed550a2e48d02612L16) | | [5554769](https://dashboard.gitguardian.com/incidents/5554769?occurrence=82875735) | Microsoft Azure Storage Account Key | 1954c4130cff8db2fd1aaf8a778f35fec4f79b15 | cicd-etl/job/tasks/etl.py | [View secret](https://github.com/federicopfund/data-science/commit/1954c4130cff8db2fd1aaf8a778f35fec4f79b15#diff-4290111abd84120f33e1c445d69db0ead80564d3e48a58caed550a2e48d02612L16) | | [5554769](https://dashboard.gitguardian.com/incidents/5554769?occurrence=82875737) | Microsoft Azure Storage Account Key | 1954c4130cff8db2fd1aaf8a778f35fec4f79b15 | cicd-etl/job/tasks/etl.py | [View secret](https://github.com/federicopfund/data-science/commit/1954c4130cff8db2fd1aaf8a778f35fec4f79b15#diff-4290111abd84120f33e1c445d69db0ead80564d3e48a58caed550a2e48d02612R363) | | [5554770](https://dashboard.gitguardian.com/incidents/5554770?occurrence=82875718) | Databricks Authentication Token | 6b7494bb3ca1f329523049d0456e59c12186956f | databricks/notebooks/workspace/databricks_workspace.py | [View secret](https://github.com/federicopfund/data-science/commit/6b7494bb3ca1f329523049d0456e59c12186956f#diff-990586129efecf4df179d58bd996ab5232f68899bfd2ac60951569a7c0ddbfc9R26) | | [5554770](https://dashboard.gitguardian.com/incidents/5554770?occurrence=82875723) | Databricks Authentication Token | 524a529b7960194f3f6acbba1f9d62c99444e7fc | databricks/notebooks/workspace/databricks_workspace.py | [View secret](https://github.com/federicopfund/data-science/commit/524a529b7960194f3f6acbba1f9d62c99444e7fc#diff-990586129efecf4df179d58bd996ab5232f68899bfd2ac60951569a7c0ddbfc9L26) | | [5554770](https://dashboard.gitguardian.com/incidents/5554770?occurrence=82875730) | Databricks Authentication Token | d8ce08f7a51f672353705f1f56e7254c816db892 | cicd-etl/notebooks/workspace/workspace.py | [View secret](https://github.com/federicopfund/data-science/commit/d8ce08f7a51f672353705f1f56e7254c816db892#diff-e9f9107f4ea28f9f46f33912fa15d848d9d5646ef1ae1820fb508f634820363eR26) |
🛠 Guidelines to remediate hardcoded secrets
1. Understand the implications of revoking this secret by investigating where it is used in your code. 2. Replace and store your secrets safely. [Learn here](https://blog.gitguardian.com/secrets-api-management?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate these secrets](https://docs.gitguardian.com/secrets-detection/detectors/generics/generic_database_assignment#revoke-the-secret?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data. To avoid such incidents in the future consider - following these [best practices](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://https://docs.gitguardian.com/ggshield-docs/integrations/git-hooks/pre-commit?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) to catch secret before it leaves your machine and ease remediation.

🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!