Skip to content

notify_nats rejects MINIO_NOTIFY_NATS_USER_CREDENTIALS (JWT creds file path) #39

Closed

Description

@kuldeep-link11

notify_nats rejects MINIO_NOTIFY_NATS_USER_CREDENTIALS (JWT creds file path) on pgsty/minio:latest

Summary

notify_nats config on pgsty/minio:latest rejects MINIO_NOTIFY_NATS_USER_CREDENTIALS as an invalid key, which blocks JWT creds-file based NATS auth for MinIO event notifications.

This appears to break compatibility with environments using NATS operator/accounts + .creds auth for MinIO publishers.

Why this matters

In NATS JWT deployments, MinIO often authenticates with a user credentials file (not username/password/token). If MINIO_NOTIFY_NATS_USER_CREDENTIALS is rejected, MinIO cannot be configured to publish bucket notifications into secured NATS clusters using creds-file auth.

Environment

  • OS: macOS (Apple Silicon)
  • MinIO image under test: pgsty/minio:latest
  • NATS: 3-node cluster using JWT operator/accounts and user .creds
  • MinIO admin tool: minio/mc:latest

Reproduction (clean)

  1. Start MinIO + NATS with JWT creds mounted into MinIO at /jwt.

  2. Configure notify_nats with a creds file:

mc admin config set us notify_nats:FITCHECK \
  address=nats-1:4222 \
  subject=events.object.created \
  MINIO_NOTIFY_NATS_USER_CREDENTIALS=/jwt/creds/minio_notifier.creds \
  jetstream=off \
  queue_dir=/data/queue-fitcheck \
  queue_limit=100000
  1. Observe the response.

Actual result

The command fails with invalid keys. Exact observed error:

mc: <ERROR> Unable to set 'notify_nats:FITCHECK address=nats-1:4222 subject=events.object.created MINIO_NOTIFY_NATS_USER_CREDENTIALS=/jwt/creds/minio_notifier.creds jetstream=off queue_dir=/data/queue-fitcheck queue_limit=100000' to server: found invalid keys (MINIO_NOTIFY_NATS_USER_CREDENTIALS=/jwt/creds/minio_notifier.creds nkey_seed= tls_handshake_first=off ) for 'notify_nats:ONE' sub-system, use 'mc admin config reset myminio notify_nats:ONE' to fix invalid keys.

Also, mc admin config get us notify_nats shows keyspace without credentials-file support (username/password/token only), confirming parser/help mismatch for JWT creds-file auth.

Expected result

notify_nats should accept and persist creds-file based auth key:

  • MINIO_NOTIFY_NATS_USER_CREDENTIALS

and allow restart-based apply flow:

  1. mc admin config set ...
  2. restart MinIO
  3. mc event add ... arn:minio:sqs::<id>:nats
  4. events publish successfully to NATS using the creds file.

Scope requested

  • Add/restore support for MINIO_NOTIFY_NATS_USER_CREDENTIALS in notify_nats config parsing/validation/help/defaults.
  • Ensure mc admin config set does not reject the key as invalid.
  • Preserve backward compatibility with existing username/password/token modes.

Optional compatibility additions

If intentional in pgsty fork policy, please clarify in docs that creds-file auth is unsupported. Otherwise, enabling this key would restore compatibility with common JWT-based NATS deployments.

Notes

I can provide a small patch/PR for this if maintainers agree with scope.

Activity

  1. added this to Siloand Siloon Aug 4, 2026
  2. Vonng commented on Aug 4, 2026

    @Vonng
    Member

    Fixed in cc78701a1, shipping in the next release.

    user_credentials, nkey_seed and tls_handshake_first are now registered in the NATS default key set and the help schema, so mc admin config set no longer rejects them. AMQP's immediate had the same gap and was registered alongside them.

    The literal MINIO_NOTIFY_NATS_USER_CREDENTIALS= form from your reproduction is also tolerated and read, so a config already migrated into that shape keeps loading. Precedence is environment variable, then user_credentials, then the legacy key.

    A test now asserts that every key a parser reads is present in the registered key set, so this class of drift fails in CI rather than at a user's mc admin config set.

    The separate ask in this thread — applying a new target ID without a restart — stays open as #40.

  3. moved this from Backlog to Done in Siloon Aug 4, 2026
  4. added a commit that references this issue on Aug 4, 2026
    162ded3
  5. added
    bug
    on Sep 15, 2026
  6. self-assigned this
    on Sep 15, 2026
  7. added theissue type on Sep 15, 2026
  8. added this to the 20260806 milestone on Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions