Vault S3 Bridge

approvedunreviewed

by akikinyan

Manage attachments on AWS S3, with IAM Identity Center authentication and private previews.

↓ 36 downloadsUpdated 23d agoMIT

Vault S3 Bridge

English | 日本語

Manage Obsidian attachments on AWS S3. Upload files linked from a note, replace their links or copy the generated Markdown, and preview private files inside Obsidian.

Preview release (0.1.3). Settings and behaviour may change between versions. Keep backups of your vault.

Features

  • Authenticate with IAM Identity Center (SSO) temporary credentials.
  • Keep public HTTPS links and authenticated private previews separate.
  • Upload images, PDFs, Office files and other local attachments from a note.
  • Review uploads before sending, resume interrupted uploads, and archive uploaded originals.
  • Prevent recorded private buckets and identical private content from being used for public uploads, within the documented limits.

After you review the attachments in a note, each upload follows one of two paths:

DestinationWhat the note getsHow it is shown
Private S3 storageAn s3-bridge:// referencePreviewed inside Obsidian after authentication
S3 storage for public deliveryA public link through your configured CDN / HTTPS URLOpened or rendered like any other HTTPS link

Requirements

ComponentSupported in this preview
ObsidianDesktop 1.14.4 or later; tested on macOS with Obsidian 1.14.5
StorageAWS S3 general purpose buckets with SSE-S3 or SSE-KMS
AuthenticationIAM Identity Center (SSO) profiles
S3-compatible storageNot supported yet; custom endpoint settings are untested
Other credentialsStatic access keys, role assumption, credential processes and web identity are not supported

See configuration and AWS access for permissions, settings and proxy support.

External services and file access

  • Account and costs: you need access to an AWS account with IAM Identity Center (SSO), a configured SSO profile and permissions for the target S3 bucket. The plugin is free; AWS storage, requests, data transfer and any delivery services you use may incur charges.
  • Network: the plugin contacts AWS S3 to upload and retrieve attachments, STS to check the authenticated identity, and IAM Identity Center / SSO-OIDC to obtain temporary role credentials and refresh SSO tokens. If you configure a custom S3 endpoint, S3 requests go to that endpoint; S3-compatible storage is not supported in this preview. Requests use the configured direct or proxy connection. Public links use your configured CDN / HTTPS delivery service when opened or rendered.
  • Files outside the vault: the AWS SDK reads shared AWS configuration and credentials files (normally ~/.aws/config and ~/.aws/credentials) and the SSO token cache (~/.aws/sso/cache) for authentication. The SDK can update that cache when refreshing an SSO token. AWS configuration file locations can be overridden by AWS_CONFIG_FILE and AWS_SHARED_CREDENTIALS_FILE.
  • Credentials: temporary IAM role credentials are held in memory, not saved in plugin settings. SSO access and refresh tokens can be stored in the AWS SDK's local cache outside the vault. The plugin does not log these secrets.
  • Processes: when using the system proxy on macOS, the plugin runs /usr/sbin/scutil --proxy with fixed arguments and no shell to read the proxy settings.

See privacy, access and protection limits for details, including access to files inside the vault.

Installation and setup

MethodSteps
Community pluginsOpen Settings → Community plugins → Browse, search for Vault S3 Bridge, then install and enable it.
ManualDownload main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/vault-bucket-bridge/, then enable Vault S3 Bridge under Settings → Community plugins.
  1. Sign in with your configured SSO profile.

    aws sso login --profile <profile>
    
  2. Add a storage connection in the plugin settings. Choose public or private, then set the alias, bucket and region.

  3. Select the AWS profile for that connection on this device, and run Test connection to storage.

  4. For public uploads, configure a CDN or other HTTPS delivery URL and set Public base URL. Keep S3 Block Public Access enabled; see publishing public files.

Basic usage

TaskCommand
Review local attachments without uploadingShow what would be uploaded from the current note
Upload attachments and replace links or copy MarkdownUpload attachments in the current note
Reference a file already in private storageInsert reference to a private file
Move eligible uploaded originals to _s3-archiveArchive uploaded originals
Restore archived originalsMove archived files back

Run upload commands with a note open in Live Preview or Source mode. Both embeds and ordinary links are included; notes and Canvas files are excluded. Uploads use the default connection, ask you to choose one, or use the only available connection.

Private references keep the object key in the note without storing a pre-signed URL. Use the insertion command to encode the key correctly.

![System diagram](s3-bridge://work/diagrams/system.png)
![System diagram|300](s3-bridge://work/diagrams/system.png)
[Report](s3-bridge://work/docs/report.pdf)

work is an example private connection alias. Its bucket and endpoint cannot be changed after creation. The AWS profile is selected per device. Private previews require the plugin and an authenticated profile; without the plugin, embedded references appear as broken images.

Documentation

Detailed specifications are in docs/. These documents are in English.

TopicContents
Configuration and AWS accessAuthentication, connection fields, defaults, proxies, public delivery and IAM permissions
Private references and previewsReference syntax, supported preview types and memory limits
Attachment uploadsDetection, exclusions, generated links, keys, conversion and public upload rules
Recovery, sync and archivingPending records, files to sync, archive checks and restoration
Privacy and protection limitsPrivate-content records, concurrency limits, file/network access and credentials
DevelopmentBuild, checks, local smoke tests and source layout

Public uploads remove image metadata, but allowed non-image files are sent unchanged and some require explicit selection. Archiving moves originals inside the vault and does not free disk space. Review the specifications before using these features.

Development

Requires Node.js 22 or later.

npm install
npm run build
npm run lint
npm test

See development documentation for local AWS checks and third-party notices.

License

MIT. The bundle also includes packages under Apache-2.0, MIT and BSD-2-Clause licenses; see THIRD_PARTY_NOTICES.md.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.