concept account in category security

appears as: ccount, accounts, ccounts, The accounts, account, n account, The account
Secure by Design

This is an excerpt from Manning's book Secure by Design.

If your software is interacting with other software (say, for example, you’re developing a service in a microservices architecture), then you’re going to need to think about how to define the public API for your service in order for it to be cohesive and easy to consume and be versioned. You’ll also need to consider how it’ll interact with other services in order to be resilient and responsive, and to provide acceptable uptime. On a higher level, you’re probably going to have to take into account that your service also needs to fit into the overall system architecture. You’re making decisions that, albeit quite diverse, are all part of shaping the overall design of the software.

The lady from accounting continues: “I was running the accounts receivable ledger, and the system issued a credit invoice to him for $39. But when we were going to mail the book to him, we noticed a strange thing about his customer address; it’s the same as our address here at headquarters. That’s why I got suspicious and started asking around.”

Figure 2.3 Online store sending -$39 to billing and to the accounts receivable ledger

figure02-03.eps

An interesting aspect of this story is that the security problem can’t be understood without understanding each of these systems and how they react and interact. We’ll start with two of them: the billing system and the accounts receivable ledger.

Listing 6.5 Changing from a credit limit to a fallback account
    public void changeToFallbackAccount(AccountNumber fallbackAccount) {
        this.creditLimit = null;    #1  
        this.fallbackAccount = fallbackAccount;    #2  
        checkInvariants();    #3  
    }

#1   After removing the credit limit, the account is temporarily inconsistent.
#2   Fallback account set and invariants hold again
#3   Checking invariants before returning control to the outside