65
Business Value of CI, CD, & DevOps Sec Scaling Up to Billion User Global Systems of Systems Using E ND - TO -E ND A UTOMATION & C ONTAINERIZED D OCKER U BUNTU I MAGES Dr. David F. Rico, P MP , C SEP , F CP , F CT, A CP , C SM , S AFE , D EVOPS Twitter: @dr_david_f_rico Website: http://www.davidfrico.com LinkedIn: http://www.linkedin.com/in/davidfrico Agile Capabilities: http://davidfrico.com/rico-capability-agile.pdf Agile Cost of Quality: http://www.davidfrico.com/agile-vs-trad-coq.pdf DevOps Return on Investment (ROI): http://davidfrico.com/rico-devops-roi.pdf Dave’s NEW Business Agility Video: https://www.youtube.com/watch?v=-wTXqN-OBzA Dave’s NEWER Development Operations Security Video: https://vimeo.com/214895416 DoD Fighter Jets vs. Amazon Web Services: http://davidfrico.com/dod-agile-principles.pdf

Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Business Value ofCI, CD, & DevOpsSec

Scaling Up to Billion User Global Systems of Systems Using END-TO-END AUTOMATION &

CONTAINERIZED DOCKER UBUNTU IMAGESDr. David F. Rico, PMP, CSEP, FCP, FCT, ACP, CSM, SAFE, DEVOPS

Twitter: @dr_david_f_ricoWebsite: http://www.davidfrico.com

LinkedIn: http://www.linkedin.com/in/davidfricoAgile Capabilities: http://davidfrico.com/rico-capability-agile.pdf

Agile Cost of Quality: http://www.davidfrico.com/agile-vs-trad-coq.pdfDevOps Return on Investment (ROI): http://davidfrico.com/rico-devops-roi.pdf

Dave’s NEW Business Agility Video: https://www.youtube.com/watch?v=-wTXqN-OBzADave’s NEWER Development Operations Security Video: https://vimeo.com/214895416DoD Fighter Jets vs. Amazon Web Services: http://davidfrico.com/dod-agile-principles.pdf

Page 2: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Author Background Gov’t contractor with 34+ years of IT experience B.S. Comp. Sci., M.S. Soft. Eng., & D.M. Info. Sys. Large gov’t projects in U.S., Far/Mid-East, & Europe

2

Career systems & software engineering methodologist Lean-Agile, Six Sigma, CMMI, ISO 9001, DoD 5000NASA, USAF, Navy, Army, DISA, & DARPA projects Published seven books & numerous journal articles Intn’l keynote speaker, 195+ talks to 14,300 people Specializes in metrics, models, & cost engineeringCloud Computing, SOA, Web Services, FOSS, etc. Professor at 7 Washington, DC-area universities

Page 3: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

3

DevOps—Dinosaur Killer

DevOps is an Extinction Level Event• 25-50B Devices on IOT• 5-10B Internet Hosts• 4-8B Mobile Phones• 2-3B End User Sys• Mass Business Failure

Page 4: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

4

DevOps—Scotty from Star Trek

We’re Gonna Need Some Really Big Warp Enginesto Move the Enterprise at Speed of Light Captain!

Page 5: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

5

DevOps—The Rock

Don’t Show Up for a GunfightWithout a Kevlar Vest

Page 6: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Dev-Ops (dĕv′ŏps) Early, iterative, & automated combo of development & operations; Incremental deployment An approach embracing principles & values of lean

thinking, product development flow, & agile methods Early, collaborative, and automated form of incremental

development, integration, system, & operational testing Design method that supports collaboration, teamwork,

iterative development, & responding to change Mult-tiered automated framework for TDD, Continuous

Integration, BDD, Continuous Delivery, & DevOps Maximizes BUSINESS VALUE of organizations, portfolios,

& projects by enabling buyers-suppliers to scale globally

6

Crispin, L., & Gregory, J. (2009). Agile testing: A practical guide for testers and agile teams. Boston, MA: Addison-Wesley.Crispin, L., & Gregory, J. (2015). More agile testing: Learning journeys for the whole team. Boston, MA: Addison-Wesley.

DevOps—What is it?

Page 7: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

NetworkComputer

Operating SystemMiddlewareApplications

APIsGUI

Agile requirements implemented in slices vs. layers User needs with higher business value are done first Reduces cost & risk while increasing business success

7Shore, J. (2011). Evolutionary design illustrated. Norwegian Developers Conference, Oslo, Norway.

Agile Traditional1 2 3 Faster

Early ROI

Lower Costs

Fewer Defects

Manageable Risk

Better Performance

Smaller Attack Surface

Late

No Value

Cost Overruns

Very Poor Quality

Uncontrollable Risk

Slowest Performance

More Security Incidents Seven Wastes1. Rework2. Motion3. Waiting4. Inventory5. Transportation6. Overprocessing7. Overproduction

MINIMIZES MAXIMIZES

JIT, Just-enough architecture Early, in-process system V&V Fast continuous improvement Scalable to systems of systems Maximizes successful outcomes

Myth of perfect architecture Late big-bang integration tests Year long improvement cycles Breaks down on large projects Undermines business success

DevOps—How it works?

Page 8: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

8

Traditional vs. Agile Cumulative Flow

Wor

k (S

tory

, Poi

nt, T

ask)

or E

ffor

t (W

eek,

Day

, Hou

r)

Time Unit (Roadmap, Release, Iteration, Month, Week, Day, Hour, etc.)

Wor

k (S

tory

, Poi

nt, T

ask)

or E

ffor

t (W

eek,

Day

, Hou

r)

Time Unit (Roadmap, Release, Iteration, Month, Week, Day, Hour, etc.)

TRADITIONAL Cumulative Flow

Late big bang integration increases WIP backlog Agile testing early and often reduces WIP backlog Improves workflow and reduces WIP & lead times

Anderson, D. J. (2004). Agile management for software engineering. Upper Saddle River, NJ: Pearson Education.Anderson, D. J. (2010). Kanban: Successful evolutionary change for your technology business. Sequim, WA: Blue Hole Press.

DevOps—Workflow Results

DEVOPS Cumulative Flow

Page 9: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

9

Methods to “scope” project, product, or system “Key” is smallest possible scope with highest value Reduces cost, risk, time, failure, & tech. obsolescence

INCREASES TESTABILITY, QUALITY, RELIABILITY, SECURITY, MORALE, MAINTAINABILITY, & SUCCESS

Denne, M., & Cleland-Huang, J. (2004). Software by numbers: Low-risk, high-return development. Santa Clara, CA: Sun Microsystems.Ries, E. (2011). The lean startup: How today's entrepreneurs use continuous innovation. New York, NY: Crown Publishing.Patton, J. (2014). User story mapping: Discover the whole story, build the right product. Sebastopol, CA: O'Reilly Media.Layton, M. C., & Maurer, R. (2011). Agile project management for dummies. Hoboken, NJ: Wiley Publishing.Krause, L. (2014). Microservices: Patterns and applications. Paris, France: Lucas Krause.

MINIMUM

MARKETABLE FEATURE- MMF -

AdvantageDifferenceRevenueProfitSavingsBrandLoyalty

MINIMUMVIABLE PRODUCT

- MVP -

GoalProcessFeaturesPrioritiesStory MapArchitecture

STORY MAPOR IMPACT MAP

- SM or IM -

GoalActors ImpactsDeliverablesMeasuresMilestones

VISIONSTATEMENT

- VS -

For <customer>Who <needs it>The <product> Is a <benefit>That <customer>Unlike <other>Ours <different>

MICRO-SERVICE- MS -

PurposeAutomatedUnique IndependentResilientEcosystemConsumer

DevOps—MMF, MVP, MVA, etc.

Page 10: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

10

Lightweight, fast, disposable virtual environments Set of isolated processes running on shared kernel Efficient way for building, delivering, & running apps

Monolithic Applications Just-Enough Applications Containerized Apps

Minimal - Typically single process entitiesDeclarative - Built from layered Docker imagesImmutable - Do exactly same thing from run to kill

• Small autonomous services that work together• Self-contained process that provides a unique capability

• Loosely coupled service oriented architecture with bounded contexts• Small independent processes communicating with each other using language-agnostic APIs

• Fined-grained independent services running in their own processes that are developed and deployed independently• Suite of services running in their own process, exposing APIs, and doing one thing well (independently developed and deployable)

• Single app as a suite of small services, each running in its own process and communicating with lightweight mechanisms (HTTP APIs)

Krause, L. (2014). Microservices: Patterns and applications. Paris, France: Lucas Krause.

DevOps—Microservices

OS’s HaveUNREPORTED

30-50 CVEs

Page 11: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

11

TDD

- 2003 -CI

- 2006 -BDD

- 2008 -CD

- 2011 -DEVOPS

- 2012 -DEVOPSSEC- 2014 -

User Story

Acc Criteria

Dev Unit Test

Run Unit Test

Write SW Unit

Re-Run Unit Test

Refactor Unit

Building

Database

Inspections

Testing

Feedback

Documentation

Deployment

Analyze Feature

Acc Criteria

Dev Feat. Test

Run Feat. Test

Develop Feature

Re-Run Feature

Refactor Feat.

Packaging

Acceptance

Load Test

Performance

Pre-Production

Certification

Deployment

Sys Admin

Config. Mgt.

Host Builds

Virtualization

Containerization

Deployment

Monitor & Supp

Sec. Engineer.

Sec. Containers

Sec. Evaluation

Sec. Deploy.

Runtime Prot.

Sec. Monitoring

Response Mgt.

Beck, K. (2003). Test-driven development: By example. Boston, MA: Addison-Wesley.Duvall, P., Matyas, S., & Glover, A. (2006). Continuous integration. Boston, MA: Addison-Wesley.Barker, K., & Humphries, C. (2008). Foundations of rspec: Behavior driven development with ruby and rails. New York, NY: Apress.Humble, J., & Farley, D. (2011). Continuous delivery. Boston, MA: Pearson Education.Huttermann, M. (2012). Devops for developers: Integrate development and operations the agile way. New York, NY: Apress.Bird, J. (2016). Devopssec: Delivering secure software through continuous delivery. Sebastopol, CA: O'Reilly Media.

Numerous models of lean-agile testing emerging Based on principles of lean & agile one piece flow Include software, hardware, system, & port. testing

DevOps—Evolution

Page 12: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

STAGE 1—Test Driven Development Term coined by Kent Beck in 2003 Consists of writing all tests before design Ensures all components are verified and validated

12Beck, K. (2003). Test-driven development: By example. Boston, MA: Addison-Wesley.

Page 13: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

STAGE 2—Behavior Driven Develop. Term coined by Dan North in 2006 Consists of writing feature tests before design Ensures all system features are verified and validated

13Smart, J. F. (2014). BDD in action: Behavior-driven development for the whole software lifecycle. Shelter Island, NY: Manning Publications.

Page 14: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Term coined by Martin Fowler circa 1998 User needs designed & developed one-at-a-time Changes automatically detected, built, & fully-tested

14Humble, J., & Farley, D. (2011). Continuous delivery. Boston, MA: Pearson Education.Duvall, P., Matyas, S., & Glover, A. (2006). Continuous integration. Boston, MA: Addison-Wesley.

STAGE 3—Continuous Integration

Thousands of TestsContinuously Executed

No More Late BigBang Integration

BuildIntegration

Server

VersionControlServer

BuildScripts

UsesWatches

BuildStatus

ProvidesDeveloper A

Developer B

Developer C

CommitsChanges

CommitsChanges

CommitsChanges

Builds

Database

Analysis

Testing

Reporting

Documentation

Deployment

Early, Automated, Fast,Efficient, & Repeatable

Constant ReadinessState & CM Control

Lean, Waste Free, Low WIP,No Deadlocked Test Queues

Rapidly & SuccessfullyDev. Complex Systems

ALL DEVELOPERS RUN PRIVATE BUILDS

DEVELOPERS COMMIT CODE TO VERSION CONTROL

INTEGRATION BUILDS OCCUR SEVERAL TIMES PER DAY

100% OF SYSTEM TESTS MUST PASS FOR EVERY BUILD

A SHIPPABLE PRODUCT RESULTS FROM EVERY BUILD

FIXING BROKEN BUILDS IS OF THE HIGHEST PRIORITY

REPORTS AUTOMATICALLY GENERATED & REVIEWED

Page 15: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Created by Jez Humble of ThoughtWorks in 2011 Includes CM, build, testing, integration, release, etc. Goal is one-touch automation of deployment pipeline

15Humble, J., & Farley, D. (2011). Continuous delivery. Boston, MA: Pearson Education.Duvall, P., Matyas, S., & Glover, A. (2006). Continuous integration. Boston, MA: Addison-Wesley.Ohara, D. (2012). Continuous delivery and the world of devops. San Francisco, CA: GigaOM Pro.

CoQ

• 80% MS Tst• 8/10 No Val• $24B in 90s• Rep by CD• Not Add MLK

STAGE 4—Continuous Delivery

Source CodeControl

BuildAutomation

TestAutomation

ContinuousIntegration

ReleaseAutomation

ContinuousDelivery

Page 16: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Created by Patrick Debois of Jedi BVBA in 2007 Collaboration of developers & infrastructure people Goal to automate the deployment to end-user devices

16Bass, L., Weber, I., & Zhu, L. (2015). Devops: A software architect's perspective. Old Tappan, NJ: Pearson Education.Gruver, G., & Mouser, T. (2015). Leading the transformation: Applying agile and devops at scale. Portland, OR: IT Revolution Press.Humble, J., Molesky, J., & O'Reilly, B. (2015). Lean enterprise: How high performance organizations innovate at scale. Sebastopol, CA: O'Reilly Media.

STAGE 5—Development Operations

Collaboration

Page 17: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

STAGE 6—Development Ops Sec DevOpsSec coined by Shannon Lietz in 2014 Rugged devops, devsecops, secdevops, devopssec Microservices, security engineering & operations keysSecure Microservices

• Docker App• Docker Bins• Docker Files• Docker Images• Docker Scanning• Docker Registry• Docker Host• Docker Hub• Docker Monitoring

Secure Engineering• Security Champions• Security Planning• Security Training• Security Requirements• Security Architecture• Security Analysis• Security Testing• Security Review• Security Response

Secure Operations• Activity Logging• Event Monitoring• Configuration Mgt.

• Patch Management• User Access Control• Privilege Management

• Vulnerability Mgt.• Response Mgt.• Performance Mgt.

Bird, J. (2016). Devopssec: Delivering secure software through continuous delivery. Sebastopol, CA: O'Reilly Media.17

Page 18: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

SE framework by Dean Leffingwell of Rally in 2007 Newest version leaner, meaner, lighter, and simpler Experimental bottoms-up DevOps-based innovation

18Leffingwell, D. (2007). Scaling software agility: Best practices for large enterprises. Boston, MA: Pearson Education.

PORTFOLIO

LARGEPROGRAM

PROGRAM

TEAM

STAGE 7—Enterprise DevOpsSec

Page 19: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

DevOps—Automation Metrics

19Duvall, P., Matyas, S., & Glover, A. (2006). Continuous integration: Improving software quality and reducing risk. Boston, MA: Addison-Wesley.

Defects DecreaseIntegrations

Increase

IncreaseCoverage

IncreaseAutomation

Page 20: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

20

DevOps metrics gaining in widespread popularity Hybrid of development & IT operations measures Includes code, deployment & e-business analytics

Velasquez, N. F. (2014). State of devops report. Portland, OR: Puppet Labs, Inc.

DevOps—Deployment Metrics

Page 21: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Simple example of a DevOps reference architecture Includes CM, continuous integration, & deployment Code automatically built/tested/deployed to users

21Morris, B., & Cassatt, C. (2015). Devops for the rest of us. Proceedings of the Agile DC Conference, Washington, DC, USA.Weeks, D. E. (2014). Devops and continuous delivery reference architectures (volume 1 & 2). Fulton, MD: Sonatype.

DevOps—Basic Example

Page 22: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

22Juengst, D. (2015). Deliver better software faster: With the cloudbees jenkins platform. San Francisco, CA: CloudBees.Weeks, D. E. (2014). Devops and continuous delivery reference architectures (volume 1 & 2). Fulton, MD: Sonatype.

DevOps—Tools Ecosystem Numerous tools to automate DevOps pipeline People can piece together toolset along with hubs Tools include version control, testing, & deployment

Page 23: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

23Tesauro, M. (2016). Taking appsec to 11: Appsec pipelines, devops, and making things better. Denver, CO: SnowFROC 2016.Weeks, D. E. (2014). Devops and continuous delivery reference architectures (volume 1 & 2). Fulton, MD: Sonatype.

DevOps—Security Tools Ecosystem Many tools emerging for DevOps application security Begins-ends with microservices—tiny attack surface Includes containers, testing, & real-time monitoring

Page 24: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Activity Def CoQ DevOps Economics Hours ROIDevelopment Operations 100 0.001 100 Defects x 70% Efficiency x 0.001 Hours 0.070 72,900%

Continuous Delivery 30 0.01 30 Defects x 70% Efficiency x 0.01 Hours 0.210 24,300%

Continuous Integration 9 0.1 9 Defects x 70% Efficiency x 0.1 Hours 0.630 8,100%

Software Inspections 3 1 2.7 Defects x 70% Efficiency x 1 Hours 1.890 2,700%

"Traditional" Testing 0.81 10 0.81 Defects x 70% Efficiency x 10 Hours 5.670 900%

Manual Debugging 0.243 100 0.243 Defects x 70% Efficiency x 100 Hours 17.010 300%

Operations & Maintenance 0.073 1,000 0.0729 Defects x 70% Efficiency x 1,000 Hours 51.030 n/a

24

Agile testing is orders-of-magnitude more efficient Based on millions of automated tests run in seconds One-touch auto-delivery to billions of global end-users

Rico, D. F. (2016). Devops cost of quality (CoQ): Phase-based defect removal model. Retrieved May 10, 2016, from http://davidfrico.com

DevOps—Cost of Quality

Under 4Minutes

4,500 x Fasterthan Code

Inspections

Page 25: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Traditional testing finds a defect in 10 hours Manual code inspections find a defect in 1 hour DevOps finds a defect in 4 min/test (4,500x faster)

25Rico, D. F. (2012). The Cost of Quality (CoQ) for Agile vs. Traditional Project Management. Fairfax, VA: Gantthead.Com.

DevOps—Economics

Page 26: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

26

Hewlett-Packard is a major user of CI, CD, & DevOps 400 engineers developed 10 million LOC in 4 years Major gains in testing, deployment, & innovation

Gruver, G., Young, M. & Fulghum, P. (2013). A practical approach to large-scale agile development. Upper Saddle River, NJ: Pearson Education.

TYPE METRIC MANUAL DEVOPS MAJOR GAINS

CYCLE TIME

IMPROVEMENTS

Build Time 40 Hours 3 Hours 13 x

No. Builds 1-2 per Day 10-15 per Day 8 x

Feedback 1 per Day 100 per Day 100 xRegression Testing 240 Hours 24 Hours 10 x

DEVELOPMENT

COST EFFORT

DISTRIBUTION

Integration 10% 2% 5 x

Planning 20% 5% 4 x

Porting 25% 15% 2 x

Support 25% 5% 5 x

Testing 15% 5% 3 x

Innovation 5% 40% 8 x

DevOps—HP Case Study

Page 27: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Assembla went from 2 to 45 releases every month 15K Google developers run 120 million tests per day 30K+ Amazon developers deliver 136K releases a day

27Singleton, A. (2014). Unblock: A guide to the new continuous agile. Needham, MA: Assembla, Inc.

62 x FasterU.S. DoD

IT Project

3,645 x FasterU.S. DoD

IT Project

DevOps—Dot Com Case Study

Page 28: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

28Ashman, D. (2014). Blackboard: Keep your head in the clouds. Proceedings of the 2014 Enterprise DevOps Summit, San Francisco, California, USA.

Productivity STOPS due to excessive integration Implements DevOps & Microservices around 2010 Waste elimination, productivity & innovation skyrocket

DevOps—Blackboard Case Study

DEVOPS &MICROSERVICES

IMPLEMENTED

Page 29: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

29Denayer, L. (2017). U.S. DHS citizenship and immigration services: USCIS agile development. Washington, DC. iSDLC Seminar.

1st gen replete with large portfolios & governance 2nd-3rd gen yield minor incremental improvements 4th-5th gen enables big order-of-magnitude impacts

DevOps—U.S. DHS Case Study

Automated GovernanceManual Governance

Page 30: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

30

Detailed DevOps economics starting to emerge ROI ranges from $17M to $195M with minor costs Benefits from cost savings, revenue, and availability

Forsgren, N., Humble, J., & Kim, G. (2017). Forecasting the value of devops transformations: Measuring roi of devops. Portland, OR: DevOps Research.Rico, D. F. (2017). Devops return on investment (ROI) calculator. Retrieved August 29, 2017, from http://davidfrico.com/devops-roi.xls

DevOps—Return on Investment

Page 31: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

31

DevOps adoption growing fast in-spite of slow start 35% using, 27% thinking about it, & 38% are in-dark DevOps a global industry-wide extinction-level event

31Brown, A. (2016). Devops and the need for speed, quality, and security: Do organizations really have to pick two out of three. Portland, OR: Puppet Labs.

DevOps—Adoption Statistics

Page 32: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

32

Having a DevOps rollout strategy is a key to success Phased, incremental, and situational implementation Includes build, testing, & IT operations, & practices

St-Cyr, J. (2015). Evolving devops: Advance alm and devops practices with cont. imp. Agile Dev, Better Software, & DevOps East Conference, Orlando, Florida, USA.

DevOps—Roadmap

Page 33: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

33Kim, G., Debois, P., Willis, J., & Humble, J. The devops handbook: How to create world-class agility, reliability, and security in technology organizations. Portland, OR: IT Revolution Press.

Everything begins with lean & agile principles Next step is smaller portfolio & simpler designs Final step is modular interfaces & E2E automation

DevOps—5 Keys to Success

Page 34: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

DevOps DOES NOT mean deliver it now and fix it later Lightweight, yet disciplined approach to development Reduced cost, risk, & waste while improving quality

34Rico, D. F. (2012). What’s really happening in agile methods: Its principles revisited? Retrieved June 6, 2012, from http://davidfrico.com/agile-principles.pdfRico, D. F. (2012). The promises and pitfalls of agile methods. Retrieved February 6, 2013 from, http://davidfrico.com/agile-pros-cons.pdfRico, D. F. (2012). How do lean & agile intersect? Retrieved February 6, 2013, from http://davidfrico.com/agile-concept-model-3.pdf

What How ResultFlexibility Use lightweight, yet disciplined processes and artifacts Low work-in-process

Customer Involve customers early and often throughout development Early feedback

Prioritize Identify highest-priority, value-adding business needs Focus resources

Descope Descope complex programs by an order of magnitude Simplify problem

Decompose Divide the remaining scope into smaller batches Manageable pieces

Iterate Implement pieces one at a time over long periods of time Diffuse risk

Leanness Architect and design the system one iteration at a time JIT waste-free design

Swarm Implement each component in small cross-functional teams Knowledge transfer

Collaborate Use frequent informal communications as often as possible Efficient data transfer

Test Early Incrementally test each component as it is developed Early verification

Test Often Perform system-level regression testing every few minutes Early validation

Adapt Frequently identify optimal process and product solutions Improve performance

DevOps—Summary

Page 35: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

35

DevOps ensures enterprise success by delivering large volumes of valuable, reliable, & secure IT products & services to billions of users in fractions of a second ...

DevOps—Bottom Line?

Page 36: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Thousands of textbooks on agile methods Include requirements, design, coding, test, etc. Continuous Integration, Delivery, & DevOps best

36

Beck, K. (2003). Test-driven development: By example. Boston, MA: Addison-Wesley.Duvall, P., Matyas, S., & Glover, A. (2006). Continuous integration. Boston, MA: Addison-Wesley.Smart, J. F. (2014). BDD in action: Behavior-driven development for the whole software lifecycle. Shelter Island, NY: Manning Publications.Humble, J., & Farley, D. (2011). Continuous delivery. Boston, MA: Pearson Education.Kim, G., Debois, P., Willis, J., & Humble, J. The devops handbook: How to create world-class agility, reliability, and security in technology organizations. Portland, OR: IT Revolution Press.

DevOps—Foundational Books

Page 37: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Dave’s PROFESSIONAL CAPABILITIES

37

SoftwareQuality

Mgt.

TechnicalProject

Mgt.

SoftwareDevelopment

Methods

Leadership &Org. Change

SystemsEngineering

Cost Estimates& Scheduling

Acquisition &Contracting

Strategy &Roadmapping

Lean, Kanban,& Six Sigma

Modeling &Simulations

Big Data,Cloud, NoSQL

WorkflowAutomation

Metrics,Models, & SPC

BPR, IDEF0,& DoDAF

DoD 5000,TRA, & SRA

PSP, TSP, &Code Reviews

CMMI &ISO 9001

InnovationManagement

Statistics, CFA,EFA, & SEM

ResearchMethods

EvolutionaryDesign

Valuation — Cost-Benefit Analysis, B/CR, ROI, NPV, BEP, Real Options, etc.

Lean-Agile — Scrum, SAFe, Continuous Integration & Delivery, DevOpsSec, etc.

STRENGTHS – Data Mining Gathering & Reporting Performance Data Strategic Planning Executive & Manage-ment Briefs Brownbags & Webinars White Papers Tiger-Teams Short-Fuse Tasking Audits & Reviews Etc.

● Data mining. Metrics, benchmarks, & performance.● Simplification. Refactoring, refinement, & streamlining.● Assessments. Audits, reviews, appraisals, & risk analysis.● Coaching. Diagnosing, debugging, & restarting stalled projects.● Business cases. Cost, benefit, & return-on-investment (ROI) analysis.● Communications. Executive summaries, white papers, & lightning talks.● Strategy & tactics. Program, project, task, & activity scoping, charters, & plans.

PMP, CSEP,FCP, FCT, ACP,CSM, SAFE, &

DEVOPS

34+ YEARSIN IT

INDUSTRY

Page 38: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Backup Slides

Page 39: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Kennedy, M. P., & Umphress, D. A. (2011). An agile systems engineering process: The missing link. Crosstalk, 24(3), 16-20.

No. of software-intensive systems is growing 80% of US DoD functions performed in software Major driver of cost, schedule, & tech. performance

39

Software—U.S. DoD Systems

Page 40: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Blackburn, M. R. (2014). Transforming systems engineering through a holistic approach to model centric engineering. Washington, DC: Stevens Institute of Technology.

Software in U.S. DoD avionics growing exponentially 10x growth from F-16 to F-22 (& another 10x to F-35) Productivity must grow by 10x for next gen systems

40

Software—U.S. DoD Fighter Jets

Page 41: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Rico, D. F. (2017). U.S. dod vs. amazon: 18 architectural principles to build fighter jets like amazon web services using devops. Retrieved November 7, 2017, from http://davidfrico.com

F-35 software family of loosely-coupled ecosystems Each F-35 subsystem is ecosystem of microservices F-35 microservices iteratively developed with DevOps

41

Software—F-35 Avionics Software

Page 42: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

42Sheldon, F. T. et al. (1992). Reliability measurement: From theory to practice. IEEE Software, 9(4), 13-20Johnson, J. (2002). ROI: It's your job. Extreme Programming 2002 Conference, Alghero, Sardinia, Italy.

Requirements defects are #1 reason projects fail Traditional projects specify too many requirements More than 65% of requirements are never used at all

Other 7%

Requirements47%

Design28%

Implementation18%

Defects

Always 7%

Often 13%

Sometimes16%

Rarely19%

Never45%

Waste

Requirements—Defects & Waste

Page 43: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

43

Big projects result in poor quality and scope changes Productivity declines with long queues/wait times Large projects are unsuccessful or canceled

Jones, C. (1991). Applied software measurement: Assuring productivity and quality. New York, NY: McGraw-Hill.

Size vs. Quality

DE

FEC

TS

0.00

3.20

6.40

9.60

12.80

16.00

0 2 6 25 100 400

SIZE

Size vs. Productivity

PR

OD

UC

TIV

ITY

0.00

1.00

2.00

3.00

4.00

5.00

0 2 6 25 100 400

SIZE

Size vs. Change

CH

AN

GE

0%

8%

16%

24%

32%

40%

0 2 6 25 100 400

SIZE

Size vs. SuccessS

UC

CE

SS

0%

12%

24%

36%

48%

60%

0 2 6 25 100 400

SIZE

Performance—Traditional Projects

Page 44: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

44Standish Group. (2015). Chaos summary 2015. Boston, MA: Author.Sessions, R. (2009). The IT complexity crisis: Danger and opportunity. Houston, TX: Object Watch.

Challenged and failed projects hover at 67% Big projects fail more often, which is 5% to 10% Of $1.7T spent on IT projects, over $858B were lost

$0.0

$0.4

$0.7

$1.1

$1.4

$1.8

2002 2003 2004 2005 2006 2007 2008 2009 2010

Trill

ions

(US

Dolla

rs)

Expenditures Failed Investments

0% 20% 40% 60% 80% 100%

28%

34%

29%

35%

32%

33%

27%

28%

29%

49%

51%

53%

46%

44%

41%

56%

55%

52%

23%

15%

18%

19%

24%

26%

17%

17%

19%

2000

2002

2004

2006

2008

2010

2012

2014

2015

Year

Successful Challenged Failed

Failures—Global Traditional Projects

Page 45: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

45

Capability #1

● Feature 1● Feature 2● Feature 3● Feature 4● Feature 5● Feature 6● Feature 7

Capability #2

● Feature 8● Feature 9● Feature 10● Feature 11● Feature 12● Feature 13● Feature 14

Capability #3

● Feature 15● Feature 16● Feature 17● Feature 18● Feature 19● Feature 20● Feature 21

Capability #4

● Feature 22● Feature 23● Feature 24● Feature 25● Feature 26● Feature 27● Feature 28

Capability #5

● Feature 29● Feature 30● Feature 31● Feature 32● Feature 33● Feature 34● Feature 35

Capability #6

● Feature 36● Feature 37● Feature 38● Feature 39● Feature 40● Feature 41● Feature 42

Capability #7

● Feature 43● Feature 44● Feature 45● Feature 46● Feature 47● Feature 48● Feature 49

1

2 3

4

5 6

7

8 9

10

11 12

13

14 15

16

17 18

19

20 21

Evolving “Unified/Integrated” Enterprise Data Model

“Disparate” LEGACY SYSTEM DATABASES (AND DATA MODELS)

ETL

A A

B C

D E F

G H I J K

A

B C

D E F

A

B C

D E

A

B C

D

A

B C

A

B

“Legacy” MS SQL Server Stovepipes “Inter-Departmental” Linux Blade/Oracle/Java/WebSphere Server

“Leased” DWA/HPC/Cloud Services

Sprint 1 Sprint 2 Sprint 3 Sprint 4 Sprint 5 Sprint 6 Sprint 7

ETL ETL ETL ETL ETL ETL

Bente, S., Bombosch, U., & Langade, S. (2012). Collaborative enterprise architecture: Enriching EA with lean, agile, and enterprise 2.0 practices. Waltham, MA: Elsevier.

(for example, assume 25 user stories per feature, 175 user stories per capability, and 1,225 user stories total)

Organize needs into capabilities, features, and stories Prioritize features, group releases, and initiate sprints Develop minimum set of features with highest value

Release

Release

Release

ReleaseMMF- or -MVP

Agile—Storymap, Roadmap, Arch.

Page 46: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Ladas, C. (2008). Scrumban: Essays on kanban systems for lean software development. Seattle, WA: Modus Cooperandi.Reddy, A. (2016). The scrumban revolution: Getting the most out of agile, scrum, and lean-kanban. New York, NY: Addison-Wesley.

Created by Corey Ladas of Modus Cooperandi (2008) Hybrid of Agile (Scrum) and Lean (Kanban) methods Scrum with one-piece-workflow vs sprints (batches)

46

ScrumBan—One-Piece Workflow

Page 47: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Agile TDD consists of seven broad practices Document test criteria, tests, software units, etc. Include refactoring, verification, optimization, etc.

47

Practice

User Story

Acc Criteria

Dev Test

Run Test

Dev Unit

Rerun Test

Refactor Unit

Description

Read story, analyze meaning, ask questions, and clarify understanding

Identify, verify, and document acceptance criteria for each user story

Design, develop, code, and verify automated unit test for user story

Run automated unit test to verify that it fails the first time (sanity check)

Design, develop, code, and verify the software unit to satisfy user story

Rerun automated unit test to see if code satisfies automated unit test

Refine, reduce, and simplify code to remove waste and optimize performance

STAGE 1—Test Driven Develop.

Beck, K. (2003). Test-driven development: By example. Boston, MA: Addison-Wesley.

Page 48: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Agile BDD consists of seven broad practices Document test criteria, tests, syst. features, etc. Include refactoring, verification, optimization, etc.

48

Practice

Feature

Acc Criteria

Dev Test

Run Test

Dev Feature

Rerun Test

Refac Feature

Description

Read feature, analyze meaning, ask questions, and clarify understanding

Identify, verify, and document acceptance criteria for each feature

Design, develop, code, and verify automated feature test for feature

Run automated feature test to verify that it fails the first time (sanity check)

Design, develop, code, and verify the feature software to satisfy feature

Rerun automated feature test to see if code satisfies automated feature test

Refine, reduce, and simplify code to remove waste and optimize performance

STAGE 2—Behavior Driven Dev.

Smart, J. F. (2014). BDD in action: Behavior-driven development for the whole software lifecycle. Shelter Island, NY: Manning Publications.

Page 49: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Agile CI consists of seven broad practices Automated build, database, inspection, tests, etc. Include reporting, documentation, deployment, etc.

49

Practice

Building

Database

Inspections

Testing

Feedback

Documentation

Deployment

Description

Frequently assembling products and services to ensure delivery readiness

Frequently generating/analyzing database schemas, queries, and forms

Frequently performing automated static analysis of product/service quality

Frequently performing automated dynamic product and service evaluation

Frequently generating automated status reports/messages for all stakeholders

Frequently performing automated technical/customer document generation

Frequently performing automated delivery of products/services to end users

Duvall, P., Matyas, S., & Glover, A. (2006). Continuous integration: Improving software quality and reducing risk. Boston, MA: Addison-Wesley.Humble, J., & Farley, D. (2011). Continuous delivery. Boston, MA: Pearson Education.

STAGE 3—Continuous Integration

Page 50: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Agile CD consists of seven broad practices Automated acceptance, load, performance, etc. Include packaging, pre-production test, C&A, etc.

50

Practice

Packaging

Acceptance

Load Test

Performance

Pre-Production

Certification

Deployment

Description

Frequently generating system images for pre-production testing & checkout

Frequently performing automated system & user acceptance testing

Frequently performing automated system load, stress, & capacity testing

Frequently performing automated system user & technical performance testing

Frequently performing automated pre-production tests prior to final deployment

Frequently performing automated system certification & accreditation tests

Frequently generating product images for pre-deployment testing & checkout

Mukherjee, J. (2015). Continuous delivery pipeline: Where does it choke. Charleston, SC: CreateSpace.Swartout, P. (2014). Continuous delivery and devops: A quickstart guide. Birmingham, UK: Packt Publishing.

STAGE 4—Continuous Delivery

Page 51: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Agile DevOps consists of seven broad practices Automated sys admin, CM, building, monitor, etc. Include virtualization, containerize, deployment, etc.

51

Practice

Sys Admin

Config. Mgt.

Host Builds

Virtualization

Containerize

Deployment

Monitor & Supp

Description

Frequently performing automated system administration tasks, i.e., scripting

Frequently performing automated infrastructure config. mgt./version control

Frequently performing automated system and server host builds and config.

Frequently performing automated system, server, & net virtualization services

Frequently performing automated software and Microservices containerization

Frequently generating final end-user system & software images for distribution

Frequently performing automated metrics collection & deployment monitoring

Duffy, M. (2015). Devops automation cookbook: Over 120 recipes coverying key automation techniques. Birmingham, UK: Packt Publishing.Farcic, V. (2016). The devops 2.0 toolkit: Automating the continuous deployment pipelines with containerized microservices. Victoria, CA: LeanPub.

STAGE 5—Development Operations

Page 52: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

DevOpsSec consists of seven broad practices Automated secure build, analysis, & deployment Includes containerization, engineering & operations

52

Practice

Engineering

Containers

Evaluation

Deployment

Protection

Monitoring

Responses

Description

Frequently performing “baked-in” lean and agile security engineering practices

Frequently performing automated microservices containerization practices

Frequently performing automated static and dynamic vulnerability analysis

Frequently performing automated digitally signed security deployment practices

Frequently performing automated real-time self-security protection practices

Frequently performing automated real-time security monitoring practices

Frequently performing automated trigger-based rollback response practices

Bird, J. (2016). Devopssec: Delivering secure software through continuous delivery. Sebastopol, CA: O'Reilly Media.

STAGE 6—Development Ops Sec

Page 53: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Fewer integrations leave in higher bug counts Frequent, early integrations eliminate most defects Goal is to have as many early integrations as possible

53Lacoste, F. J. (2009). Killing the gatekeeper: Introducing a continuous integration system. Proceedings of the Agile 2009 Conference, Chicago, Illinois, USA, 387-392.

Number ofIntegrations

Less Defects•More Integrations•Early IntegrationsMore Defects

•Few Integrations•Late Integrations

Continuous Integration—Statistics

Page 54: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

54XeniaLabs. (2016). Periodic table of devops tools. Retrieved April 11, 2016, from https://xebialabs.com/periodic-table-of-devops-tools.Weeks, D. E. (2014). Devops and continuous delivery reference architectures (volume 1 & 2). Fulton, MD: Sonatype.

DevOps—Periodic Table

Page 55: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

55Huett, B. (2017). The TMD toolbox. Retrieved May 5, 2017, from http://www.themoderndeveloper.com.

DevOps—TMD Toolbox

Page 56: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Test-ing (tĕst′ĭng) An early, iterative, and automatedV&V of customer requirements; Incremental testing A testing approach embracing principles & values of lean

thinking, product development flow, & agile methods Early, collaborative, and automated form of incremental

development, integration, system, & operational testing Testing method that supports collaboration, teamwork,

iterative development, & responding to change Mult-tiered automated framework for TDD, Continuous

Integration, BDD, Continuous Delivery, & DevOps Maximizes BUSINESS VALUE of organizations, portfolios,

& projects by enabling buyers-suppliers to scale globally

56

Crispin, L., & Gregory, J. (2009). Agile testing: A practical guide for testers and agile teams. Boston, MA: Addison-Wesley.Crispin, L., & Gregory, J. (2015). More agile testing: Learning journeys for the whole team. Boston, MA: Addison-Wesley.

Agile Testing—What is it?

Page 57: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Grant, T. (2005). Continuous integration using cruise control. Northern Virginia Java Users Group (Novajug), Reston, Virginia, USA.Fredrick, J. (2008). Accelerate software delivery with continuous integration and testing. Japanese Symposium on Software Testing, Tokyo, Japan.

Most agile testing tools are “free” open source Build server costs no more than a commodity PC 10x more efficient/effective than traditional testing

57

Agile Testing—Costs & Benefits

Page 58: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Traditional testing is a late, manual process Agile testing is an early and automated process Goal to deliver early & often and V&V components

58Rico, D. F. (2012). Agile testing resources. Retrieved Sep. 9, 2012, from http://davidfrico.com/agile-testing-resources.txtCrispin, L., & Gregory, J. (2009). Agile testing: A practical guide for testers and agile teams. Boston, MA: Addison-Wesley.Grant, T. (2005). Continuous integration using cruise control. Northern Virginia Java Users Group (Novajug), Reston, Virginia, USA.

AGILE TESTING- Early Incremental Testing -

TRADITIONAL TESTING- Late Big Bang Integration Testing -

Code is Frequently Checked InCode Automatically RetrievedCode Automatically CompiledTests Automatically Executed Instant Feedback & Test Reports

Code Checked In Late in ProjectCode Manually Submitted to TestCode Manually Compiled & BuiltTests Manually Executed LateLate Project Feedback & Reports

Code Automatically DeployedLate Defects Freeze Projects

Agile Testing—vs. Traditional

Test Criteria Accompany StoriesAutomated Tests Written FirstUnits Coded-Tested One at Time

Test Criteria Written After FactManual Tests Written Much LaterUnits Coded Late All at One Time

Page 59: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Agile teams don’t often use TDD, CI, CD & DevOps Implement independent test teams after Sprints done Sprint Waterfalling, Scrummerfalling, & Wagile result

59Heusser, M. (2015). 12 years of agile testing: What do we know now. Proceedings of the Agile Gathering, Grand Rapids, Michigan, USA.

Incorrect• Phased Testing• Separate Teams• Delayed Testing

Correct• Integrated Testing• Integrated Teams• Continuous Testing

Agile Testing—Anti-Patterns

Page 60: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Agile testing slows down with very large systems Slow testing slows integration and increases bugs Agile testing can speed back up with more attention

60Kokko, H. (2009). Increase productivity with large scale continuous integration. Proceedings of the Agile 2009 Conference, Chicago, Illinois, USA.

MICRO ADJUSTMENTS- Focused Impact Tuning-

MACRO ADJUSTMENTS- Wide Impact Tuning-

Reduce or Remove Test TimeoutsSelect Different TestsRefactor Code & ComponentsTune Network & SoftwareTune Database & Middleware

Remove Process RandomnessUse Faster Code & Test Tools Incremental vs. Big Bang TestsParallelize Build & InstallTune & Optimize Build Process

Agile Testing—Scaling Practices

Add More CPUs & MemoryParallelize System BuildsReplace 3rd Party Test Libraries

In-Memory CompilationParallelize Test RunsPre-Install Test Libraries

Page 61: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Industry very slow in adopting agile testing model Cost, difficulty, and territorialism are common issues Developers must take initiative for disciplined testing

61

Technical BarriersOrganizational BarriersDevelopers don’t want to test

· Infrequently committing code· Committing broken code· Failing to immediately fix builds· Not writing automated tests· Not ensuring 100% of tests pass· Not running private builds· Resorting to traditional testing

Resistance to change· Fear of investment costs· Fear of learning new skills· Test group territorialism· Organizational policy conflicts· Overhead of maintaining CI· Complexity and scaling· Not developing a quality culture

··

Duvall, P., Matyas, S., & Glover, A. (2006). Continuous integration: Improving software quality and reducing risk. Boston, MA: Addison-Wesley.

Agile Testing—Common Barriers

Page 62: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Eliminates big-bang integration in the 11th hour Creates a repeatable and reliable testing process Evaluates system-wide changes throughout project

62Maeda, M. K. (2009). Agile testing: Early, often, and smart. Arlington, MA: Cutter Consortium.

What’s the Bottom Line?“Agile Testing Done Early & Often”

Agile TestingTraditional Testing

· High project visibility· Greater confidence and morale· Incremental business value· 24x7 deployability to users· Highly quality and reliability

· Lack of deployability· Late big-bang integration· Testing is a bottleneck· Poor customer satisfaction· Outright project failure

Late defect discovery

· Low quality software· Poor project visibility

· Dramatically reduces risks· Automates manual processes· Instant verification & validation

·

Page 63: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Agile test use is low in spite of its age, i.e., 15 years Many do not understand its utter simplicity and power Failure to use agile testing undermines project success

63Kim, D. (2013). The state of scrum: Benchmarks and guidelines. Indianapolis, IN: Scrum Alliance.

Agile PracticesRetrospectives

Refactoring

Done Definition

Test Tools

Test Driven Dev.

CM Tools

Simplicity

Pair Programming

Technical Debt

Agile Testing 13%

Continuous Integrations

Weekly

Daily

2-3 TimesPer Day

Never

2-3Times

PerIteration

Agile Testing—Adoption Statistics

Page 64: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

Microsoft created software security life cycle in 2002 Waterfall approach tailored for Scrum sprints in 2009 Uses security req, threat modeling & security testing

64

Microsoft. (2011). Security development lifecycle: SDL Process Guidance (Version 5.1). Redmond, WA: Author.Microsoft. (2010). Security development lifecycle: Simplified implementation of the microsoft SDL. Redmond, WA: Author.Microsoft. (2009). Security development lifecycle: Security development lifecycle for agile development (Version 1.0). Redmond, WA: Author.Bidstrup, E., & Kowalczyk, E. C. (2005). Security development lifecycle. Changing the software development process to build in security from the start. Security Summit West.

SEE DETAILED - SECURITY LIFE CYCLE STEPShttp://davidfrico.com/agile-security-lifecycle.txt

Agile Testing—Security Life Cycle

Page 65: Business Value of CI, CD, & DevOps Secdavidfrico.com/rico17l.pdf · 2017-12-07 · Business Value of CI, CD, & DevOps Sec ... Professor at 7 Washington, DC-area universities. 3 DevOps—Dinosaur

1st-generation systems used hardwired logic 2nd-generation systems used PROMS & FPGAs 3rd-generation systems use APP. SW & COTS HW

65Pries, K. H., & Quigley, J. M. (2010). Scrum project management. Boca Raton, FL: CRC Press.Pries, K. H., & Quigley, J. M. (2009). Project management of complex and embedded systems. Boca Raton, FL: Auerbach Publications.Thomke, S. (2003). Experimentation matters: Unlocking the potential of new technologies for innovation. Boston, MA: Harvard Business School Press.

● Short Lead● Least Cost● Lowest Risk● 90% Software● COTS Hardware● Early, Iterative Dev.● Continuous V&V

● Moderate Lead● Moderate Cost● Moderate Risk● 50% Hardware● COTS Components● Midpoint Testing● “Some” Early V&V

● Long Lead● Highest Cost● Highest Risk● 90% Hardware● Custom Hardware● Linear, Staged Dev.● Late Big-Bang I&T

AGILE“Software Model”- MOST FLEXIBLE -

NEO-TRADITIONAL“FPGA Model”

- MALLEABLE -

TRADITIONAL“Hardwired Model”

- LEAST FLEXIBLE -

GOAL – SHIFT FROM LATE HARDWARE TO EARLIER SOFTWARE SOLUTION

RISKEmbeddedSystemsMore HWThan SW

STOPCompeting

With HW

STARTCompeting

With SW

Iter

atio

ns, I

nteg

rati

ons,

& V

alid

atio

ns

Agility—Hardware/Embedded Sys.