BolEnglishLearn · Play · Win
Login

🔒 Software Design & Architecture · Architecture Evaluation Factors

🔒

Security in Software Design

Quality AttributeCoreModule 1

Protection of data, functions, identities, and system access.

Only the right users should access the right information, and sensitive information must be protected.

💡 In practice

A customer can see their own application but cannot change another customer's application by editing a URL.

🖼️ CONCEPT PICTURE
A picture to help remember Security
A customer can see their own application but cannot change another customer's application by editing a URL.

💡 Like a locked vault with a guest list — only the right people get in, and valuables stay protected.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

A breach can leak customer data, break trust, and break the law. Security controls who can access what and keeps sensitive data safe — it must be designed in, not added later.

🛠️ How to achieve it

1
Check permissions server-side
Never trust the client; verify every user may do every action on the server.
2
Least privilege
Give each user and service only the access they truly need.
3
Protect sensitive data
Encrypt in transit and at rest; never log secrets or passwords.
4
Validate all input
Treat input as untrusted to prevent injection and tampering.

⚠️ Signs of trouble

  • •Access is checked only in the UI, not on the server.
  • •Everyone has broad, admin-like access.
  • •Sensitive data or secrets appear in logs or URLs.
⚠️ Common mistake: Relying on 'hiding' a UI control for security — a user can still call the API directly if the server doesn't enforce access.

🎯 Quick check

Score: 0/2

Three questions to test the idea.

  1. 1. A customer edits a URL to open another customer's record. This is a failure of…

    Answer: Authorization (access control)

    The server must check that this user is allowed to access that record — not just hide it in the UI.

  2. 2. 'Least privilege' means…

    Answer: Giving each user or service only the access they actually need

    Minimum necessary access limits the damage if an account is misused or compromised.

🔑 Key terms

Authentication
Proving who you are.
Authorization
What you are allowed to do.
Least privilege
The minimum access needed to do the job.
Encryption
Scrambling data so only the right key can read it.

✅ Review checklist

📊 Your progress

0%
Mark this topic learned to track it.
Saved in this browser.
🚀 Got it?
Mark it learned and move to the next topic.
Next topic →