nVarap / CSABlog

A CSA Blog for a CSA Student
MIT License
0 stars 0 forks source link

CSA Pop Quiz Issue - Varaprasad Nibhanupudi #13

Open nVarap opened 9 months ago

nVarap commented 9 months ago

Question 1: 11:27:15 AM

Describe the server name definition and the proxy pass definition in your reverse proxy configuration file

A reverse proxy gets the request from clients and sends it to the server.

Screenshot 2024-01-30 at 11 27 15 AM

Score: 0.9

Question 2: 11:43:57 AM

Show a JWT login process, split the browser screen and show the login that goes to a page that requires authentication and creates a cookie

Screenshot 2024-01-30 at 11 43 57 AM

Score: 0.9

Question 3: 11:47:40 AM

Explain security config rules that are required for access in a spring booth request matcher that shows authenticated() permitAll(). When a claim is made to the server, it goes through this filter chain, and if it has the permitAll() (such as the authenticate), anyone can do it. But if it has the hasRole() or `authenticated() chain, it means that it authenticates.

Screenshot 2024-01-30 at 11 47 40 AM

Score: 0.92

Question 4: 12:06:36 PM

Explain a POJO, changes to a POJO, show a POJO in the VSCode Editor, show what you changed, show pojo result via postman

POJO is a basic java object that has a couple main things: mainly a no-argument constructor, all argument constructors, getter and setter methods along with any business functions. Change below is the boost.

Screenshot 2024-01-30 at 12 06 36 PM

Score: 0.9

Question 5: 12:20:29 PM

Describe docker process for updating a docker application, show the list of commands needed to update a deployment

  1. docker-compose down
  2. git pull
  3. docker-compose up -d --build

optional: ./mvnw clean to clean up base. By doing this, you can eventually pull what you create.

Before

Screenshot 2024-01-30 at 12 18 53 PM

After

Screenshot 2024-01-30 at 12 20 29 PM

Score: 0.9

Totals

0.9+0.9+0.92+0.9 = 3.62