Skip to content

Phase-based implementation security guidance - #931

Open
mtuchi wants to merge 3 commits into
mainfrom
fix-security-must-items
Open

mtuchi wants to merge 3 commits into
mainfrom
fix-security-must-items

Conversation

@mtuchi

@mtuchi mtuchi commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Short Description

Reworks the implementation security guidance around the six phases in the approved deck, and corrects the confusing or misleading claims from the first version of this PR.

Fixes https://github.com/OpenFn/ofg-services-internal/issues/131, https://github.com/OpenFn/ofg-services-internal/issues/138

Details

Facts were checked against OpenFn/lightning@3b9f4a2 and OpenFn/kit@5b42eff.

get-started/security.md: rewritten by phase

  • Sections for Discovery, Project setup, Build, Integrated testing, Deployment and Operations, taken from the approved "Implementation Security Guidance" deck. Each section covers the risks, the practices, the OpenFn setting that puts each one in place (with links), and a phase-gate check.
  • The 23 guidebook practices are folded into the phases. The guidebook slides, resources and templates are kept below.
  • House style: no H1, no HTML lists, no skipped heading levels.
  • Dropped the OpenHIE link. The old working-group page is gone, and the generic community page added earlier doesn't cover security.

get-started/security-compliance.md

  • Credentials: removed "without seeing its secret values". Only the owner can view or edit secrets in the app (policies/users.ex), but an Editor's job code receives the values at runtime. Removed "purged when deleted", which I couldn't verify.
  • Audit trail: plain language, and OpenFn Cloud users are told to contact support. Removed the personal access token sentence.
  • MFA: requiring MFA depends on the plan (hooks.ex :limit_mfa).
  • Zero persistence is no longer presented as a data-residency control. It controls storage, not where data is processed.

build-for-developers/security-for-devs.md

  • Removed the advice to put real passwords in state.json. It now points to credentials, and to a credential map kept out of the repository for the CLI (the CLI doesn't gitignore it).
  • console.log: removed the confusing "aspects of the sandbox" wording. Turning off Allow console.log() usage sets the job log level to none (run_with_options.ex), and adaptor and runtime logs still show. Merged the two duplicate bullets.
  • Zero persistence: removed the residency framing, and added that retries stop working.

Related pages

  • build/workflows.md: Editors can change the log setting (edit_workflow is an editor action), not only owners and admins.
  • manage-projects/io-data-storage.md: replaced the "data sovereignty" claim with what zero persistence does, including that retries stop working and channel payloads aren't stored.
  • get-started/implementation-checklist.md: links to the phase-based security page.

yarn generate-adaptors && yarn build passes for all locales, and these pages add no new broken-anchor warnings.

AI Usage

  • I have used Claude Code
  • I have used another model
  • I have not used AI

You can read more details in our
Responsible AI Policy

@mtuchi mtuchi self-assigned this Oct 22, 2026
@mtuchi mtuchi changed the title Fix inaccurate security claims and dead links Phase-based implementation security guidance Oct 22, 2026
@mtuchi
mtuchi requested a review from hunterachieng November 2, 2026 12:02
@mtuchi

mtuchi commented Nov 2, 2026

Copy link
Copy Markdown
Contributor Author

@hunterachieng can you take a look at this pr

@hunterachieng hunterachieng left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mtuchi I left minor comments. Please check them out

### Retaining your OpenFn project
## Building in the app

### Syncing to GitHub

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a screenshot of the github sync page here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can i am just worried, with screenshot the UI might change and we forget to update the page

A good example is https://docs.openfn.org/documentation/user-credentials page

### Turning off job logs

Once a workflow is built, anyone with the Editor role or above can turn off its
[Allow console.log() usage](/build/workflows.md#log-outputs) setting. This hides

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets add a screenshot here too

such as which step ran and how long it took, still appear in the run logs.

### Retaining your OpenFn project data

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A screenshot here too?

mtuchi and others added 3 commits November 24, 2026 11:41
Correct credential visibility, roles, MFA, console.log setting and
zero-persistence wording against Lightning, and replace 404 links.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Rewrite security.md around the six implementation phases from the approved
deck, with risks, practices, OpenFn settings and phase-gate checks for each.
Correct misleading claims about credentials, zero persistence and data
residency, console.log settings, the audit trail, and MFA.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Split the page into practices for all job code, building in the app,
building locally with the CLI, and contributing to adaptors. Add a
section on what GitHub Sync commits, and explain when to read
credential values from state.configuration with the HTTP adaptor.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@mtuchi
mtuchi force-pushed the fix-security-must-items branch from 808fbae to 951b985 Compare November 24, 2026 08:42

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants