Skip to content

Security and data handling

Audience: IT and security staff at companies evaluating the product. This page answers where data is stored, what is stored, who can see it, and how it is protected. For implementation boundaries, see docs/development/SECURITY.md. For the architecture, see docs/development/ARCHITECTURE.md. The content reflects the implementation as of October 2026. Items marked “planned” are not implemented.


The product is an execution and ledger service where requests and approvals run on the Web and by email. Slack is an optional integration. It is currently offered as a dedicated environment for your company (single tenant), built with Docker Compose on a VPS or cloud that you choose. A multi-tenant SaaS offering is planned. This page assumes the single-tenant setup.

Slack ──(Socket Mode: outbound only)──> Bot ──┐
├── PostgreSQL (inside the dedicated environment, not exposed)
Browser ──(HTTPS)──> Web (Next.js) ────────────┘
│
├──> LLM API (optional, only when configured)
├──> Google Workspace Admin SDK (optional, only when connected)
└──> AWS IAM Identity Center (optional, only when connected)

Category Content Storage Retention
Organization and users Display name, email, manager relationship, role, display language, Slack ID when connected, external IdP ID PostgreSQL While the service is in use
Requests and approvals Request content (form values), execution plan, approval steps and approvers, approval times PostgreSQL While the service is in use (deletion is your decision)
Stamps (L0) Text, author, channel, and permalink of Slack messages that received the approval reaction PostgreSQL Same as above
Declarations (L1) Declaration text, manager, deadline, veto reason PostgreSQL Same as above
Issued-resource ledger Identifiers of issued resources (for example, an email address or a permission set ARN), owner, cost, expiry, revocation records, execution evidence PostgreSQL Same as above
Audit log Events for every operation (append-only) PostgreSQL Same as above. Cannot be deleted or updated
Sessions An opaque ID in the cookie. User, expiry, revocation, and connection details in the database Browser and PostgreSQL Absolute limit 14 days by default, idle limit 8 hours by default
AI usage Daily counts only, per user PostgreSQL Same as above
  • Text sent to the AI: The text a user types into the LLM assistance (the free-text “what do you want to do” box at the start of a request) is not saved in logs or in the database. Only the count is recorded
  • Slack messages in general: Only messages that received the approval reaction are recorded. The product does not subscribe to or store whole channels
  • User passwords: Users sign in with an email link or an IdP. The product has no passwords of its own
  • Credentials of provisioned Google or AWS accounts: Initial passwords and similar values created with an account are not stored. Only the identifiers from the execution result go into the ledger

Item Details
Web sign-in Email link, Slack OIDC, and configured external OIDC or SAML 2.0 connections. OIDC checks state, nonce, signature, issuer, audience, and expiry. SAML checks the assertion signature, issuer, audience, Destination, Recipient, expiry, and replay
User registration Checks the organization’s invitations, email domains, and connection settings. External IDs are bound to the organization, and the first link of an external ID to an administrator requires that person to sign in
Administrator rights Product owners and admins manage roles. Administrators who do not use Slack can also be registered. The last owner cannot be demoted
Organization isolation Data access is bound to the organization ID, and tests cover access from another organization. Separate databases and keys per tenant are not implemented
Approver validity Approvers, approval groups, and active delegations for each step are checked against user IDs inside the product
Sessions Cookies are HttpOnly, SameSite=Lax, and Secure in production. Absolute limit 14 days by default, idle limit 8 hours by default. The ID rotates every 24 hours on state-changing operations
CSRF State-changing APIs require an exact match of the Origin header
Rate limits 20 per 10 minutes for authentication, 120 per minute for everything else. IP addresses and sessions are counted separately

4. Guarantee that approval matches execution (a control specific to this product)

Section titled “4. Guarantee that approval matches execution (a control specific to this product)”

The product guarantees cryptographically that the execution plan an approver saw is the plan that runs.

  1. When a request is created, the execution plan is fixed as canonical JSON and its SHA-256 hash is stored
  2. Each approval step records the plan hash at the time of approval
  3. At execution, if the hash of every approval step does not match the hash of the current plan, execution is refused and the audit log records plan.hash_mismatch
  4. Automatic revocation at expiry (removing access) goes through the same match check. If the hashes do not match, nothing runs automatically and the work becomes a runbook task for the person in charge

AI assistance is used only for catalog drafts and for suggestions at the start of a request. No path exists for it to change the content of an approved plan.


  • Append-only: The application only runs INSERT on the audit table. The code has no UPDATE or DELETE path
  • Coverage: Request creation and cancellation, approval and rejection, plan creation, hash mismatch, execution start, success, failure, and fallback, manual completion, creation, revocation, and expiry revocation of issued resources, catalog changes, member and approval group changes, creation, confirmation, and veto of declarations, recording and promotion of stamps, and display language changes
  • Export: Administrators can download a CSV from the Web for a date range (up to 366 days and 100,000 rows). The CSV is protected against formula injection, and the response is sent with no-store
  • Personal data: The audit payload holds related IDs and summaries only. Email addresses and similar values appear only when they are resource identifiers

6. Communication with external services (subprocessors)

Section titled “6. Communication with external services (subprocessors)”
Destination Required Data sent Purpose
Slack Optional Message posts, modal views, user information lookups An extra channel for notifications and actions. The bot connects outbound with Socket Mode
Email delivery Required for the Web and email setup Recipient, sign-in link, notification text Sign-in, and notifications about requests and approvals. Uses the delivery service set at deployment, such as SMTP
External IdP Optional OIDC or SAML authentication requests and connection tests Sign-in with the IdP configured for the organization
LLM API (Anthropic, AWS, OpenAI-compatible) Optional The user’s free text plus the catalog list (titles, descriptions, field names) Suggestions at the start of a request and catalog drafts. On failure, when not configured, or at the usage limit, keyword suggestions are used and drafts are unavailable
Google Workspace Admin SDK Optional Name and email of the account to create Automatic creation of Google accounts
AWS IAM Identity Center Optional Target user, account ID, permission set Automatic granting of access and revocation at expiry
Microsoft Graph Optional Identifiers of users, groups, and licenses Creating users in Entra ID and changing their access and licenses
  • Data is sent to an LLM only when a provider is configured. The AWS route uses IAM credentials, so some setups need no API key
  • The product does not store the text sent to the LLM (§2). Retention on the vendor side follows the vendor’s terms
  • If data must stay in Japan, you can choose Claude on AWS (ap-northeast-1). Details are in docs/development/LLM-PROVIDERS.md

Credential Storage Least privilege
Slack Bot Token / App Token Environment variables (the .env in your environment, not in the repository) Required scopes only (posting messages, reading reactions, user information, commands)
Google service account key Environment variables Domain-wide delegation limited to the admin.directory.user scope. A dedicated account is recommended as the delegated administrator
AWS credentials Environment variables (IAM roles or temporary credentials recommended) The minimum IAM policy is defined in docs/development/AWS-IDENTITY-CENTER.md (limited to CreateAccountAssignment, DeleteAccountAssignment, ListUsers, and similar)
LLM API key Environment variables A daily usage limit can be set in the product
Session encryption key Environment variables A random value of at least 32 bytes

Client secrets of OIDC connections registered by customers are stored in the database with envelope encryption bound to the organization and the connection. The deployment manages the encryption key. Deployment-side secrets for Google and Microsoft, and credentials for cloud connections, use environment variables or the secret management of the deployment platform. Multi-tenant hosting and separate keys per organization are not implemented.


  • In transit: TLS between the browser and the Web app ends at your reverse proxy. All traffic to Slack, Google, AWS, and LLM providers uses HTTPS. The bot talks to Slack over WebSocket over TLS
  • At rest: PostgreSQL is exposed only on the internal Docker network and opens no port outside the host. Disk encryption uses the features of your hosting platform (VPS, EBS, and so on)
  • Backups: A daily pg_dump (custom format) with the latest 7 generations kept. Backups are stored on a volume inside your environment. They are not sent outside (if you need that, encrypt and transfer them on your side)

Item Details
Components Docker Compose (PostgreSQL, migrations, Bot, Web, backup). The bot and the Web app run as non-root users
Health checks The bot exposes /healthz, and the Compose restart policy recovers it automatically
Resident jobs None. Expiry handling is evaluated idempotently on events and page views, so there is no job scheduler that can fail
Schema changes Versioned migrations are applied at startup (idempotent through schema_migrations)
Dependency vulnerabilities CI runs npm audit, and the build fails if there is even one finding of High or above
Recovery The procedure for restoring from a backup is in docs/operations/OPERATIONS.md

  • When you stop using the service: Because the setup is single tenant, deleting your environment removes all data. Before that, all data can be returned as a pg_dump
  • Deleting individual records: The audit log is append-only, so deleting individual records is not a product feature. If deletion is legally required, you can do it with database administrator rights (a procedure is provided case by case)
  • Slack messages: If the original message is deleted in Slack, the stamp record already captured is kept for audit

11. Short answers for security questionnaires

Section titled “11. Short answers for security questionnaires”
Question Answer
Where is data stored? In the environment you choose (a VPS in Japan, the AWS Tokyo region, and so on)
Is it multi-tenant? No (for now). It is a dedicated environment for your company
How do users authenticate? Email link, Slack OIDC, and configured external OIDC or SAML 2.0 connections. No product passwords
Multi-factor authentication? Follows the settings of the connected IdP. Email links do not use the IdP’s MFA
How are administrator rights granted? Product owners and admins manage roles. The last owner cannot be demoted
How is tampering with the audit log prevented? It is append-only. The application has no update or delete path
Encryption in transit? TLS on every route
Encryption at rest? Relies on the disk encryption of the hosting platform
Backups? Daily, 7 generations, inside your environment
Personal data sent outside? To email recipients and to the external services you connect. Data goes to Slack, Google, AWS, LLM providers, and IdPs depending on the configuration
Data sent to AI? Optional feature. Only free-text input and catalog definitions are sent. The product does not store the text
Vulnerability assessment? Not done yet (planned: a third-party assessment before the first commercial contract)
SOC 2 / ISMS? Not certified (planned: decide whether to start when we reach 5 paying customers)
Breach notification? Your contact is notified within 72 hours of detection (stated in the contract)
Source code review? Repository access can be arranged under an individual NDA

12. Planned work (control improvements on the roadmap)

Section titled “12. Planned work (control improvements on the roadmap)”
Item Trigger
Multi-tenant hosting and encrypted storage of credentials per organization 2 companies willing to pay
Microsoft Entra ID connector Implemented. Needs connection settings and checks in a real environment
Third-party vulnerability assessment Before the first commercial contract
Forwarding the audit log to an external SIEM (Datadog, Splunk, and so on) A request from 1 customer
SAML 2.0 connections Implemented. An administrator activates a connection after a connection test. Domain verification, JIT, SSO enforcement, and user consolidation are also implemented

Questions about this page: Flying Village, Inc.

13. Access restrictions for the organization

Section titled “13. Access restrictions for the organization”

Administrators can set an IP allowlist (IPv4 / IPv6 CIDR) and email domains at /ws/settings/security. An empty value or null means no restriction. The IP restriction applies to authenticated APIs, CSV downloads of audit, ledger, members, and reports, attachment downloads, the portal, and the workspace. An IP setting that does not include the current client address is rejected on save as would_lock_out (400).

X-Forwarded-For is used for IP authorization only when the operator configures trusted proxies.

  • TRUSTED_PROXY_CIDRS: Comma-separated proxy CIDRs. Trusted hops are removed from the right, and the first untrusted IP is used. If every hop is trusted, the leftmost IP is used.
  • TRUSTED_PROXY_HOPS: A positive integer n. The n-th IP from the right is used. If CIDRs are also set, the CIDR setting wins.
  • If neither is set, or if a setting or IP is invalid or there are too few hops, the address cannot be derived. With an IP restriction in place, the response is 403. x-real-ip is never used for authorization.

Make sure your reverse proxy overwrites XFF or appends the verified client address at the end, and block direct access to Next.js at the network level. If you use HOPS, keep the number of hops fixed on every route. The settings alone cannot authenticate the proxy itself. The audit event admin.ip_denied records the claimed IP and the derived IP separately. The IP in the existing sign-in history is the claimed value.

Email domains match exactly, ignoring case, and do not include subdomains or wildcards. An invitation list that mixes allowed and disallowed domains is rejected as a whole, and no magic-link token is issued for a disallowed domain. A successful response from the sign-in start does not reveal whether the user is registered or whether the domain is allowed, and the existing rate limits still apply. Settings updates and changes to roles and delegations add audit records under admin.*.

The last two columns of the audit CSV are prev_sha256 and sha256. The canonical form of a row is JSON.stringify of the first 7 columns (id, event, entity, actor, slack_user_id, payload, created_at), kept as the array of strings produced by CSV decoding. This includes the leading apostrophe added to neutralize formulas, and payload is not parsed again. Compute sha256(prev_sha256 + "\n" + canonical) over UTF-8. The first prev_sha256 is an empty string. Run npm run verify:audit -- <file> to verify. On success it prints OK: N rows. On a mismatch it prints the row number (header = 1, a multi-line cell counts as one record) and the reason, then exits with 1. This is a hash chain without a key. It detects accidental changes and edits or deletions of rows in the middle, but it does not detect a recomputed chain or a truncated end, and it does not verify who issued the file. Keep the downloaded file, the final hash, and the row count in a separate trusted place.

Attachments are saved to the configured storage. Downloads require permission to view the request, and no virus scan is performed.

Requiring SSO and the emergency access path

Section titled “Requiring SSO and the emergency access path”

Administrators verify a domain with a DNS TXT record and set first-login provisioning (JIT) per connection. JIT is off by default, and the role it creates is always member. Email-first routing and JIT use verified domains only. Requiring SSO needs an active connection and an SSO sign-in by the administrator.

When SSO is required, email and Slack sign-in stop, and only the owner’s email sign-in remains as an emergency access path. Use of the emergency path and normal sign-ins are added to the audit log. To deactivate the last active connection, turn off the SSO requirement first. Existing sessions are kept.

User consolidation and approver identity checks

Section titled “User consolidation and approver identity checks”

Only owners can consolidate users when an admin role is involved. Email, external IDs, and Slack IDs become ways into the target account, so check the source, the target, and the role after consolidation. Requesters cannot approve their own requests, and deactivated users cannot approve. Self-approval is also rejected when consolidation makes the requester and the approver the same person.

While SSO is required, the last usable SSO sign-in method cannot be removed. The owner’s email stays as the emergency access path. DNS domain operations and the reasons for refused sign-ins are recorded in the audit log without secret values.