NaoufalAhaytaf's picture
Add Databricks platform checklist
f6db46c verified
Raw History Blame Contribute Delete
5.63 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Databricks platform checklist</title>
<style>
:root{--bg:#0b0b0c;--card:#141416;--line:#26262a;--fg:#ececee;--mut:#9a9aa3;--acc:#38b6ff}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font:15px/1.55 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
main{max-width:860px;margin:0 auto;padding:40px 20px 64px}
h1{font-size:28px;margin:0 0 6px;letter-spacing:-.01em}
.lead{color:var(--mut);margin:0 0 24px}
.bar{position:sticky;top:0;background:var(--bg);padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px;z-index:1}
.track{flex:1;height:6px;background:var(--line);border-radius:3px;overflow:hidden}
.fill{height:100%;width:0;background:var(--acc);transition:width .25s}
.score{font-variant-numeric:tabular-nums;color:var(--mut);white-space:nowrap}
button{background:none;border:1px solid var(--line);color:var(--mut);padding:5px 10px;border-radius:6px;cursor:pointer}
button:hover{color:var(--fg);border-color:var(--mut)}
section{margin-top:28px}
h2{font-size:13px;text-transform:uppercase;letter-spacing:.14em;color:var(--acc);margin:0 0 10px;display:flex;justify-content:space-between}
h2 span{color:var(--mut)}
label{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;background:var(--card);border:1px solid var(--line);border-radius:8px;margin-bottom:6px;cursor:pointer}
label:hover{border-color:var(--mut)}
input{margin-top:4px;accent-color:var(--acc)}
input:checked+span{color:var(--mut);text-decoration:line-through}
footer{margin-top:36px;color:var(--mut);font-size:13px}
a{color:var(--acc)}
</style>
</head>
<body>
<main>
<h1>Databricks platform checklist</h1>
<p class="lead">A starting point for a secure, governed and maintainable Databricks platform. Tick what is in place; progress stays in your browser only.</p>
<div class="bar"><div class="track"><div class="fill" id="fill"></div></div><div class="score" id="score"></div><button id="reset" type="button">Reset</button></div>
<div id="list"></div>
<footer>A checklist to prompt the right questions, not an audit or a compliance statement. Built by <a href="https://www.nexops.nl" target="_blank" rel="noopener">NexOps</a>.</footer>
</main>
<script>
const DATA=[
["Identity and access",[
"Users and groups are synced from your identity provider, not managed by hand.",
"Production workloads run as service principals, not as personal accounts.",
"Permissions are granted to groups, never to individual users.",
"Account and workspace admin roles are limited and reviewed regularly."]],
["Data governance",[
"Unity Catalog is enabled and every workspace is attached to a metastore.",
"The catalog and schema layout follows environment and domain, with groups as owners.",
"Cloud storage is reached through storage credentials and external locations, not keys in notebooks.",
"Sensitive columns are tagged and protected with column masks or row filters.",
"Audit logs, system tables and lineage are enabled and actually used."]],
["Network and secrets",[
"Secrets live in a secret scope backed by a key vault and never in code or repositories.",
"Workspaces use private connectivity where policy requires it.",
"Cluster policies limit compute size, runtime versions and libraries.",
"Storage accounts only accept traffic from approved networks."]],
["Platform as code",[
"Workspaces, catalogs and grants are defined as code, for example with Terraform.",
"Jobs and pipelines are deployed from CI/CD, for example with Databricks Asset Bundles, not edited in the UI.",
"Dev, test and production are separate and changes are promoted by the pipeline.",
"Infrastructure state is stored remotely with locking and restricted access."]],
["Operations and cost",[
"Compute and jobs carry tags for cost attribution, and budgets or alerts are set.",
"Every job has an owner, failure alerts, retries and timeouts.",
"Data quality expectations are enforced inside the pipelines.",
"Runtime upgrades are planned and versions are pinned deliberately.",
"Recovery objectives for critical tables are defined and tested."]]];
const KEY="nexops-databricks-checklist";
let saved={};try{saved=JSON.parse(localStorage.getItem(KEY)||"{}")}catch(e){}
const list=document.getElementById("list");
DATA.forEach((g,gi)=>{const s=document.createElement("section");const h=document.createElement("h2");const t=document.createElement("b");t.textContent=g[0];const c=document.createElement("span");h.append(t,c);s.append(h);
g[1].forEach((txt,i)=>{const id=gi+"-"+i;const l=document.createElement("label");const cb=document.createElement("input");cb.type="checkbox";cb.checked=!!saved[id];cb.dataset.id=id;cb.dataset.g=gi;const sp=document.createElement("span");sp.textContent=txt;l.append(cb,sp);s.append(l)});
list.append(s);s._c=c});
function update(){const all=[...document.querySelectorAll("input")];const done=all.filter(i=>i.checked).length;
document.getElementById("fill").style.width=(done/all.length*100)+"%";document.getElementById("score").textContent=done+" of "+all.length;
list.querySelectorAll("section").forEach((s,gi)=>{const a=[...s.querySelectorAll("input")];s._c.textContent=a.filter(i=>i.checked).length+"/"+a.length});
const o={};all.forEach(i=>{if(i.checked)o[i.dataset.id]=1});try{localStorage.setItem(KEY,JSON.stringify(o))}catch(e){}}
list.addEventListener("change",update);
document.getElementById("reset").addEventListener("click",()=>{document.querySelectorAll("input").forEach(i=>i.checked=false);update()});
update();
</script>
</body>
</html>