Skip to content

Permssion issues #89

Description

@evoandroidevo

I have been trying to implement this as i really like the idea but when I try to run this as any user other than default i get an error about the permissions on /config but get permission issues with the app im trying to give secrets to if i run it as 65532

locket-auth  | 2026-06-23T08:21:24.671597Z  INFO Starting locket v0.17.3 `run` service 
locket-auth  | 2026-06-23T08:21:24.683462Z ERROR access denied: op login failed: couldn't start daemon: Can't continue. We can't safely access "/tmp/com.agilebits.op.SingleUserEnvironment" because it's not owned by the current user. Change the owner or logged in user and try again.
locket-auth  | [ERROR] 2026/06/23 08:21:24 cannot create directory "/config/op" and the parent directories: mkdir /config/op: permission denied exit_code=77
locket-auth exited with code 77

im not sure if im reading something wrong or have something miss configured

Appreciate the help

  locket:
    image: ghcr.io/bpbradley/locket:op
    user: '1000:1000'
    container_name: locket-auth
    security_opt:
      - no-new-privileges:true
    cap_drop:
      - ALL
    command:
      - '--provider=op'
      - '--mode=one-shot'
      - '--inject-failure-policy=error'
      - '--log-level=info'
      - '--user=1000:1000'
      - '--file-mode=0600'
      - '--dir-mode=0700'
      - '--op-token=file:/run/secrets/op_token'
      - '--secret=encryption_key={{ op://path/encryption_key }}'
    secrets:
      - op_token
    volumes:
      - secrets-store:/run/secrets/locket

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions