Module 4 of 8Free to explore

Cloud assessment and shared responsibility boundaries

2 hoursTheory and practiceMedium

Lesson 1. Establish the management layer first

Cloud services distribute responsibilities between provider and consumer, but the boundary depends on the service. A virtual-machine customer generally manages the guest operating system; a managed-database customer manages data, access, and applicable configuration. A cloud brand does not grant permission to assess the provider’s infrastructure. Scope must identify your project, resources, roles, and allowed operations.

Connect configuration risks to a principal, action, resource, and conditions. “An administrator role exists” does not establish its activation conditions or resource scope. Consider inheritance, temporary sessions, explicit denies, and decision logs. Policy-analysis tools identify candidates; conclusions require effective-policy evidence and the actual service model.

Lesson 2. Artifact: a normalized training policy

{
  "principal": "service:report-worker",
  "allow": [{"action": "object:read", "resource": "training-reports/*"}],
  "deny": [{"action": "object:read", "resource": "training-reports/private/*"}],
  "observed": [
    {"resource": "training-reports/public/a.csv", "decision": "allow"},
    {"resource": "training-reports/private/b.csv", "decision": "deny"}
  ]
}

This is an abstract exercise model, not a deployable policy for a particular cloud. Explicit deny takes precedence within this task. The two observed decisions match the model; they do not prove correct behavior for every role or alternate access path.

Lesson 3. Policies belong to a specific platform

Identity, action, and resource form a minimal authorization vocabulary. Explicit denial, conditions, inheritance, and additional platform policy all matter. Cloud and on-prem IAM products apply different rules; this abstract record is not portable deployable JSON. Do not copy fictional action names into working infrastructure.

For Russian-market deployments, identify the product and location: local object storage, private cloud, or approved provider. The model assumes no AWS or Azure presence. Establish trusted identity source, role owner, installed-version documentation, and inventory-export rules. A single deny rule cannot establish regulatory compliance.

Lesson 4. Execute an abstract model

Save policy_model.py and run Python 3. It uses no API keys, SDKs, or network connections.

# policy_model.py: abstract rules, not deployable vendor policy
rules = [
 {'effect':'allow','action':'object:read','resource':'reports/'},
 {'effect':'deny','action':'object:read','resource':'reports/private/'},
]
def decision(action, resource):
    matched = [r for r in rules if r['action']==action and resource.startswith(r['resource'])]
    if any(r['effect']=='deny' for r in matched):
        return 'DENY'
    return 'ALLOW' if any(r['effect']=='allow' for r in matched) else 'DENY'
assert decision('object:read','reports/public/note') == 'ALLOW'
assert decision('object:read','reports/private/note') == 'DENY'
assert decision('object:write','reports/public/note') == 'DENY'
print('public read: ALLOW; private read: DENY; write: DENY')
print('real provider enforcement: not measured')

Expect ALLOW public read and two DENY outcomes. String prefixes were selected for this tiny fixture only. Real resource naming, normalization, conditions, and vendor semantics are more complex; the function is not a safe production IAM engine. Add an unknown action and verify default denial.

Build a table connecting fictional action, actual platform operation, and supporting documentation. The final two columns remain unknown because no product was supplied. This is more accurate than asserting access in a particular cloud account. Live verification requires purpose-created public/private objects and approved control roles.

Separate control plane from data plane: changing policy and reading an object are different permissions. Data-plane observations do not establish authority to modify roles. Preserve permitted reading and private/write denial after correction. Local stdout demonstrates training deny precedence rather than a provider implementation. Deliver a policy matrix, unknown conditions, and an owner-approved retest plan.

Exercise

Build a matrix for a public sample object, a private sample object, and another bucket. Specify the expected decision for each under the supplied model. Request actual effective policies, a temporary-session identifier, and decision logs from the fictional owner. Propose narrowing the service role to the required objects. Work entirely from the JSON; no cloud account or paid resource is needed.

Acceptance criteria

The matrix denies private/b.csv, permits public/a.csv, and does not obtain permission for another bucket from this policy. Separate the model, observations, and missing evidence in the report. Verify remediation using the chosen provider’s real IAM semantics rather than deploying the abstract JSON unchanged. Record session lifetime and delayed policy application as potential retest factors. The plan must not include testing provider infrastructure or another project. Detailed IAM, logging, networking, and key-management assessment belongs in the dedicated cloud security course.

Sources

Try the idea yourself

Why a service cannot be reached

Change the conditions and observe this training model. It runs in your browser and does not change your computer.

DNS→Firewall→HTTPS :443
Observation

Choose conditions above to see an explanation of the result.

Independent exercise · Russian

В учебном облачном проекте омского архива платформа управляет носителями, а заказчик назначает права на контейнеры. На февральской приёмке 2027 года владелец считает архив закрытым, поскольку в паспорте услуги есть отметка о шифровании дисков.

Evidence

Для контейнера «Акты» отчёт платформы подтверждает шифрование. Экспорт политики проекта показывает разрешение чтения для групп Архив и Стажёры. По утверждённой матрице читать вправе только Архив. За неделю зарегистрировано 14 чтений агрегированно, без разбивки по субъектам.

Assignment

Подготовьте заявку на изменение с названием лишнего назначения, ответственным за него, критерием сохранения законного доступа и списком фактов, нужных для ретроспективы.

Compare your reasoning

Владелец проекта отзывает чтение у Стажёров, сохраняет его у Архива и прикладывает новый экспорт фактических прав. Приёмка сверяет решения для двух групп. Четырнадцать чтений нельзя приписать стажёрам. Для ретроспективы нужны журналы доступа к объектам с раздельным учётом субъектов за тот же период.

Personal practice environment

Check an excerpt, find matching lines and compute the SHA-256 of the original text. Temporary data expires after 30 minutes or when you close the environment.