Skip to content
This repository was archived by the owner on Jul 10, 2026. It is now read-only.
This repository was archived by the owner on Jul 10, 2026. It is now read-only.

fn::open::1password-secrets fails with error fetching date secret from 1password with generic error #635

Description

@andymeierdev

Describe the bug

Opening an ESC environment that uses fn::open::1password-secrets fails with:

error: [0]
Diags: error fetching secret from 1password

The same 1Password service account token and op://... secret reference work correctly when tested directly with the 1Password CLI, so the token and reference are valid outside ESC.

Minimal repro

values:
  upstream:
    fn::open::pulumi-stacks:
      stacks:
        identity:
          stack: example-org/example-identity/prod

  secrets:
    fn::open::1password-secrets:
      login:
        serviceAccountToken: ${upstream.identity.serviceAccountTokenOutput}
      get:
        sampleSecret:
          ref: "op://ExampleVault/ExampleItem/dateField"

  environmentVariables:
    SAMPLE_SECRET: ${secrets.sampleSecret}

"op://ExampleVault/ExampleItem/dateField" is a date field

pulumi env open example-project/minimal-repro

Result:

error: [0]
Diags: error fetching secret from 1password

Additional evidence

Outside ESC, using the same service account token:

  • listing accessible vaults succeeds
  • reading the same op://... secret reference succeeds

Generic error related to #637

Environment

  • Pulumi CLI: 3.228.0
  • Host OS: macOS darwin/arm64

Workaround

Change the field type to a string

Metadata

Metadata

Assignees

Labels

kind/taskWork that's part of an ongoing epic

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions