-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
147 lines (137 loc) · 4.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
---
layout: default
title: DevSecOps Capability Modelling
---
<!-- D3.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js" charset="utf-8"></script>
<div class="pt-4 px-4">
<h3>Capability Radar</h3>
<p class="lead">Rank your current progress on the DevSecOps journey and then drive improvement from there.</p>
<p>For each DevSecOps discipline you have a maturity rank between 1-4</p>
</div>
<div class="radarChart text-center"><!-- radar component goes here --></div>
<div class="pt-4 px-4">
<h3>Principles Matrix</h3>
<p class="lead">Deeper dive into each of the the DevSecOps disciplines ranked above.</p>
<p>
The minimum we want to achieve to have any sanity is <strong>level 3</strong> for almost all DecSecOps disciplines
with <strong>level 4</strong> being our north star.
</p>
<p>
Hover over each section in the table below to see a list of questions which you can use to self assess your
maturity.
</p>
<div class="principles-table table-responsive"><!-- table component goes here --></div>
</div>
<div class="pt-4 px-4">
<p>
4 Key metrics scores from <a href="https://dora.dev/">2023's DORA Report</a>. A useful industry benchmark
</p>
<div>
<table class="table table-hover table-striped">
<thead class="table-dark">
<tr>
<th>
Performance level
</th>
<th>
Deployment frequency
</th>
<th>
Change lead time
</th>
<th>
Change failure rate
</th>
<th>
Failed deployment recovery time
</th>
</tr>
</thead>
<tr class="table-success">
<td>Elite</td>
<td>On demand</td>
<td>Less than one day</td>
<td>5%</td>
<td>Less than one hour</td>
</tr>
<tr class="table-success">
<td>High</td>
<td>Between once per day and once per week</td>
<td>Between one day and one week</td>
<td>10%</td>
<td>Less than one day</td>
</tr>
<tr class="table-warning">
<td>Medium</td>
<td>Between once per week and once per month</td>
<td>Between one week and one month</td>
<td>15%</td>
<td>Between one day and one week</td>
</tr>
<tr class="table-danger">
<td>Low</td>
<td>Between once per week and once per month</td>
<td>Between one week and one month</td>
<td>64%</td>
<td>Between one month and six months</td>
</tr>
</table>
</div>
</div>
<script src="js/radarChart.js"></script>
<script src="js/radarLegend.js"></script>
<script src="js/table.js"></script>
<script>
/**
* render D3 charts and tables
*/
// radar chart dimensions and options
const margin = { top: 100, right: 100, bottom: 100, left: 100 };
const width = Math.min(1024, window.innerWidth - 10) - margin.left - margin.right;
const height = Math.min(width, window.innerHeight - margin.top - margin.bottom - 20);
const color = d3.scale.category10();
const radarChartOptions = {
width,
height,
margin,
maxValue: 1,
levels: 4, // how may rings
roundStrokes: true, // round or square edges
strokeWidth: 3, // The width of the stroke around each blob,
color,
legendLabelFontSize: 19
};
// fetch the data and render as a chart & table
fetch("data/data.json")
.then((response) => response.json())
.then((rawData) => {
const headings = Object.values(rawData.headings);
const data = Object.values(rawData.principles);
// wrangle data for spider chart
const teams = Object.keys(data[0].scores);
const scores = [];
teams.forEach((team) => {
scores.push(
data.reduce((acc, el) => {
acc.push({
axis: el.principle.value,
value: el.scores[team]
});
return acc;
}, [])
);
});
// render spider chart
RadarChart(".radarChart", scores, radarChartOptions);
// render spider chart legend
renderChartLegends(".radarChart", teams, width, height, color);
// render table
generateTable(".principles-table", headings, data, radarChartOptions);
// enable bootstrap popover(hover) component
$(() => {
$('[data-toggle="popover"]').popover({ trigger: "hover", html: true });
});
})
.catch((err) => console.error);
</script>