1.2 KiB
1.2 KiB
1. Client Authentication
- 1.1 Rename
TokenandHttpOnlyTokenfields to singleAPIKeyfield inClientstruct inclient/client.go - 1.2 Update
NewClientconstructor to accept(baseURL, apiKey string, logger *slog.Logger)— removehttpOnlyTokenparameter - 1.3 Replace
Authorization: Bearerheader withx-api-keyheader inDo()method - 1.4 Remove OIDC cookie logic (
httpOnlyTokencookie attachment) fromDo()method
2. CLI Flags and Environment Variables
- 2.1 Rename
flagTokentoflagAPIKeyandflagHttpTokenremoval incmd/root.go - 2.2 Replace
--tokenflag with--api-keyflag and remove--http-tokenflag incmd/root.go - 2.3 Replace
PLANKA_TOKENenv var lookup withPLANKA_API_KEYinPersistentPreRunE - 2.4 Remove
PLANKA_HTTP_TOKENenv var lookup fromPersistentPreRunE - 2.5 Update error message to reference
PLANKA_API_KEYand--api-key - 2.6 Update
NewClientcall site inPersistentPreRunEto match new constructor signature - 2.7 Remove OIDC-related debug log line (
oidc_modeslog field)
3. Documentation
- 3.1 Update
README.mdauthentication section to referencePLANKA_API_KEYand--api-key