-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathaccess_control_rules.yaml
61 lines (61 loc) · 3.13 KB
/
access_control_rules.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
questions:
-
uuid: 1eebf878-8ba1-60f2-ab9d-99d84c92580c
question: 'Which line is correct to add a security.access_control line?'
answers:
- { value: '- { path: ^/admin, roles: ROLE_ADMIN }', correct: true }
- { value: '- { path: ^/admin, acl: ROLE_ADMIN }', correct: false }
- { value: '- { url: ^/admin, roles: ROLE_ADMIN }', correct: false }
- { value: '- { url: ^/admin, acl: ROLE_ADMIN }', correct: false }
help: 'https://symfony.com/doc/current/security/access_control.html#matching-options'
-
uuid: 1eeda48d-d1bc-6f24-b3b4-a5b63ba17a88
question: 'Which options are matching words in access_control ?'
answers:
- { value: request_matcher, correct: true }
- { value: route, correct: true }
- { value: attributes, correct: true }
- { value: path, correct: true }
- { value: 'ip or ips', correct: true }
- { value: port, correct: true }
- { value: host, correct: true }
- { value: methods, correct: true }
- { value: roles, correct: false }
- { value: allow_if, correct: false }
- { value: channel, correct: false }
help: 'https://symfony.com/doc/current/security/access_control.html#1-matching-options'
-
uuid: 1eeda49f-6fcf-605c-b22b-4b78416c49eb
question: 'Which words are options enforces access in access control ?'
answers:
- { value: request_matcher, correct: false }
- { value: channel, correct: true }
- { value: 'allow if', correct: true }
- { value: roles, correct: true }
- { value: methods, correct: false }
- { value: host, correct: false }
- { value: port, correct: false }
- { value: 'ip or ips', correct: false }
- { value: route, correct: false }
- { value: methods, correct: false }
- { value: path, correct: false }
- { value: attributes, correct: false }
help: 'https://symfony.com/doc/current/security/access_control.html#2-access-enforcement'
-
uuid: 1eeda4c7-518c-6fa4-80fb-09b72beaa117
question: "If i have this access_control configured (roles: 'ROLE_ADMIN' and allow_if: \"'127.0.0.1' == request.getClientIp() or request.headers.has('X-Secure-Access'). In Which configuration can i go on this page ?"
answers:
- { value: 'if i have ROLE_ADMIN', correct: false }
- { value: 'If i have a header caledd X-Secure-Access', correct: false }
- { value: 'if my ip is 127.0.0.1', correct: false }
- { value: 'every case', correct: true }
- { value: none, correct: false }
help: 'https://symfony.com/doc/current/security/access_control.html#securing-by-an-expression'
-
uuid: 1eee7804-148f-612c-9026-b35e86785063
question: 'What does the affirmative strategy of AccessDecisionManager do?'
answers:
- { value: 'Grant access as soon as there is one voter granting access.', correct: true }
- { value: 'Only grant access if none of the voters has denied access.', correct: false }
- { value: 'Grant access if there are more voters granting access than there are denying.', correct: false }
help: 'https://symfony.com/doc/current/security/voters.html#changing-the-access-decision-strategy'