diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 9aac32fe..d9d6fa17 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -11,3 +11,5 @@ - [ ] Заголовок четкий и информативный. - [ ] Документация (README) обновлена (при необходимости). - [ ] В коде нет секретов (паролей, ключей) и лишних файлов. +- [ ] Task 1 done +- [ ] Task 2 done \ No newline at end of file diff --git a/labs/image-1.png b/labs/image-1.png new file mode 100644 index 00000000..3160dd19 Binary files /dev/null and b/labs/image-1.png differ diff --git a/labs/image-2.png b/labs/image-2.png new file mode 100644 index 00000000..a54eeb40 Binary files /dev/null and b/labs/image-2.png differ diff --git a/labs/image-3.png b/labs/image-3.png new file mode 100644 index 00000000..a98a864c Binary files /dev/null and b/labs/image-3.png differ diff --git a/labs/image.png b/labs/image.png new file mode 100644 index 00000000..aa1129aa Binary files /dev/null and b/labs/image.png differ diff --git a/labs/submission1.md b/labs/submission1.md new file mode 100644 index 00000000..b1925ae9 --- /dev/null +++ b/labs/submission1.md @@ -0,0 +1,58 @@ +# Задание 1 Проверка подписи подтверждения SSH-соединения + +## 1. Преимущества подписания коммитов +Подписание коммитов обеспечивает **аутентификацию** и **целостность** данных. +* **Подтверждение авторства:** Гарантирует, что код написал именно владелец приватного ключа, а не злоумышленник, подставивший чужой `user.name` в настройки Git. +* **Защита от подмены:** Любое изменение кода после подписания сделает подпись недействительной. + +## 2. Почему подписание коммитов важно в DevOps? +В процессах DevOps и CI/CD автоматизация играет ключевую роль. Если pipeline автоматически берет код и отправляет его в продакшн, критически важно быть уверенным в источнике этого кода. +Подпись коммитов защищает от атак, когда хакеры внедряют вредоносный код в надежный репозиторий. Системы безопасности могут быть настроены так, чтобы отвергать любые изменения без валидной подписи. + +## 3. Подтверждение +### Скриншот Verified статуса на GitHub +*![alt text](image.png)* + + +# Task 1 (English version) + +## 1. Benefits of Signing Commits +Signing commits ensures both **authentication** and **data integrity**. +* **Proof of Authorship:** It guarantees that the code was written by the owner of the private key, preventing malicious actors from spoofing the `user.name` or email. +* **Tamper Protection:** It ensures that the commit data has not been altered by third parties after it was signed; any modification would invalidate the signature. + +## 2. Why is Commit Signing Important in DevOps Workflows? +In DevOps and CI/CD pipelines, automation is key. Since automated systems deploy code to production without manual checks, verifying the source of the code is critical. +Commit signing protects against **Supply Chain Attacks**, where attackers might try to inject malicious code into a trusted repository. Security policies in CI/CD can be configured to automatically reject any changes that lack a valid signature, ensuring only verified code reaches production. + +## 3. Just look at the screenshot in russian version + +# Задание 2 Шаблон Pull Request + +## Скриншот шаблона +*![alt text](image-1.png)* + +Шаблон работает / template is workong +![alt text](image-3.png) + +## Доказательство наличия файла +![alt text](image-2.png). + +## Анализ пользы шаблонов +Использование шаблонов для PR значительно улучшает сотрудничество, так как: +1. **Стандартизация:** Все разработчики оформляют описание одинаково. +2. **Напоминание:** Чек-лист не дает забыть про важные вещи (тесты, документация). +3. **Экономия времени:** Не нужно каждый раз придумывать структуру описания с нуля. + +# Task 2 English version + +## for paragraph 1 and task 2 loot at screenshots + +## 3. Analysis: How PR Templates Improve Collaboration +Using Pull Request templates significantly enhances team collaboration by: +1. **Standardization:** It ensures all developers follow a consistent format for descriptions, making it easier for reviewers to understand the context. +2. **Compliance & Quality:** The checklist serves as a mandatory reminder for critical steps (e.g., running tests, updating documentation), reducing the chance of human error. +3. **Efficiency:** It saves time by providing a ready-to-use structure, eliminating the need to write descriptions from scratch for every change. + + +