Skip to content

feat: add credentials commands for opensearch, valkey, and kafka#667

Open
jhrv wants to merge 1 commit intomainfrom
aiven_credentials
Open

feat: add credentials commands for opensearch, valkey, and kafka#667
jhrv wants to merge 1 commit intomainfrom
aiven_credentials

Conversation

@jhrv
Copy link
Contributor

@jhrv jhrv commented Mar 13, 2026

Summary

Adds new credentials subcommands that create temporary Aiven service credentials via the nais-api GraphQL API, replacing the broken nais aiven flow that depended on direct Kubernetes secret access.

New commands

  • nais alpha opensearch credentials <name> --environment --permission --ttl
  • nais alpha valkey credentials <name> --environment --permission --ttl
  • nais kafka credentials --environment --ttl [--output env|kcat|java]

OpenSearch and Valkey print env vars to stdout. Kafka supports three output formats: env (stdout), kcat (config files), and java (PEM-based properties file).

Deprecations

All leaf commands under nais aiven are deprecated with pointers to the new commands where applicable.

Depends on

Add new 'credentials' subcommands that create temporary Aiven service
credentials via the nais-api GraphQL API, replacing the broken 'nais aiven'
flow that depended on direct K8s secret access.

New commands:
- nais alpha opensearch credentials <name> --environment --permission --ttl
- nais alpha valkey credentials <name> --environment --permission --ttl
- nais kafka credentials --environment --ttl [--output env|kcat|java]

Deprecate all leaf commands under 'nais aiven' with appropriate replacements.
@github-actions
Copy link
Contributor

📝 Changelog preview

Below is a preview of the Changelog that will be added to the next release. Only commit messages that follow the Conventional Commits specification will be included in the Changelog.

v5.14.0 - 2026-03-13

Full Changelog: v5.13.0...v5.14.0

🚀 Features

  • Add credentials commands for opensearch, valkey, and kafka (6565d18)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant