-
Notifications
You must be signed in to change notification settings - Fork 0
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
Сделал домашку #1
Open
lppt
wants to merge
3
commits into
main
Choose a base branch
from
sprint-7
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
3 commits
Select commit
Hold shift + click to select a range
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
Binary file not shown.
This file contains 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,2 @@ | ||
cert/ | ||
*.bkp |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 +1,58 @@ | ||
# Задание 1. Разработка проверочного листа по безопасности данных | ||
|
||
## Классификация данных | ||
|
||
### Список данных | ||
|
||
- База данных объектов недвижимости (client-mart-estate-db) | ||
|
||
- Информация об объектах недвижимости [П] | ||
|
||
- База данных для хранения информации об объектах недвижимости и сделкам по ним (client-mart-db) | ||
|
||
- Стоимость объектов недвижимости [В] | ||
- Сделки пользователей [K] | ||
|
||
- База данных проведения онлайн-тура (client-tour-db) | ||
|
||
- Онлайн туры [П] | ||
- История проведения туров [В] | ||
|
||
- База данных CRM (crm-db) | ||
|
||
- Клиентские данные [K] | ||
|
||
- База данных сервиса аутентификации покупателей (auth-db-1) | ||
|
||
- Аутентификационные данные покупателей [K] | ||
- История доступа в систему [К] | ||
|
||
- База данных услуг ЖКХ по собственникам (tenant-core-db) | ||
|
||
- Список услуг ЖКХ [П] | ||
- Заявки на предоставление услуг [К] | ||
|
||
- База данных CRM по собственникам (crm-tenant-db) | ||
|
||
- Данные собственников [К] | ||
|
||
- База данных бухгалтерского учета (accountant-db-1) на схеме она правда auth-db-1, но будем считать это ошибка | ||
|
||
- Данные бух. учета [K] | ||
|
||
- Физическое хранилище данных DWH (DWH Хранилище) | ||
|
||
- Дублирование всех данных? [K] | ||
|
||
- Служба каталогов, которая обслуживает прикладные бизнес-системы и системы обработки данных (AD1) | ||
|
||
- Аутентификационные данные бухгалтеров [В] | ||
|
||
- Служба каталогов, которая обслуживает финансовые сервисы (AD2) | ||
|
||
- Аутентификационные данные менеджеров и бизнес аналитиков [В] | ||
|
||
- Список поставщиков ресурсов ЖКХ [В] | ||
- Ключи платежной системы [C] | ||
- Список процессов компании [В] | ||
- Данные для взаимодействия с Гос. органами [C] |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 +1,31 @@ | ||
# Задание 3. Внешние интеграции | ||
|
||
Интеллектуальный домофон. Включает функции классического видеодомофона — открытие по звонку. Также есть возможность распознавать пользователей по биометрии (по лицу) и автоматически открывать дверь, если им разрешён доступ в дом. | ||
|
||
Интеллектуальный шлагбаум. Включает функции классического управления шлагбаумом и автоматически открывает доступ, если распознаёт номера автомобилей, которым въезд разрешён. | ||
|
||
Новые данные: | ||
|
||
1. Номера автомобилей | ||
2. Биометрия (Лица пользователей) | ||
|
||
Насколько я понимаю, все эти данные необходимо будет передавать партнеру, | ||
т.к. иначе при проблемах с апи PropDevelopment люди не смогут попасть домой. | ||
|
||
## Требования к безопасности | ||
|
||
- С партнером необходимо подписать соглашени, а собственников уведомлять, что их биометрические данные могут быть переданы партнеру для обработки и хранения. От партнера необходимо будет получить подтверждение соответствия законодательству РФ | ||
- Данные должны передавать по защищенному соединению (ssl/tls) | ||
- Данные должны передаваться в минимальном объеме и по возможности не должны быть связаны с конкретным пользователем. Например номер машины не должен быть связан с владельцем, достаточно просто наличия номера в базе чтобы открыть шлагбаум. Аналогично с биометрией. | ||
|
||
## Протоколы аутентификации и авторизации | ||
|
||
Аутентификация сервисов должна проходить с использованием OAuth2.0. | ||
|
||
В приложение необходимо включить дополнительную защиту при работе с биометрией. | ||
|
||
## Взаимодействие между системами предприятия и внешней платформой | ||
|
||
- Все моменты передачи данных должны фиксироваться в журнале. | ||
- Недопустимо хранение неиспользуемых данных | ||
- Взаимодействие должно происходить через выделенный api. |
Binary file not shown.
This file contains 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,27 @@ | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: read-role | ||
namespace: default | ||
subjects: | ||
- kind: User | ||
name: user1 | ||
apiGroup: rbac.authorization.k8s.io | ||
roleRef: | ||
kind: Role | ||
name: reader | ||
apiGroup: rbac.authorization.k8s.io | ||
--- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: edit-role | ||
namespace: default | ||
subjects: | ||
- kind: User | ||
name: user2 | ||
apiGroup: rbac.authorization.k8s.io | ||
roleRef: | ||
kind: Role | ||
name: editor | ||
apiGroup: rbac.authorization.k8s.io |
This file contains 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,31 @@ | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
namespace: default | ||
name: reader | ||
rules: | ||
- apiGroups: [“”] | ||
resources: ["pods", "services", "deployments"] | ||
verbs: [“get”, “watch”, “list”] | ||
|
||
--- | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
namespace: default | ||
name: editor | ||
rules: | ||
- apiGroups: [“”] | ||
resources: ["pods", "services", "deployments"] | ||
verbs: ["get","list","watch", "create","update","patch","delete"] | ||
|
||
--- | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
namespace: default | ||
name: admin | ||
rules: | ||
- apiGroups: [“”] | ||
resources: ["*"] | ||
verbs: ["*"] |
This file contains 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 @@ | ||
mkdir cert | ||
cd cert | ||
openssl genrsa -out user1.key 2048 | ||
openssl req -new -key user1.key -out user1.csr -subj "/CN=user1/O=group1" | ||
openssl x509 -req -in user1.csr -CA ~/.minikube/ca.crt -CAkey ~/.minikube/ca.key -CAcreateserial -out user1.crt -days 500 | ||
kubectl config set-credentials user1 --client-certificate=user1.crt --client-key=user1.key | ||
kubectl config set-context user1-context --cluster=minikube --user=user1 | ||
|
||
openssl genrsa -out user2.key 2048 | ||
openssl req -new -key user2.key -out user2.csr -subj "/CN=user2/O=group1" | ||
openssl x509 -req -in user2.csr -CA ~/.minikube/ca.crt -CAkey ~/.minikube/ca.key -CAcreateserial -out user2.crt -days 500 | ||
kubectl config set-credentials user2 --client-certificate=user2.crt --client-key=user2.key | ||
kubectl config set-context user2-context --cluster=minikube --user=user2 | ||
|
||
kubectl apply -f roles.yaml | ||
kubectl apply -f bindings.yaml |
Binary file not shown.
This file contains 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,59 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: admin-app-policy | ||
namespace: default | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
role: admin-back-end-api | ||
policyTypes: | ||
- Ingress | ||
- Egress | ||
ingress: | ||
- from: | ||
- podSelector: | ||
matchLabels: | ||
role: admin-front-end | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
egress: | ||
- to: | ||
- podSelector: | ||
matchLabels: | ||
role: admin-front-end | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
|
||
--- | ||
|
||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: app-policy | ||
namespace: default | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
role: back-end-api | ||
policyTypes: | ||
- Ingress | ||
- Egress | ||
ingress: | ||
- from: | ||
- podSelector: | ||
matchLabels: | ||
role: front-end | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
egress: | ||
- to: | ||
- podSelector: | ||
matchLabels: | ||
role: front-end | ||
ports: | ||
- protocol: TCP | ||
port: 80 |
This file contains 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,5 @@ | ||
kubectl run front-end-app --image=nginx --labels role=front-end --expose --port 80 | ||
kubectl run back-end-api-app --image=nginx --labels role=back-end-api --expose --port 80 | ||
kubectl run admin-front-end-app --image=nginx --labels role=admin-front-end --expose --port 80 | ||
kubectl run admin-back-end-api-app --image=nginx --labels role=admin-back-end-api --expose --port 80 | ||
kubectl apply -f non-admin-api-allow.yaml |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а для admin-front-end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не заметил :)