Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
session-experimente
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
formation-docker-cnrs
session-experimente
Commits
1733bb89
Commit
1733bb89
authored
1 year ago
by
Mickael Masquelin
Browse files
Options
Downloads
Patches
Plain Diff
fix(security): Updated exercise
parent
00c95592
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+35
-0
35 additions, 0 deletions
README.md
with
35 additions
and
0 deletions
README.md
+
35
−
0
View file @
1733bb89
...
...
@@ -217,6 +217,41 @@ id
uid
=
0
(
root
)
gid
=
0
(
root
)
groups
=
0
(
root
)
,1
(
bin
)
,2
(
daemon
)
,3
(
sys
)
,4
(
adm
)
,6
(
disk
)
,10
(
wheel
)
,11
(
floppy
)
,20
(
dialout
)
,26
(
tape
)
,27
(
video
)
```
### A vous de jouer !
Considérons le fichier
`app.py`
suivant :
```
python
from
flask
import
Flask
app
=
Flask
(
__name__
)
@app.route
(
"
/
"
)
def
hello_world
():
return
"
Hello, World!
"
if
__name__
==
"
__main__
"
:
app
.
run
(
host
=
'
0.0.0.0
'
)
```
Et le fichier
`requirements.txt`
ci-après :
```
blinker
click
Flask
Flask-SQLAlchemy
greenlet
itsdangerous
Jinja2
MarkupSafe
SQLAlchemy
typing_extensions
Werkzeug
```
Proposez un fichier
`Dockerfile`
qui permet d'exécuter votre application en tant qu'utilisateur non root dans votre conteneur.
### Jouons avec les capabilities
#### Avec `cap-drop`
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment