Hawaiideveloper / Infastructure-as-Code-Sample_Env

Take your infrastructure mobile and restore on bare metal, or into your favorite borrowed hardware aka cloud
1 stars 3 forks source link

Security plan needed for authentication within Kubernetes #40

Closed Hawaiideveloper closed 3 years ago

Hawaiideveloper commented 3 years ago

Values must be base64 encoded

$ echo -n '<insert_desired_username_here>' | base64 $ echo -n '<insert_desired_password_here>' | base64

Fig 1: depicts secret file

Screen Shot 2021-07-08 at 1 18 43 PM

Example:

Fig 2: depicts the echo statement to assist in showing the conversion to base 64

Screen Shot 2021-07-08 at 1 24 22 PM

Hawaiideveloper commented 3 years ago

@ervinj1998 @battosai-slayer864 we will later need to make this automated so that it can be changed randomly

Hawaiideveloper commented 3 years ago

p.s.

Don't forget to apply your secrets with:

$ kubectl apply -f mongo-secret.yaml

Screen Shot 2021-07-08 at 1 47 31 PM
Hawaiideveloper commented 3 years ago

To validate your secret please see the following illustration below:

Screen Shot 2021-07-08 at 1 56 52 PM
Hawaiideveloper commented 3 years ago

Screen Shot 2021-07-08 at 2 05 18 PM