Package Details: azure-kubelogin 0.1.3-1

Git Clone URL: https://aur.archlinux.org/azure-kubelogin.git (read-only, click to copy)
Package Base: azure-kubelogin
Description: A Kubernetes credential (exec) plugin implementing azure authentication
Upstream URL: https://github.com/Azure/kubelogin
Licenses: MIT
Conflicts: kubelogin
Submitter: cznk
Maintainer: carsme
Last Packager: carsme
Votes: 5
Popularity: 0.32
First Submitted: 2021-05-11 21:11 (UTC)
Last Updated: 2024-04-23 06:38 (UTC)

Dependencies (3)

Required by (1)

Sources (1)

Pinned Comments

carsme commented on 2023-12-29 11:56 (UTC) (edited on 2023-12-29 14:59 (UTC) by carsme)

NOTE: If building the package fails due to missing PGP keys, like this:

$ makepkg
==> Making package: azure-kubelogin 0.1.0-1 (Fri 29 Dec 2023 12:53:49 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning azure-kubelogin git repo...
Cloning into bare repository '/home/carsme/repos/aur.archlinux.org/azure-kubelogin/azure-kubelogin'...
remote: Enumerating objects: 3068, done.
remote: Counting objects: 100% (864/864), done.
remote: Compressing objects: 100% (316/316), done.
remote: Total 3068 (delta 674), reused 689 (delta 547), pack-reused 2204
Receiving objects: 100% (3068/3068), 2.10 MiB | 9.89 MiB/s, done.
Resolving deltas: 100% (1989/1989), done.
==> Validating source files with sha256sums...
    azure-kubelogin ... Skipped
==> Verifying source file signatures with gpg...
    azure-kubelogin git repo ... FAILED (unknown public key 4AEE18F83AFDEB23)
==> ERROR: One or more PGP signatures could not be verified!

you need to fetch the required PGP key:

$ gpg --keyserver keyserver.ubuntu.com --recv-keys 4AEE18F83AFDEB23
gpg: key 4AEE18F83AFDEB23: 1 duplicate signature removed
gpg: key 4AEE18F83AFDEB23: public key "GitHub (web-flow commit signing) <noreply@github.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1

Latest Comments

1 2 Next › Last »

pschyma commented on 2024-04-22 07:30 (UTC)

@carsme:

Thanks for checking. I tried clearing the cache for both aur managers.

Then this is maybe pacman/ libalpm related as I'm on manjaro that still uses pacman 6.0.1.

carsme commented on 2024-04-22 07:07 (UTC)

@pschyma I cannot reproduce this, the shasum is valid for me. Can you try cleaning your build directory and trying again, probably rm -r ~/.cache/yay or something like that.

pschyma commented on 2024-04-22 06:01 (UTC)

The recent update doesn't build with yay or paru. It seems like the sha validation doesn't work as expected.

yay output:

==> Making package: azure-kubelogin 0.1.2-1 (Mo 22 Apr 2024 07:47:15 CEST)
==> Retrieving sources...
  -> Cloning azure-kubelogin git repo...
Cloning into bare repository '[HOME]/.cache/yay/azure-kubelogin/azure-kubelogin'...
remote: Enumerating objects: 3551, done.
remote: Counting objects: 100% (1347/1347), done.
remote: Compressing objects: 100% (559/559), done.
remote: Total 3551 (delta 967), reused 1075 (delta 782), pack-reused 2204
Receiving objects: 100% (3551/3551), 2.34 MiB | 4.53 MiB/s, done.
Resolving deltas: 100% (2282/2282), done.
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    azure-kubelogin ... NOT FOUND
==> ERROR: One or more files did not pass the validity check!
 -> error downloading sources: [HOME]/.cache/yay/azure-kubelogin 
    context: exit status 1 


:: (1/1) Parsing SRCINFO: azure-kubelogin
pub   rsa4096 2024-01-16 [SC]
      968479A1AFF927E37D1A566BB5690EEEBB952194
uid           [ unknown] GitHub <noreply@github.com>

==> Making package: azure-kubelogin 0.1.2-1 (Mo 22 Apr 2024 07:47:17 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating azure-kubelogin git repo...
==> Validating source files with sha256sums...
    azure-kubelogin ... NOT FOUND
==> ERROR: One or more files did not pass the validity check!
 -> error making: azure-kubelogin-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
azure-kubelogin - exit status 1

paru output:

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
 nothing new to review
fetching devel info...
==> Making package: azure-kubelogin 0.1.2-1 (Mo 22 Apr 2024 07:59:03 CEST)
==> Retrieving sources...
  -> Updating azure-kubelogin git repo...
==> Validating source files with sha256sums...
    azure-kubelogin ... NOT FOUND
==> ERROR: One or more files did not pass the validity check!
error: failed to download sources for 'azure-kubelogin-0.1.2-1': 
error: packages failed to build: azure-kubelogin-0.1.2-1

mattelacchiato commented on 2024-03-11 18:10 (UTC)

Works like a charm now, thank you!

carsme commented on 2024-03-09 16:18 (UTC)

@travisghansen @tongpu @mattelacchiato I've pushed a new pkgver where the problematic tests are ignored. Let me know if you still experience issues, thanks.

travisghansen commented on 2024-03-07 15:13 (UTC)

I get the same SIGSEGV, anything we can provide to get that corrected?

tongpu commented on 2024-02-29 07:57 (UTC)

@carsme @mattelacchiato Replacing go test ./... with go test in check() fixed the issue for me.

carsme commented on 2024-02-27 07:59 (UTC)

@mattelacchiato I'm afraid I can't replicate the failure, can you try building in a chroot and see if it fails there as well? Or try to investigate what it is in your environment that is the cause? Thanks.

mattelacchiato commented on 2024-02-26 09:23 (UTC)

Current update 0.1.0-2 -> 0.1.1-1 currently fails on my machine: (removed local username with <LOCAL_USERNAME>

==> Starting check()...
ok      github.com/Azure/kubelogin      (cached)
?       github.com/Azure/kubelogin/pkg/cmd      [no test files]
?       github.com/Azure/kubelogin/pkg/internal/env     [no test files]
ok      github.com/Azure/kubelogin/pkg/internal/converter       (cached)
?       github.com/Azure/kubelogin/pkg/internal/token/mock_token        [no test files]
--- FAIL: TestAcquirePoPTokenByUsernamePassword (0.37s)
    --- FAIL: TestAcquirePoPTokenByUsernamePassword/AcquirePoPTokenByUsernamePasswordVCR (0.15s)
        msal_public_test.go:133: expected no error, but got: failed to create PoP token with username/password flow: problem getting user realm from authority: server response error:
             Get "https://login.microsoftonline.com/common/UserRealm/<LOCAL_USERNAME>?api-version=1.0": requested interaction not found
FAIL
FAIL    github.com/Azure/kubelogin/pkg/internal/pop     2.087s
ok      github.com/Azure/kubelogin/pkg/internal/testutils       (cached)
--- FAIL: TestROPCPoPTokenVCR (0.46s)
    --- FAIL: TestROPCPoPTokenVCR/ROPCPoPTokenFromUsernamePasswordVCR (0.24s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x555f15498ddc]

goroutine 74 [running]:
testing.tRunner.func1.2({0x555f1564f360, 0x555f15b76e30})
        testing/testing.go:1631 +0x24a
testing.tRunner.func1()
        testing/testing.go:1634 +0x377
panic({0x555f1564f360?, 0x555f15b76e30?})
        runtime/panic.go:770 +0x132
github.com/Azure/kubelogin/pkg/internal/token.TestROPCPoPTokenVCR.func1(0xc00025e000)
        github.com/Azure/kubelogin/pkg/internal/token/ropc_test.go:215 +0x6dc
testing.tRunner(0xc00025e000, 0xc00029c040)
        testing/testing.go:1689 +0xfb
created by testing.(*T).Run in goroutine 119
        testing/testing.go:1742 +0x390
FAIL    github.com/Azure/kubelogin/pkg/internal/token   0.466s
ok      github.com/Azure/kubelogin/pkg/token    (cached)
FAIL

daolis commented on 2024-02-14 08:54 (UTC) (edited on 2024-02-14 08:55 (UTC) by daolis)

Now the key is expired 🙃

pub   rsa2048 2017-08-16 [SC] [expired: 2024-01-16]
      5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23