Back to Terraform

Alibaba Security and Operations: KMS, ActionTrail and CloudMonitor

November 6, 2026 Wasil Zafar 28 min read

Coordinate secret/encryption ownership with verified audit and monitoring signals

Table of Contents

  1. Trace RAM and Key Permissions to the Actual Caller
  2. Choose Secret Creation, Retrieval and Rotation Owners
  3. Select ActionTrail and CloudMonitor Signals for Real Failures
  4. Protect Log Contents and Long-Lived Administrative State
  5. Investigate a Harmless Denial and Verify Alert Arrival

Trace RAM and Key Permissions to the Actual Caller

A KMS denial is rarely about the caller you expect. The principal in the event is a RAM role session, a product's service-linked role, or a human at the console. The Terraform root module, the workspace name and the pipeline label never appear as callers, so an investigation that starts from those names starts in the wrong place.

The session name is the only label that survives. One role can be assumed by several jobs, and the provider sends a default session name when the configuration omits one. Set a name per pipeline so an audit entry distinguishes the nightly apply from an engineer debugging the same role.

Three different objects carry the word policy, and only one travels with the key. A RAM policy attaches to a user, role or group and names actions and resources. A key policy attaches to a key inside a dedicated KMS instance. An instance access policy is bound to an application access point and is written by yet another resource. Confusing them produces a grant that reads correctly and authorizes nothing.

There is no separate grant object to inspect. Unlike AWS KMS, Alibaba exposes no per-key grant that a reviewer can list: the permission is a statement in a RAM policy, or a key policy on an instance key. When someone asks where the grant lives, the answer is a document, not a resource.

A grant is a policy document

Alibaba has no per-key grant object to list. Permissions live in a RAM policy, an instance key policy or an application access point policy, so the review reads statements rather than a grant inventory.

Placement decides whether a key policy can exist at all. A key created without an instance ID is a default key in the region, and the provider accepts a policy argument there while the service ignores it. A key created inside a KMS instance can carry a key policy, which makes instance placement a permission decision rather than a sizing one.

Authorization is evaluated before key state. A caller with the right action still fails on a disabled key or one awaiting deletion, and that failure names a state rather than a permission. Read which layer refused before editing a policy, because widening RAM cannot rescue a key that is scheduled to disappear.

A product's service role is a caller in its own right. When RDS encrypts with a customer key, or SLS writes an encrypted logstore, the service assumes a service-linked role and calls KMS as that role. Your pipeline's decrypt permission does nothing for the service, and the event names the service role rather than your job.

Separate the encrypt path from the decrypt path. A writer needs to encrypt or generate data keys; only a reader needs to unwrap them. Granting both to every workload means a compromised writer can read every value it was only supposed to protect.

Cross-account key use is two agreements. The caller's account needs a RAM statement that allows the action on the key, and the key's account needs a policy or role that admits that principal. Remove either side and the call fails at authorization, before any ciphertext is touched.

The alias is a name, not an identity. An alias maps a readable label to a key ID, and the mapping can be repointed, so an alias that outlives a migration points somewhere new. Policies and audit reviews should follow the key ID, and the key owner should own the alias so a workload cannot redirect it.

Least privilege is a resource scope, not a wildcard. The KMS resource names the region, the account and one key, so a statement scoped to that key cannot reach a neighbouring team's data. A wildcard in the resource field matches every key in the account, including the ones created after the review.

Figure 1 asks who is calling before it asks which key exists.

Trace RAM and Key Permissions to the Actual Caller
%%{init: {'theme':'base','themeCSS':'.edgeLabel .label text, .edgeLabel text, .edgeLabel span { fill:#132440 !important; color:#132440 !important; }','themeVariables': {'primaryColor':'#16476A','primaryTextColor':'#ffffff','primaryBorderColor':'#132440','secondaryColor':'#3B9797','secondaryTextColor':'#ffffff','secondaryBorderColor':'#132440','tertiaryColor':'#c4873b','tertiaryTextColor':'#132440','tertiaryBorderColor':'#132440','lineColor':'#5a6e82','textColor':'#132440','titleColor':'#132440','mainBkg':'#16476A','nodeBorder':'#132440','clusterBkg':'#eef3f7','clusterBorder':'#132440','edgeLabelBackground':'#ffffff','actorBkg':'#16476A','actorTextColor':'#ffffff','actorBorder':'#132440','activationBkgColor':'#3B9797','signalColor':'#5a6e82','noteBkgColor':'#c4873b','noteTextColor':'#132440','fontFamily':'DM Sans, sans-serif'}}}%%
flowchart TD
    P["Pipeline RAM role
session name names the job"] --> R{"RAM policy allows
the KMS action?"} S["Product service-linked role
RDS, OSS or SLS"] --> R H["Human operator
break-glass console"] --> R R -->|"no"| D1["Denied before KMS
the action is missing"] R -->|"yes"| T{"Where does
the key live?"} T -->|"default key"| K["Key reached
by its ID"] T -->|"KMS instance"| KP{"Key policy allows
this principal?"} KP -->|"no"| D2["Denied by the key
RAM alone was not enough"] KP -->|"yes"| K K --> ST{"Key state Enabled
and usable?"} ST -->|"no"| D3["Disabled or PendingDeletion
ciphertext stays unreadable"] ST -->|"yes"| OK["Call succeeds
principal and key ID recorded"] A["Alias pointing at a key"] -.->|"resolves to one key"| K E["Key set on RDS or OSS"] -.->|"selects, grants nothing"| K classDef primary fill:#132440,color:#ffffff,stroke:#0b172b; classDef secondary fill:#16476A,color:#ffffff,stroke:#0f314a; classDef ok fill:#3B9797,color:#ffffff,stroke:#2a6f6f; classDef danger fill:#BF092F,color:#ffffff,stroke:#7a0420; classDef warn fill:#c4873b,color:#132440,stroke:#8a5a1f; class P,R,T,KP,ST primary; class S,H,A,E,K secondary; class OK ok; class D1,D2 danger; class D3 warn;

Figure 1 keeps the two key types on one path on purpose. A default key has no key policy to check, while an instance key adds one, and both still depend on the key being enabled. The dashed branches are the two settings people mistake for grants: an alias and an encryption choice on a resource.

Three callers crossing a RAM check, a placement split and a key-state gate A pipeline role, a product service role and a human operator each pass through one RAM policy check. A default key in the region stops there because it has no key policy, while a key inside a KMS instance adds a key policy check. Both then depend on the key being enabled. A crimson footer states that choosing a key on a resource grants no principal the right to use it. Who is calling, and which key answers Authorization, placement and key state are three separate checks. PIPELINE ROLE session name names the job one action on one key SERVICE ROLE RDS, OSS or SLS acting its own principal in the event HUMAN OPERATOR break-glass console session no standing key grant RAM POLICY — identity-based, checked first the action names the operation, the resource names the key no matching statement, no call DEFAULT KEY IN THE REGION no key policy exists on this key RAM was the whole check cheaper, but access cannot be split per key KEY INSIDE A KMS INSTANCE a key policy adds a second check the policy is stored on the key the key owner can admit a caller directly KEY STATE IS THE LAST GATE Disabled or PendingDeletion fails even with a perfect policy. Enabled: the call is recorded principal, action and key ID Choosing a key on a resource grants no principal the right to use it.

Figure 2 puts the three gates in the order the service evaluates them. RAM is asked first, placement decides whether a second policy exists, and the key state answers last. A configuration can satisfy the first two and still fail, which is why the encryption checkbox proves so little.

Choose Secret Creation, Retrieval and Rotation Owners

A secret is a container, and the key is a separate object. The container owns the name, the version history and the rotation schedule; the key owns the bytes. A secret whose encryption key is disabled still exists, still lists its versions, and cannot return a value, which matters when two teams own the two objects.

KMS 3.0 makes the pairing explicit. A secret created inside an instance names both the instance and a symmetric key from that instance, and the provider requires both arguments. A default key cannot encrypt a secret in an instance, so the container and the key are provisioned as one decision.

Terraform can own the container without owning the value, but only if something else writes it. The secret_data argument is required and has no write-only counterpart in provider 2.2.0, so a root that writes the value records it in state. A runtime writer with its own role is the alternative, and it is the only one that keeps the value out of the artifact.

The ciphertext resource has an escape that the secret resource does not. A ciphertext can be produced from a write-only plaintext paired with a version counter, so the value is sent and not stored, provided the CLI is 1.11 or later. No equivalent exists for a secret version, which is why the writer's identity decides whether state holds the credential.

A data source is still a read, and a read writes state. Asking for secret versions with enable_details set returns the secret value into the plan and the state file. A lookup that feels read-only has created a copy, and deleting the state later does not delete the plan that was saved.

Rotation has two meanings, and only one is visible to consumers. Key rotation adds a version of the key and limits how long one version encrypts new data; it never re-encrypts stored ciphertext. Secret rotation replaces the credential in the container, and that is the event an application notices.

Database secrets rotate in place; generic secrets need a worker. For an RDS, Redis or PolarDB secret, the rotation changes the account password in the instance. A generic secret needs a function that mints the value and writes a new version, and if that function stops running the schedule reports nothing at all.

A database rotation will not appear in the plan. From provider 1.204.1, changes to the secret data of a non-generic secret are ignored, so the plan stays clean while the value moves. Rotation becomes an observation task with its own evidence, not a line a reviewer can approve.

The version stage is how a reader learns which value is current. A stage label marks the version that consumers asking by stage should receive. Move the label when a new version is verified, and keep the previous version readable until every consumer has reloaded, or the rotation becomes an outage with a clean audit trail.

Choose an owner for each of the four steps. The creator fixes the name, type and encryption key; the writer supplies the value; the rotator runs the schedule; the consumer reads with its own role. When Terraform performs all four, the pipeline holds the value, the schedule and the read permission at once, and one state leak answers everything.

Deletion has a window, and a flag that skips it. A secret waits in a recovery window of 7 to 30 days before it is removed. Forcing deletion without recovery skips the wait, which is the right choice only for a sandbox that should never be restorable.

Figure 3 follows a value from the owner who defines it to the consumer who keeps using the old one.

Choose Secret Creation, Retrieval and Rotation Owners
%%{init: {'theme':'base','themeCSS':'.edgeLabel .label text, .edgeLabel text, .edgeLabel span { fill:#132440 !important; color:#132440 !important; }','themeVariables': {'primaryColor':'#16476A','primaryTextColor':'#ffffff','primaryBorderColor':'#132440','secondaryColor':'#3B9797','secondaryTextColor':'#ffffff','secondaryBorderColor':'#132440','tertiaryColor':'#c4873b','tertiaryTextColor':'#132440','tertiaryBorderColor':'#132440','lineColor':'#5a6e82','textColor':'#132440','titleColor':'#132440','mainBkg':'#16476A','nodeBorder':'#132440','clusterBkg':'#eef3f7','clusterBorder':'#132440','edgeLabelBackground':'#ffffff','actorBkg':'#16476A','actorTextColor':'#ffffff','actorBorder':'#132440','activationBkgColor':'#3B9797','signalColor':'#5a6e82','noteBkgColor':'#c4873b','noteTextColor':'#132440','fontFamily':'DM Sans, sans-serif'}}}%%
flowchart TD
    O["Owner fixes name, type
and encryption key"] --> W{"Who writes
the value?"} W -->|"Terraform root"| TS["secret data in the config
the value lands in state"] W -->|"runtime writer"| RT["Writer adds a version
with its own RAM role"] TS --> RD{"Consumer reads
with its own role?"} RT --> RD RD -->|"no"| X1["Read denied
no value returned"] RD -->|"yes"| V["Version returned
stage label picks current"] V --> ROT{"Rotation policy
enabled?"} ROT -->|"generic secret"| FN["Function mints the value
and writes a new version"] ROT -->|"database secret"| DB["KMS changes the account
password in the instance"] FN --> C["Consumer keeps the
previous value in memory"] DB --> C C --> X2["Old credential still works
until the consumer reloads"] O -.->|"key disabled"| X3["Secret still listed
value unreadable"] TS -.->|"force delete"| X4["Destroy skips
the recovery window"] classDef primary fill:#132440,color:#ffffff,stroke:#0b172b; classDef secondary fill:#16476A,color:#ffffff,stroke:#0f314a; classDef ok fill:#3B9797,color:#ffffff,stroke:#2a6f6f; classDef danger fill:#BF092F,color:#ffffff,stroke:#7a0420; classDef warn fill:#c4873b,color:#132440,stroke:#8a5a1f; class O,W,RD,ROT primary; class TS,RT,V secondary; class FN,DB ok; class C,X2 warn; class X1,X3,X4 danger;

Figure 3 puts the failure branches where they actually occur. A denial is a missing permission; the dashed branches are design mistakes a plan renders as a replacement or ignores entirely. The slow failure is the consumer that keeps the old value and never reports it.

Write the writer's name into the review. A secret whose value is written by Terraform has the pipeline in its trust boundary whether or not anyone intended it. If the value must stay out of state, the writer is a runtime job, and the review question becomes what that job can reach.

Select ActionTrail and CloudMonitor Signals for Real Failures

ActionTrail gives you 90 days and nothing after that. Management events are queryable in the console and API for the last 90 days without a trail. A trail is the only way to keep them longer, and the destination, not the trail, decides for how long.

A trail is a delivery contract, not a retention setting. The resource names a destination and a role, and it carries no retention period. If the logstore keeps 30 days, the trail keeps 30 days, whatever the description promises.

Creating a trail is only half the API. The provider creates the trail and then enables logging, and the resource exposes an explicit status field. A trail that exists with logging disabled is worse than none, because the inventory says coverage exists.

A trail is not a retention setting

The resource names a destination and a delivery role; the logstore decides retention. Confirm the status field is enabled and the destination exists, or the account will look audited while nothing is delivered.

The delivery role is an account prerequisite. ActionTrail assumes a service-linked role to write to SLS or OSS, and the provider's own example looks that role up rather than creating it. On a new account, confirm the role exists before the first apply, or the trail is created and delivery fails.

Organization trails change who owns the evidence. A multi-account trail requires a resource directory, and it delivers member accounts' events into the management account's destination. That is the right shape for a central audit team, and it means a member account cannot quietly delete its own history. The management account also carries the ingestion and storage bill, so the audit budget belongs to whoever owns the destination.

KMS calls are management events, including the reads. ActionTrail lists Decrypt and GetSecretValue among the events it records for KMS, beside CreateKey and ScheduleKeyDeletion. A failed call carries an error code and message, which is how a denial becomes evidence rather than a complaint.

Event scope is a cost and coverage decision. Operation events cover the control plane; data events are selected per region and add volume and cost. Turning on everything is not the same as covering what you need, and the bill arrives before the coverage review does.

CloudMonitor answers a different question. It compares a metric with a threshold over a period, and it knows nothing about whether an audit entry arrived. An alarm on CPU proves the instance was busy; it cannot prove the trail delivered.

An alarm destination is a person, and a person must activate. A contact group names contacts, and an email or SMS contact only starts receiving notifications after activation. An unverified contact is a silent alarm that passes a configuration review.

The failure with no data is the one nobody configures. A log alert can fire when its query returns nothing, which is exactly the stopped-trail signal, and that behaviour is off by default. Without it, the quietest incident is the one that never pages.

Three control-plane events deserve their own alert. Scheduling a key for deletion, changing a key policy, and disabling a trail are the moves that remove evidence or access, and each is a small query over the same logstore. An alert that names the action and the caller is worth more than a dashboard nobody watches.

The table compares what each signal can prove on the day someone asks for evidence.

SignalWhat it provesPrerequisite or defaultBlind spot
ActionTrail event querywhich account API calls happened in the last 90 dayson by default, no trail requiredolder events are gone and data events are absent
Trail to SLSdelivery into a logstore you can query and alert onlogstore, service role, trail status enableda stopped trail delivers nothing and looks quiet
Trail to OSSa cheap long-term archive of the same eventsbucket, key prefix, delivery rolenot queryable in place, so an investigation needs a copy
Log alert with no-data firingthat the expected entries stopped arrivingquery, schedule, notification target, no-data switcha wrong query reports healthy silence
CloudMonitor metric alarmthat a resource crossed a threshold for a periodcontact group with an activated contactsays nothing about missing audit entries
CloudMonitor event rulethat a service emitted a state-change eventapplication group and event patternonly covers products that publish events

Read the table as three independent pipelines. Collection, delivery and notification fail separately, and each failure looks like calm. A green trail with a broken role, a healthy logstore with no alert, and an alert with an unactivated contact all present as "no incidents".

A silence timer hides the second page. CloudMonitor suppresses repeat notifications for a day after an alarm fires unless the interval is changed. A test that fires twice within the hour proves only the first delivery, so record the interval beside the alarm.

Protect Log Contents and Long-Lived Administrative State

The audit log is a dataset with a classification. Principal, action, resource, source address, request parameters and error text all appear in the event, and some parameters carry names and policy documents rather than values. Classify the logstore as sensitive administrative data, not as operational noise.

Reading the log is a privilege of its own. A role with full log read sees every principal's activity, including the security team's. Grant query access to the responder role, and keep broad read away from workload roles that only need to write.

A logstore can be encrypted with a customer key, which creates a dependency. Enabling BYOK adds the key, the role SLS assumes and the key's region to the logstore configuration. If that key is disabled, the stored data cannot be read, so a key incident becomes an audit incident.

Retention is a range, and the top of it is permanent. A logstore keeps data from 1 to 3650 days, and 3650 means the service never expires it. Choose the number from the compliance question and write it beside the project, so the next editor does not treat 30 as a default.

Deleting the project deletes the evidence. Logstores belong to a project, and a destroy in the wrong root removes the container and its data together. The guard is structural: a separate state, a separate role and a separate approver.

The key needs its own guard. deletion_protection on a KMS key refuses a scheduled deletion while it is enabled, and the pending window gives 7 to 366 days for a mistaken schedule to be cancelled. A destroy plan that removes the key also removes every secret and logstore that depends on it.

State is part of the protected surface. If Terraform wrote a secret value, the value is in the state file; if it wrote a webhook URL, that URL is an alarm destination anyone with state access can replace. Encrypt and restrict the backend for the same reason you restrict the console.

Aliases and policies are administrative state too. An alias repoint changes where new writes land, and a policy edit changes who can read. Both belong in a reviewed root, and the audit root's own identity should not be able to edit them.

The recovery plan must name the key. A restored logstore is useless while its customer key is disabled, so the runbook orders the actions: enable the key, confirm the logstore reads, then query. Writing that order down is the difference between an outage and an investigation.

A central logstore still needs a member-side reader. With an organization trail, the management account owns the destination and the member's responder has no direct access. Create a narrow cross-account read role per member team, and test it with the same query the incident runbook uses, or the first real investigation begins with an access request.

Figure 4 contrasts an audit root that shares the workload's blast radius with one that has its own owner.

An audit root inside the workload account compared with one that has its own owner The left panel shows the workload account's CI role able to destroy the logstore, retention left at 30 days, no customer key and an unactivated alert contact. The right panel shows a separate audit role, retention fixed at the audit requirement, BYOK through a customer key and an activated contact with a tested webhook. A failure path below shows a disabled key making the logstore unreadable and leaving no evidence and no alert. One retention decision, two blast radii Who can destroy the evidence, and what the evidence depends on. AUDIT ROOT IN THE WORKLOAD ACCOUNT the same CI role can destroy the logstore retention left at the 30-day default no customer key protects the logstore the alert contact was never activated evidence and its owner share a blast radius a destroy plan is a retention decision AUDIT ROOT WITH ITS OWN OWNER a separate role, no workload write access retention fixed at the audit requirement BYOK through a customer key an activated contact and a tested webhook member accounts read through a role the trail delivers, the logstore decides how long FAILURE PATH CMK disabled by a key owner's change logstore unreadable retention still says 3650 no evidence, no alert the incident is unprovable The audit log depends on a key another team owns. Order the recovery: enable the key, read the logstore, then query.

Figure 4 separates the retention number from the blast radius. The left root stores evidence and the ability to delete it in the same identity; the right root separates them, but adds a key dependency that must be tested. Neither shape is free, and the failure path belongs in the runbook either way.

Protection that depends on a plan is a convention. Deletion protection, a pending window and a separate approver are controls the service enforces; a destroy-time guard in the same root is only a comment. Put the audit project and its key under an owner who cannot be paged for the workload.

Investigate a Harmless Denial and Verify Alert Arrival

The lab produces three artifacts: a denial, a delivered entry, and a delivered notification. The denial comes from a test role with no key permission, the entry proves the trail carried it, and the notification proves a human would have been told. A canary value keeps the evidence harmless, and the spend stays inside the sandbox.

Lab

Investigate a Harmless Denial and Verify Alert Arrival

Execution status: design-only. No Alibaba Cloud account, credential or billable resource was used, and none of these steps were executed. Every identifier below is a placeholder you replace: the sandbox account, region, KMS instance, logstore and contact are values you nominate.

Prerequisites. Terraform 1.17.1 with aliyun/alicloud 2.2.0, a disposable account or sandbox project, permission to create a KMS key and secret in a KMS instance you may use, permission to create a Log Service project and trail, and one sandbox ECS instance for the alarm. One synthetic value labelled as a canary. No production credential belongs anywhere in the root.

Setup. One KMS instance and one symmetric key, one generic secret holding the canary with a 7-day recovery window, one logstore with 30-day retention, one trail delivering to it, one test RAM role with metadata read but not value read, and one contact group with an address you can check.

CheckEvidence to capturePass looks like
Denialthe CLI error and request ID as the test rolerefused, no value printed
Trail statethe trail read-backdelivery target set and logging enabled
Deliveryone event for the denied readprincipal, action, key and error field
Successthe same read after the grantvalue returned and a success event
Alarmthe alarm history rowALARM at the expected time
Destinationthe message at the activated contactsame alarm name and resource
Rotationversion and stage labelsnew version current, old still readable
  1. Record a baseline plan and confirm it is empty before adding anything. A non-empty baseline makes every later diff ambiguous.
  2. Create the instance key and the canary secret, and confirm the secret names the same instance as the key. Note the version label the provider reports.
  3. Create the logstore, then the trail with the project reference and logging enabled. Read the trail back; a created trail is not necessarily a running one.
  4. Create the test role with a policy that can describe the secret but cannot read its value. Keep the role free of every other KMS action.
  5. As the test role, attempt the read and expect a denial. Capture the error code and the request ID only, and never print the returned body.
  6. Wait for delivery. ActionTrail typically delivers within ten minutes, so a query run immediately after the denial proves nothing about coverage.
  7. Query the logstore for that principal and the KMS read action, projecting principal, action, resource, status and time. Confirm the error field matches the CLI denial.
  8. If no event appears, record the absence and stop treating ActionTrail as denial evidence for that action. That finding is more valuable than a passing test.
  9. Grant the read permission on the secret to the test role, repeat the call, and confirm the value returns and a second event carries a success status.
  10. Create the contact group with an activated address, then an alarm on the sandbox instance whose condition is always true. Confirm the alarm enters ALARM and the message arrives.
  11. Disable the alarm rather than waiting for a second fire, and record the silence interval. The default suppresses repeat notifications for a day.
  12. Rotate the secret by adding a version, confirm the stage label moved to it, and confirm the previous version still returns its value when read by version ID. Removing a version and moving a stage are separate decisions.
  13. Remove the grant, destroy the lab root, and confirm the logstore still holds the events you collected.

Expected observation. The denial appears with the error field set, the granted read produces a matching success event, and the alarm message reaches the activated contact. The rotation leaves two readable versions, and only the stage label says which one a consumer should use.

Failure checks. No event after the wait means the trail is disabled, the delivery role is missing, or the action is outside the recorded scope. An event with no destination copy means the destination role or an exclusion is wrong. An alarm that never notifies usually has an unactivated contact or a silence interval still running.

Rotation check. A new key version needs a seven-day gap from the previous one, so key rotation cannot be rehearsed in the same hour as the rest of the lab. Rotate the secret instead, and test key rotation on its own schedule with the same evidence table.

Redaction rules. Keep the principal, the action, the resource, the status and the time. Drop request parameters, response bodies and anything that could carry a credential. A canary that never leaves the sandbox is safe to search for; a real value is not safe to prove anything with.

Evidence to keep. The empty baseline plan, the trail read-back, the retention setting, the denial message, the event fields, the alarm history row, the delivery receipt and the two version stages. Together they answer who tried, what they touched, whether it worked, and who would have been told.

The missing event is a result, not a failed lab. A denial that leaves no entry tells you the coverage boundary before an incident does, and it is the cheapest finding in the exercise. Write it next to the trail's scope so the next reviewer inherits the limit.

Alert arrival is the only proof of an alert. An alarm rule in the plan and a contact group in the console are configuration, not delivery. One harmless fire, one received message and one recorded silence interval turn the pair into evidence a reviewer can check.

Next in the Series

In Alibaba Regional Delivery: DNS, CDN and Cross-Network Boundaries, we'll explore Evaluate regional connectivity and edge ownership with account and product constraints made explicit.