-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: support for specifying optional authorization token for HTTP…
… requests (#247) * feature: support for specifying bearer token for HTTP requests * remove injection of "Bearer" string to token * rename `ACCESS_TOKEN` to `AUTHORIZATION_HEADER` * apprepository-controller: read authorization secretref from Spec example: ```yaml apiVersion: kubeapps.com/v1alpha1 kind: AppRepository metadata: annotations: {} labels: created-by: kubeapps name: stable name: stable namespace: kubeapps spec: type: helm url: https://kubernetes-charts.storage.googleapis.com auth: secretKeyRef: name: stable-repo-secret key: authorization-header ``` * chart-repo: adds test for authenticated HTTP client * add-repo: validate required fields * dashboard: adds inputbox to specify the authorization header while adding a app repository * AccessToken -> AuthorizationHeader * chart-repo: adds `fetchAndImportFiles` test for authenticated access * dashboard: add namespace arg to `Secrets` api * type: define a type for the auth field * dashboard: add ownerReference to AppRepository while creating secret * move `auth` to `auth.header` * manifests: adds `POD_NAMESPACE` env variable to helm-crd controller pod * don't use a pointer type for `AppRepositorySpec.Auth` * address review comments * Secret: use IOwnerReference for owner param of create
- Loading branch information
Sameer Naik
authored
Apr 20, 2018
1 parent
e3a1b88
commit 626bb52
Showing
15 changed files
with
308 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.