You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docker version ( Full output from: docker version ):
Client: Docker Engine - Community
Version: 24.0.5
API version: 1.43
Go version: go1.20.6
Git commit: ced0996
Built: Fri Jul 21 20:35:18 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:07:41 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.24
GitCommit: 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523
runc:
Version: 1.1.9
GitCommit: v1.1.9-0-gccaecfc
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Are you using Docker Swarm (FaaS-swarm ) or Kubernetes (FaaS-netes)?
faas-netes
Operating System and version (e.g. Linux, Windows, MacOS):
Ubuntu Linux
Link to your project or a code example to reproduce issue:
The text was updated successfully, but these errors were encountered:
welteki
changed the title
Namespace list command fails with 401 status code
Namespace list command fails with 401 status code on OpenFaaS Enterprise cluster with IAM enabled.
Nov 24, 2023
Expected Behaviour
Expect the command
faas-cli namespace list
to show a list of namespaces the user is authorized for.Current Behaviour
Running the command
faas-cli namespace list
fails with message:Check authorization, status code: 401
Why do you need this?
The faas-cli should be able to list namespaces on OpenFaaS clusters using IAM.
Who is this for?
What company is this for? Are you listed in the ADOPTERS.md file?
Are you a GitHub Sponsor (Yes/No?)
Check at: https://github.com/sponsors/openfaas
List All Possible Solutions and Workarounds
Looks like the issue was introduced with the addition of the namespace sub-command.
This is either an issue with the OpenFaaS go-sdk and the way it handles authentication or this is an issue with how the SDK is used in the CLI.
Reverting to CLI version 0.16.14 and using the now deprecated
faas-cli namespaces
command does work as expected.Which Solution Do You Recommend?
Steps to Reproduce (for bugs)
faas-cli namespace list
Context
Ran into the issue after upgrading to the latest version of the faas-cli.
Discovered the issue on an OpenFaaS Enterprise cluster with IAM enabled.
Your Environment
faas-cli version
):docker version
):The text was updated successfully, but these errors were encountered: