Oriel — AI & technology worth noticing, every day.

Day 90: A Mask in the Way and a Policy Pointing at Nothing

Post · https://dev.to/ndcodes/day-90-a-mask-in-the-way-and-a-policy-pointing-at-nothing-390o

Day 90 of DevOps, Day 40 of Azure. Both tasks today were about a permission that exists, reads back...

First seen by Oriel on .

AI summary

A DevOps lab write-up shows how Linux ACL masks and Azure Key Vault principal IDs can leave permissions visible in configuration but ineffective, and recommends testing the operation each permission should allow.

  • The Ansible playbook uses separate plays to create files and set distinct ACLs on three servers; the `acl` module comes from `ansible.posix`, and its `state` must be `present` to change permissions.
  • With extended ACLs, `ls -l` shows the ACL mask in the group permission bits, not the owning group's permissions; `getfacl` reveals entries and any `#effective` limits.
  • For an Azure service principal, `az account show` returns the application ID, while Key Vault `--object-id` requires the directory object ID; the token's `oid` claim provides that ID when Microsoft Graph access is unavailable.
  • The Key Vault policy must temporarily grant `create` to make the key, then replace that permission set with the required Get, List, Encrypt and Decrypt permissions; the final policy needs a separate verification.
  • RSA-OAEP with a 4096-bit key supports at most 470 bytes of plaintext; larger files require envelope encryption, and the vault's seven-day soft-delete retention is fixed at creation.

#ansible #linux acl #azure key vault #rsa

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Reactions

Total public reactions reported by the source; distinct from points and likes.

  • DEV Community: 25, latest observation ; 0 over observed period since

Comments

Comment count reported by the source.

  • DEV Community: 32, latest observation ; +2 over observed period since

Aliases

SourceExternal IDURL
DEV Community5048876https://dev.to/ndcodes/day-90-a-mask-in-the-way-and-a-policy-pointing-at-nothing-390o Read discussion