Skip to content

Commit

Permalink
upadate Authentication section
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClifford committed Jul 19, 2023
1 parent b7395b4 commit 2fef297
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CodeFlareSDK_Design_Doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ After the job is submitted, a user can monitor its progress via `job.status()`

Since we are dealing with controlling and accessing different resources on a Kubernetes cluster, the user will need to have certain permissions on that cluster granted to them by their cluster administrator.

The SDK itself will not enforce any authentication, however, it will provide simple interfaces to allow users to authenticate themselves to their Kuberentes cluster. All operations that require authentication to the cluster will rely on a properly authenticated kubeconfig file in the users environment.
The SDK itself will not enforce any authentication, however, it will provide simple interfaces to allow users to authenticate themselves to their Kubernetes cluster. By default, if a user is already authenticated with a `~/.kube/config` file, that authentication will automatically be picked up by the SDK and no additional authentication is required.

Users can authorize themselves by calling `TokenAuthentication()` and providing their access token and server address. This will update an existing kubeconfig file if one exists, or generate a new one if one does not exist. Users are also able to toggle whether or not they want to skip tls verification.
Users can authorize themselves by calling `TokenAuthentication()` and providing their access token and server address. This will populate the Kubernetes python configuration of the ApiClient object and allow users to be properly authenticated to the cluster. Users are also able to toggle whether or not they want to skip tls verification.

Alternatively users can provide their own custom kubconfig file with `KubeConfigAuthentication()` and pass it the correct path.
Alternatively users can provide their own custom kubeconfig file with `KubeConfigAuthentication()` and pass it the correct path.

In either case, users can log out of their cluster with `.logout()`
In either case, users can log out and clear the authentication inputs with `.logout()`

## Alternatives Considered

Expand Down

0 comments on commit 2fef297

Please sign in to comment.