laneyard 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -86,496 +86,18 @@ asked your project's own fastlane for them.
86
86
 
87
87
  ![The project screen: lanes read from the Fastfile, with their descriptions, and the run history](https://raw.githubusercontent.com/martinfrouin/laneyard/main/docs/screenshots/project.png)
88
88
 
89
- ### What setup does about a credential your Fastfile names outright
89
+ Setup has a second act: it names any credential your Fastfile hardcodes — a path only your laptop
90
+ has, a key written inline — and offers, refusably, to lift it into the vault and patch the file.
91
+ See [Credentials](docs/credentials.md).
90
92
 
91
- `laneyard setup` has a second act, after `Project "x" is set up` prints. The order is the guarantee:
92
- everything below is offered to a project that already works, so declining it all costs nothing.
93
+ ## Documentation
93
94
 
94
- It looks for a credential named by a literal value:
95
-
96
- ```ruby
97
- upload_to_play_store(json_key: "./play-service-account.json", track: "beta")
98
- ```
99
-
100
- That line builds on the laptop it was written on and nowhere else. Laneyard builds from a clone of
101
- your remote, so the JSON is either gitignored (absent from the clone — the run fails) or committed (a
102
- service account key in your history). Neither is something a checklist can fix later.
103
-
104
- So setup reads the Fastfile with Prism and offers — one at a time, refusably — to lift each
105
- credential it recognises into the vault and replace the literal with `ENV.fetch(…)`. It reads the
106
- syntax tree, not text, because `json_key:` also appears in comments and strings: a wrong patch to a
107
- build file is the worst thing this feature could do.
108
-
109
- Three kinds, by how sure the reading is:
110
-
111
- - **a path to a credential file** — `key_filepath:` on `app_store_connect_api_key`, `json_key:` on
112
- `supply`/`upload_to_play_store`/`validate_play_store_json_key` — offered only when the path
113
- resolves to a file on disk. Defaults to yes. A `key_id:` or `issuer_id:` written beside an adopted
114
- key is carried with it, rewritten to the variable the block exports and used to pre-fill its fields;
115
- - **the credential's contents, inline** — `key_content:`, `json_key_data:`, a private key in
116
- cleartext. Defaults to yes. The patch renames the keyword too — `key_content:` becomes
117
- `key_filepath:`, `json_key_data:` becomes `json_key:` — because a stored block is exported as a
118
- *path*, not text;
119
- - **an argument that looks like a secret** — a literal ending in `token`, `password`, `secret`,
120
- `api_key` or `url`. **Defaults to no**, value masked: it is the one kind where a false positive is
121
- likely, and patching a non-secret by default is a silent regression.
122
-
123
- The vault is written before the Fastfile: if lifting fails, nothing has been patched to read a
124
- missing variable. The patch is spliced by byte offset — everything outside the replaced range is
125
- byte-identical — and the file is re-parsed before the command returns; if it no longer parses, the
126
- previous content is restored.
127
-
128
- ```diff
129
- - upload_to_play_store(json_key: "./play-service-account.json", track: "beta")
130
- + upload_to_play_store(json_key: ENV.fetch("SUPPLY_JSON_KEY"), track: "beta")
131
- ```
132
-
133
- `ENV.fetch` rather than `ENV[]`: a missing variable fails at the top of the lane and names itself,
134
- instead of reaching an action as `nil`.
135
-
136
- **Setup does not commit or push.** It prints the `git diff` command and stops — the working copy is
137
- yours. So **a patched Fastfile changes nothing until you push it**: Laneyard builds from the remote,
138
- and until the commit is there, every run still reads the old path. It also does not take the
139
- credential out of your history; where `git ls-files` finds the file, it says so — rotating the key is
140
- the fix.
141
-
142
- Two things it leaves alone: a value written as a heredoc (its reported location is the marker, not
143
- the text, so patching would corrupt the file), and the Android keystore (configured in Gradle, not
144
- the Fastfile — handled under Signing credentials below).
145
-
146
- Declining writes nothing, anywhere. And where nothing can run Prism — a Mac whose only Ruby is the
147
- system 2.6 — setup prints `Fastfile not analysed …` and finishes as always. The scan is a service,
148
- never a gate.
149
-
150
- ## Configuration
151
-
152
- All configuration lives in files. The database holds execution state only, so backing up
153
- Laneyard means copying one file, and restoring it means copying it back.
154
-
155
- ### `~/.laneyard/config.yml` — the server and its projects
156
-
157
- ```yaml
158
- server:
159
- port: 7890
160
- bind: 0.0.0.0
161
- users: # written by `laneyard setup`, see Accounts
162
- - { name: martin, role: admin, password_hash: "scrypt$…" }
163
- - { name: lea, role: builder, password_hash: "scrypt$…", projects: [cartes-ios] }
164
- max_concurrent_runs: 1 # only 1 is accepted, see below
165
- retention: { runs: 50, artifact_days: 30 }
166
-
167
- projects:
168
- - slug: cartes-ios
169
- name: Cartes iOS
170
- git_url: git@github.com:you/cartes.git
171
- default_branch: main
172
- git_auth: { kind: ssh_key, ref: ~/.ssh/id_ed25519 }
173
- ```
174
-
175
- `max_concurrent_runs` accepts `1` only. Runs drain from a single queue, one at a time across every
176
- project — parallel runs would need a working directory per run, which does not exist yet. A larger
177
- number is refused at load, so a server is never configured for builds that never happen.
178
-
179
- ### Accounts
180
-
181
- Everyone who signs in has a name, a password and one of two roles — two, because a third is easy to
182
- add and impossible to remove.
183
-
184
- | | **admin** | **builder** |
185
- |---|---|---|
186
- | start a build, watch it, cancel it | ✓ | ✓ |
187
- | download artifacts, read logs and the Fastfile | ✓ | ✓ |
188
- | see the readiness checklist | ✓ | ✓ |
189
- | read and write secrets | ✓ | |
190
- | save, commit and push the Fastfile | ✓ | |
191
- | remove a project | ✓ | |
192
- | manage accounts | ✓ | |
193
-
194
- A builder is who you give someone who ships without being trusted with the signing chain: they press
195
- the button and watch, and never see a credential.
196
-
197
- The interface shows a builder only what a builder can use — no secrets, fastfile, settings or
198
- accounts tabs. That is courtesy, not security: the server refuses those routes on its own, whatever
199
- the browser was shown, and the test suite proves it for every verb and every spelling of the address.
200
-
201
- #### Which projects a builder reaches
202
-
203
- An admin reaches every project. A builder reaches only the projects it is granted, from the accounts
204
- screen. A project a builder cannot reach is **invisible**, not shown-and-locked — absent from its
205
- lists and a 404 by URL, answered with the body a nonexistent project gives, so the two cannot be told
206
- apart. Enforced by the server, in one place, not the browser.
207
-
208
- The reach is a `projects` list on the account in `config.yml`, with three states:
209
-
210
- - **absent** — every project. A config written before this feature grants everyone, so nobody loses
211
- access on an upgrade.
212
- - **`[]`** — no project. What a new account starts with, so a new builder sees nothing until granted.
213
- - **a list of slugs** — exactly those projects.
214
-
215
- Removing a project strips its slug from every account, so a grant never points at a project that is
216
- gone, and a re-created slug does not inherit an old grant.
217
-
218
- Add and remove accounts from the accounts screen, or from the command line:
219
-
220
- ```bash
221
- echo "$PASSWORD" | laneyard user add lea --role builder
222
- ```
223
-
224
- The password is read from standard input, never an argument — an argument lands in your shell
225
- history. Without `--role`, the account is a builder.
226
-
227
- Two things are refused, in the API and CLI alike: removing or demoting the last admin. A server
228
- nobody can administer cannot be repaired from the interface.
229
-
230
- Anyone changes their own password and name from **your account** — a builder included. Either asks
231
- for the current password even though you are signed in: a session is a cookie in a browser that may
232
- have been left open on a desk. Doing it ends every other session that account has. That is how the
233
- password `laneyard setup` printed once stops being a string on a sticky note.
234
-
235
- Changing your name edits your `config.yml` entry in place, keeping your role and access, and refuses
236
- a name another account already has. The next time you sign in, you type the new one — self-service,
237
- whatever your role.
238
-
239
- Removing an account ends its sessions immediately — "remove the account" and "revoke access" are the
240
- same act. So does editing `config.yml` by hand: every request looks the account up again, so a change
241
- takes effect at once rather than at the next restart.
242
-
243
- ### `laneyard.yml` — in your repository, and committed
244
-
245
- Build behaviour belongs next to the code, so it can be versioned with it — `laneyard setup`
246
- writes this file for you, and you should commit it. A colleague who clones the repository then
247
- builds it the same way, without configuring anything.
248
-
249
- ```yaml
250
- fastlane_dir: fastlane
251
- runtime: bundle # or `system`
252
- timeout_minutes: 60
253
- artifact_globs:
254
- - "build/**/*.ipa"
255
- - "build/**/*.app.dSYM.zip"
256
- platforms: [ios] # or `[android]`, or both
257
- ```
258
-
259
- `platforms` decides which half of the readiness checklist applies: an Android project is never
260
- asked for an App Store Connect key. Left out, Laneyard looks at the repository — an Xcode project
261
- means iOS, a Gradle build means Android — and reports what it found rather than assuming.
262
-
263
- It looks **beside the Fastfile**, not at the repository root, because that is where an app keeps its
264
- platform folders: `ios/` and `fastlane/` are siblings and move together when the app is one directory
265
- of a monorepo. When that guess is wrong, `platforms` settles it.
266
-
267
- Field by field, the repository file wins over the server block, which wins over the defaults. Any
268
- field may also go in the server block, so a repository you would rather not touch can be configured
269
- entirely from `config.yml`.
270
-
271
- **A monorepo carries one `laneyard.yml` per app**, in the app's own directory beside its fastlane
272
- folder, so two apps on one remote each describe their own build. Inside an app-level file **paths are
273
- relative to that file's directory** — `artifact_globs: ["**/*.aab"]`, a plain `fastlane_dir:
274
- fastlane` usually left out — so an app moved or duplicated keeps its file unchanged. A `laneyard.yml`
275
- at the repository root still works, with repo-root-relative paths.
276
-
277
- Both files are watched: edit them by hand and Laneyard picks the change up. An invalid file is
278
- reported and the last valid configuration stays live — a typo never takes the server down.
279
-
280
- ### Secrets
281
-
282
- The variables your lanes read go into an encrypted vault, from a project's Secrets tab — global
283
- secrets apply everywhere, a project's own win over them. The files it signs with go in the same
284
- vault as blocks (below).
285
-
286
- A secret is write-only: the server never sends a masked value back, so no browser ever holds one.
287
- What you did not mark secret — `APP_VERSION`, an issuer id — is shown on request, one key at a time;
288
- masking and unmasking switch which it is without retyping the value.
289
-
290
- Nothing in your lanes has to change afterwards: `key_filepath:` and `json_key:` keep working — a
291
- signing block puts a real file back on disk for the length of a run. A secret becomes an environment
292
- variable for every run of its project, kept out of the logs; a masked value must be at least four
293
- characters (see below).
294
-
295
- ### Signing credentials
296
-
297
- A signing credential is not a string: an Android keystore is bytes Gradle reads through a path, and a
298
- `.p8` is useless without its key id and issuer id. So these are stored as blocks — one file plus the
299
- fields that make it usable, taken whole or refused. A keystore stored without its alias is not a
300
- partial success; it is a build that fails in a month.
301
-
302
- | block | the file | the fields beside it |
303
- | ------------------------------ | ---------------------- | ------------------------------------------- |
304
- | *app store connect key* | `.p8` | key id, issuer id |
305
- | *android upload keystore* | `.jks` or `.keystore` | key alias, store password, key password |
306
- | *play store service account* | JSON | — |
307
-
308
- They live in the **signing** part of a project's Secrets tab. The file is encrypted at rest and never
309
- comes back out to a browser: a stored block shows its file name and nothing more, so replacing one
310
- means giving it again in full.
311
-
312
- A variable a block has made redundant is said to be so, beside the row and in one sentence:
313
- `SUPPLY_JSON_KEY_DATA` once a Play block applies — it still works, but the same credential is then
314
- stored twice — and `APP_STORE_CONNECT_API_KEY_P8`, which no action in fastlane has ever read.
315
- Neither is removed for you: the row is yours, and the button to drop it is on the same line.
316
-
317
- **A block becomes real files, for the length of a run.** Gradle's `storeFile` and
318
- `app_store_connect_api_key` both want a path, so a credential that exists only as ciphertext cannot
319
- be used. Each block that applies is written into `~/.laneyard/runs/<run id>/secrets/`, mode `600` in
320
- a `700` directory, removed when the run ends — passed, failed, cancelled or timed out. Every
321
- applicable block is written whether or not the lane looks like it needs one: a Fastfile can reach
322
- anything through `sh` or a plugin, and a wrong guess of "not needed" is a debug-signed artifact, not
323
- a missing variable.
324
-
325
- **It reaches your lanes under the names your project already reads.** Each form is pre-filled with
326
- the names fastlane declares — `APP_STORE_CONNECT_API_KEY_KEY_FILEPATH`/`_KEY_ID`/`_ISSUER_ID`,
327
- `SUPPLY_JSON_KEY` — and every one is editable. A Fastfile written around
328
- `ENV.fetch("ASC_KEY_FILEPATH")` is not doing it wrong: you say so on the form instead of renaming
329
- anything. The name stored is the only one exported — no default is emitted alongside, which would
330
- make a typo look like it worked. The keystore's names are Laneyard's own (`ANDROID_KEYSTORE_PATH`,
331
- `ANDROID_KEYSTORE_PASSWORD`, `ANDROID_KEY_ALIAS`, `ANDROID_KEY_PASSWORD`), same rule.
332
-
333
- **The keystore block can also supply `key.properties`.** Flutter's own build script signs with the
334
- release config when that file exists and the debug config when it does not, and gitignores it — so on
335
- a build server it is always absent. Rather than telling you to rewrite the script, Laneyard writes
336
- the file it looks for, for the length of the run, out of the keystore block. Two things it cannot
337
- read from the script are asked for on the block: where the file goes, and what the keys inside are
338
- called (starting from Flutter's four).
339
-
340
- **Only the projects that sign need any of this.** fastlane also takes screenshots, runs tests, syncs
341
- certificates — so the three blocks are an offer, not a gate. A project that just wants an artifact
342
- out of Gradle needs the keystore and nothing else.
343
-
344
- A block stored on a project belongs to that project. One stored globally applies to every project,
345
- and a project's own block wins over it. Both are admin-only, like the rest of the vault.
346
-
347
- ### Readiness
348
-
349
- Every project has a Readiness tab: what stands between it and a build that runs while nobody watches.
350
- Only the checks that apply are shown — an Android project is never asked for an App Store Connect key.
351
-
352
- **What a tick means.** The checks read your Fastfile, following a lane into the methods it defines.
353
- Two things stay out of reach: `import`/`import_from_git` pulls in lanes from elsewhere, and
354
- `fastlane/actions/` holds actions whose names mean nothing to a reader that has only seen the
355
- Fastfile. Where either applies, a check that found nothing says *could not tell* rather than ticking.
356
- A green tick means "looked, and it is fine" — never "looked, and saw nothing".
357
-
358
- Always:
359
-
360
- - **the repository** answers `git ls-remote` without asking for credentials — a run that meets a
361
- password prompt does not fail, it waits;
362
- - **dependencies** are installable: `bundle check` against your Gemfile, or the `fastlane` a run
363
- would otherwise find on the PATH;
364
- - **no lane calls an action known to stop and ask** — `prompt`, `sigh`, `cert`, a writable
365
- `match`, an upload waiting for its summary to be confirmed;
366
- - **the variables the lanes read** are in the vault. Every `ENV.fetch("…")` a lane reaches is
367
- collected and looked up — the commonest way a project that works on your laptop fails on a server:
368
- the variables live in a gitignored `fastlane/.env` that never reaches the clone.
369
-
370
- Two things a Fastfile cannot tell you. A variable read by a tool the lane shells out to —
371
- `sentry-cli` and `SENTRY_AUTH_TOKEN` — is named nowhere in the lanes; a committed
372
- `fastlane/.env.example` is read for exactly this, and `required_secrets` in `laneyard.yml` covers
373
- the rest. A variable found only in the server's own environment is reported, not ticked: it works,
374
- but because of how the server was started.
375
-
376
- A name a signing block exports counts as being in the vault, since that is where the block is:
377
- a lane reading `SUPPLY_JSON_KEY` with a Play block stored is not asked for it again, on this
378
- checklist or on the Secrets tab. The two read the same answer.
379
-
380
- On iOS:
381
-
382
- - **App Store Connect** has an API key. The vault is checked first and is the only thing that
383
- earns a tick — a signing block, or the variables a project stored before blocks existed, since
384
- fastlane reads those exactly as it did. A project that configured fastlane long before it met
385
- Laneyard keeps its key elsewhere, so the lanes are read for `app_store_connect_api_key` and for a `key_filepath` or
386
- `api_key_path` argument, and the repository for a `.p8`. Any of those is reported as *could not
387
- tell*, not as a warning: a path in a Fastfile says a key was arranged, not that the file is on
388
- this machine. An Appfile holding only an `apple_id` is a warning — that is the account
389
- two-factor authentication will stop the run to ask about. One name is called out rather than
390
- accepted: a value stored under `APP_STORE_CONNECT_API_KEY_P8` used to earn a tick here, and no
391
- action in fastlane has ever read a variable of that name — the check now says so, because being
392
- told to redo the work beats a screen that has quietly gone silent about it;
393
- - **match** has its `MATCH_PASSWORD` stored and is called `readonly`, so it fetches certificates
394
- instead of trying to create them.
395
-
396
- On Android:
397
-
398
- - **the keystore** is reachable without a prompt: a lane handing `gradle` a `storeFile` needs a
399
- passphrase, and one that is neither in the call nor in the vault makes gradle stop and ask. A
400
- keystore block settles this before the lanes are read at all — the file and both passphrases
401
- reach the run together, so nothing can stop and ask, whichever lane runs;
402
- - **the release is signed with the release key.** The one check whose failure is silent: Flutter's
403
- own snippet signs with the release config when `key.properties` exists and the *debug* config when
404
- it does not, and gitignores that file — so it is absent from every clone. The build then succeeds
405
- with a debug-signed artifact, and the store rejects it minutes later saying nothing about signing.
406
- This reads the Gradle file as text and says so before the build; and for a project whose keystore
407
- is stored here, writes the `key.properties` the build asks for, for the length of the run — marked
408
- `# written by laneyard, do not commit`, removed when fastlane stops. A file of your own without
409
- that marker is never touched;
410
- - **the Play Store service account** is there when a lane calls `upload_to_play_store`. The vault
411
- first — a block, or a `SUPPLY_JSON_KEY` variable stored before blocks existed — then the
412
- `json_key` argument in the call, then the **Appfile**: `json_key_file` and `json_key_data`, which
413
- is where a long-standing project almost always keeps it. Only the vault is a tick; the other two
414
- are *could not tell*, for the same reason as above.
415
-
416
- Like the iOS ones, the Android checks read **literal arguments only**. `gradle(storePassword:
417
- ENV["PW"])` is reported as undetermined, never guessed at: a checklist that guesses gets believed.
418
-
419
- They run when you open the tab or press refresh, never on their own — they shell out to git and
420
- bundler. The last run's time is on screen, because a stale green tick is worse than a red cross.
421
-
422
- Nothing here blocks anything. A red check is never why a run cannot start, and Laneyard never edits a
423
- Fastfile to make its own checklist green — each line explains, you decide. Where the fix is one
424
- action, the line links to the Secrets tab.
425
-
426
- **What it cannot see.** The checklist reads *literal* arguments only. `match(readonly: true)` is
427
- green, `match(readonly: false)` a warning, but `match(readonly: ENV["RO"])` has no value until the
428
- lane runs — reported as undetermined (`○`, with the reason) rather than guessed. A checklist that
429
- guesses gets believed, and then it is worse than none. Android signing is read from the Gradle
430
- script, as text — running someone's build script to ask it a question is not something it may do.
431
-
432
- ### The Fastfile
433
-
434
- Every project has a Fastfile tab. **It is a text editor** — your file, in a box, with Ruby syntax
435
- highlighting and nothing between you and it. The structured view, where lanes and actions are things
436
- you arrange rather than type, is still to come; this first half is useful on its own: fixing a lane
437
- at 2am should not require an SSH session.
438
-
439
- **Every write is verified.** Saving sends the file to the server, which writes it byte-for-byte then
440
- asks fastlane to parse it and list its lanes. If that fails, the previous content is restored before
441
- the request answers, and fastlane's reason appears above the editor with your work still in the box.
442
- A broken Fastfile never reaches a workspace a run might build from.
443
-
444
- Saving is explicit: verification is a Ruby subprocess, not a regex, and running it on every keystroke
445
- would be slow and dangerous. `⌘S` is another way to ask, not an autosave. Laneyard also refuses to
446
- write while a run of that project is in flight — that run is reading the very file the write replaces.
447
-
448
- Below the editor is what git makes of the workspace: the diff, a message field, `commit` and `push`.
449
- A commit stages exactly the files that changed, never `git add -A` — a build scatters artifacts and
450
- reports around, and none belong in your history.
451
-
452
- ### Removing a project
453
-
454
- Every project has a Settings tab, and the one thing on it is removal. It removes everything
455
- Laneyard holds for the project, in one confirmed act. It is confirmed by typing the project's
456
- name: it is the one destructive action in Laneyard, and a dialogue you can click through is not a
457
- confirmation.
458
-
459
- What it removes:
460
-
461
- - **its block in `config.yml`** — taken out through the YAML document, so your comments and your
462
- key order survive;
463
- - **its run history and its logs.** Every build the project ran, its rows and its logs, deleted.
464
- This is the one thing here nothing can rebuild, and the reason removal is behind a typed name;
465
- - **the clone and the artifacts on disk**, deleted;
466
- - **its secrets and its signing blocks in the vault** — Laneyard's own encrypted copies, forgotten.
467
- The screen counts them before and after, because they are the one thing here you cannot go and look
468
- at: no route ever sends a credential back.
469
-
470
- What it does *not* touch:
471
-
472
- - **the git remote.** The repository is on your host and disk; Laneyard neither reads nor writes it;
473
- - **the credential originals.** The `.p8` and keystore you uploaded are wherever you keep them;
474
- Laneyard removes only its own encrypted copy;
475
- - **global secrets and global signing blocks.** Read by every project, not this one's to take. The
476
- result names how many it left.
477
-
478
- Removal is refused while a run of that project is in flight — that run is using the workspace. A
479
- queued run will not start: it ends as failed, saying its project is gone.
480
-
481
- The same thing from the command line, run from the app's directory — the one holding its
482
- `laneyard.yml`:
483
-
484
- ```bash
485
- cd apps/cartes-ios
486
- laneyard remove --dry-run # show what would go, and stop
487
- laneyard remove # remove it, after a typed confirmation
488
- ```
489
-
490
- No slug to give: it reads one from the `laneyard.yml` there, refusing if the file is missing or has
491
- no slug (run `laneyard setup` again). It deletes that file too, and says to commit the deletion.
492
- Otherwise it matches the Settings tab: confirmed by typing the slug back, `--dry-run` stops at the
493
- inventory, refused during a run.
494
-
495
- ### Resetting
496
-
497
- ```bash
498
- laneyard reset --dry-run # show what would go, and stop
499
- laneyard reset # wipe it, after a typed confirmation
500
- ```
501
-
502
- `laneyard reset` wipes the data and keeps you able to use Laneyard: every project, the database, the
503
- workspaces, the artifacts and the logs go; your accounts and the vault key stay. You sign in with the
504
- same names afterwards, and keeping the key means an older `laneyard.db` backup stays readable. The
505
- database comes back empty on the next start, which also clears sessions, so everyone signs in again.
506
-
507
- It keeps the `server:` block of `config.yml` (accounts, port, bind, retention) and `~/.laneyard/key`,
508
- and never touches the git remotes or credential originals. It reads the inventory first and, like
509
- `uninstall`, is confirmed by typing the folder's path, not `y`.
510
-
511
- ### Uninstalling
512
-
513
- ```bash
514
- laneyard uninstall --dry-run # list what is there, and stop
515
- laneyard uninstall # remove it, after a typed confirmation
516
- npm uninstall -g laneyard # remove the package itself
517
- ```
518
-
519
- `laneyard uninstall` removes the data folder: `config.yml`, the vault key, the database, the
520
- workspaces, the artifacts and the logs. It reads the whole inventory from disk first — projects,
521
- secret and block counts, sizes and paths — and prints it before asking.
522
-
523
- The vault key is the one loss that cannot be undone: every secret and block is encrypted under
524
- `~/.laneyard/key`, and once it is gone the database is ciphertext nobody can read. The originals are
525
- yours and untouched — the `.p8` in your downloads, the keystore in your safe — so what you agree to
526
- is uploading them again. Global secrets and blocks go too; the inventory says so.
527
-
528
- Confirmed by typing the folder's path, not `y`: this is the one command that destroys credentials.
529
- Anything in the folder Laneyard did not put there is named, left alone, and the folder kept for it.
530
- It does not remove the npm package — a command cannot delete the binary it runs from — and prints the
531
- command that does, on purpose: a package manager must not delete someone's signing keys on its own.
532
-
533
- ## Security
534
-
535
- Read this before putting Laneyard on a network.
536
-
537
- - **It is built for a local network, not the internet.** It listens on `0.0.0.0` so you can reach
538
- it from your laptop, behind a password. Do not expose it publicly. If you need remote access,
539
- put it behind a VPN or an SSH tunnel.
540
- - **Passwords** are stored as scrypt hashes and repeated failures are throttled, per account, so
541
- hammering one name cannot lock out the others. Sessions survive a restart, and what is stored is
542
- a SHA-256 of the token rather than the token: a stolen `laneyard.db` is a list of digests, not a
543
- ring of working keys.
544
- - **A role is enforced by the server, not by the interface.** One table names the routes that
545
- require an admin, and one hook is the only thing that reads it — there is no permission check
546
- hidden inside a handler. What a builder is not shown is also what a builder is refused.
547
- - **Secrets are encrypted at rest.** Values are stored with AES-256-GCM under a key in
548
- `~/.laneyard/key` — outside the database, mode `600`, and Laneyard refuses to start if anyone else
549
- can read it. Someone who walks off with `laneyard.db` gets ciphertext. Nothing else holds
550
- plaintext: the store, API and interface deal in names only, and no route sends a value back — which
551
- is why the Secrets tab has no reveal button.
552
- - **A signing block is on disk only while a run needs it.** The file is written into
553
- `~/.laneyard/runs/<run id>/secrets/`, mode `600` in a `700` directory, and that directory goes when
554
- the run ends. The block's secret fields — the keystore passphrases — are stripped from output like
555
- any masked secret, because gradle will echo one back on failure.
556
- - **Masked values are removed from output before it is written, not when displayed.** The
557
- substitution happens once, where a run's output fans out, so the log file, the live stream and the
558
- stored error summary all hold `••••••`. It survives being split across two chunks of output.
559
- - **Do not put secrets in `config.yml`.** It is a plain file with ordinary permissions. Use the
560
- Secrets tab, which puts them in the encrypted vault instead.
561
-
562
- What this does *not* cover, stated plainly:
563
-
564
- - **Git credentials are not in the vault.** `git_auth` points at an SSH key on disk by path;
565
- token authentication is refused at load time rather than silently ignored, so a project cannot
566
- be configured for something that never happens. Laneyard removes the configured repository URL
567
- from its own git error messages — so a token embedded in an HTTPS URL does not leak that way —
568
- but that is one string, not a vault.
569
- - **A value shorter than four characters is refused, not protected.** Removing a two-character
570
- string from a log would shred the output while hiding nothing, so Laneyard says no rather than
571
- pretending. Store it unmasked if it genuinely does not matter.
572
- - **Anything fastlane prints that is not a stored secret is stored in the clear**, under
573
- `~/.laneyard/logs/`.
574
- - **`key.properties` is written into the workspace, and it holds passwords.** It is the one
575
- credential Laneyard puts in the clone rather than the run's own directory, because Gradle resolves
576
- that path relative to the build. Mode `600`, a marker as its first line, removed when the run ends
577
- and swept for at the start of the next in case a server was killed mid-build. A file of yours
578
- without that marker is never touched.
95
+ - **[Configuration](docs/configuration.md)** `config.yml` and `laneyard.yml`.
96
+ - **[Accounts](docs/accounts.md)** — the two roles, and which projects a builder reaches.
97
+ - **[Credentials](docs/credentials.md)** — hardcoded credentials at setup, secrets, signing blocks.
98
+ - **[Readiness](docs/readiness.md)** — the per-project checklist, and what a tick means.
99
+ - **[Managing a project](docs/managing.md)** — the Fastfile editor, removing, resetting, uninstalling.
100
+ - **[Security](docs/security.md)** — what is encrypted, what is not, and what this does not cover.
579
101
 
580
102
  ## Status
581
103
 
@@ -597,9 +119,9 @@ What this does *not* cover, stated plainly:
597
119
  the vault and patch the file
598
120
  - `○` git-triggered and scheduled builds
599
121
 
600
- Two things worth knowing: listing lanes does not fetch the repository, so a lane you just pushed
601
- appears after the next run; and runs execute one at a time across all projects. A queued run survives
602
- a server restart and starts on its own.
122
+ Two things worth knowing: the screens read the clone rather than the remote, so a lane you just
123
+ pushed appears after the next run — or after pressing refresh; and runs execute one at a time across
124
+ all projects. A queued run survives a server restart and starts on its own.
603
125
 
604
126
  ## Changelog
605
127