Skip to content

pop quiz issue #5

Description

@hsinaDitaM

3.5/4

  • Get an issue going on a personal area
  • Record the issue at the end of the class
  • Put the link of the issue in the pop quiz issue
  • Each question should be its own

Describe the server name definition and reverse proxy pass in your reverse proxy file, show the file. (0.85, late)

  • The reverse proxy configuration maps the server_name (example.com) to the proxy_pass (ip), which specifies the backend server to which the requests should be forwarded.
Screenshot 2024-01-31 at 12 24 33 PM

Show JWT signup and/or login process -> split screen (0.55)

  • Make post request to /authenticate with users login info.
  • Then pass the information the jet security that we setup.
  • The security rules will then match the person’s information that is passed in with the person information that is int the database
  • If the username and possword matched then the security will return u as a jwt
  • Respond the /authicate post request with a set cookie header to set the jet token on usert’s browser

Explain security configuration rules that are required for access -> provide quest matcher that shows commit and authentication (0.8)

  • rule 1: check if the post request header had a cookie that contains JWT
  • rule 2: give access if theres a cookie that contains JWT and the JWT is signed by the server and not expired
  • rule 3: if theres no cookie or the JWT is not valid you redirect the user to login so that they can get a new JWT
  • rule 4: cycle repeats
Screenshot 2024-01-31 at 12 25 27 PM

Explain a POJO and changes to a POJO, show pojo in the editor, highlight something changed, show the results of the polo output in postman (0.55)

Describe docker and process for update docker application, show the sequence of commands to do an update to a web server, show the port that the docker uses (0.75)

  • docker is a command line orientated tool that is used to containerize applications
  • the process for update docker application is docker-compose down to remove old running process and git pull to pull the latest code then docker-compose up -d to start a new running instance of the new code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions