SUSE / container-suseconnect

Provides access to repositories inside containers using the host entitlements
Apache License 2.0
19 stars 16 forks source link

Add system token header to query SCC subscriptions (bsc#1219855) #88

Closed dirkmueller closed 4 months ago

dirkmueller commented 4 months ago

when a system was cloned, SCC falls back to the first system ever registered for determining subscriptions. passing in the system token should help with that.

digitaltom commented 4 months ago

Sorry, I'm a bit late in the game here, but it's important that when authenticating including the system token, to also write back the new token of the response to the credentials file. Else the next API request will use an outdated token and trigger a system duplication on the server.

dcermak commented 4 months ago

Sorry, I'm a bit late in the game here, but it's important that when authenticating including the system token, to also write back the new token of the response to the credentials file. Else the next API request will use an outdated token and trigger a system duplication on the server.

That's not possible from container-suseconnect, as it cannot write to the host's credentials file.

@dirkmueller shall we revert this then?

dirkmueller commented 4 months ago

@dirkmueller shall we revert this then?

No, the change is needed. we're going to change SCC instead.