Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
558a3afa
Verified
Commit
558a3afa
authored
5 months ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Updated image
Signed-off-by:
Martin Weise
<
martin.weise@tuwien.ac.at
>
parent
40d2baab
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!374
Bumped version of DBRepo
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.docs/concepts/data-visibility.md
+17
-14
17 additions, 14 deletions
.docs/concepts/data-visibility.md
.gitlab/agents/dev/values.yaml
+1
-1
1 addition, 1 deletion
.gitlab/agents/dev/values.yaml
dbrepo-auth-service/init/app.py
+1
-1
1 addition, 1 deletion
dbrepo-auth-service/init/app.py
with
19 additions
and
16 deletions
.docs/concepts/data-visibility.md
+
17
−
14
View file @
558a3afa
...
@@ -11,34 +11,37 @@ subset of a database.
...
@@ -11,34 +11,37 @@ subset of a database.
In total there are four possible visibility settings that can be applied on database level and then at the subsequent
In total there are four possible visibility settings that can be applied on database level and then at the subsequent
levels (table, view, subset). We give two examples for better understanding:
levels (table, view, subset). We give two examples for better understanding:
!!! example "
*
Example
*
: Database that is hidden but certain views
and subsets
are visible"
!!! example "Example: Database that is hidden but certain views are visible"
Database Airquality has the settings to hide all data and schema by default.
Database
*
Airquality
*
has the settings to hide all data and schema by default.
* Table `sensor_measurements`
* Table `sensor` inherits the settings from the database by default and therefore is also **hidden**. Nobody can
read/write to this database by default. Only designated users that the database owner allows to read/write can do
so.
* View `v_sensor` inherits the settings from the database by default and therefore is also **hidden**. The database
owner wants the data to be visible to the public (anonymously), so he changes the settings to data=visible,
schema=hidden. Now everybody can see the data but not the table(s) that contain the data.
#### Visible
#### Visible
!!! info "Possible use-case: data publication supplement to an open-access publication"
!!! info "Possible use-case: data publication supplement to an open-access publication"
Where the database's data and metadata is set to be
*visible*
. This means everything in the database (tables, views,
Where the resource's data and schema is set to be visible.
subsets) are visible by anyone from the public.
#### Data-only
#### Data-only
!!! info "Possible use-case: private sensor measurements with timed embargo"
!!! info "Possible use-case: private sensor measurements with timed embargo"
Where the database's data set to be
*hidden*
but the schema to be
*visible*
. This means everything in the database
Where the resource's schema visibility is hidden but the data is visible.
(tables, views, subsets) are by default not visible by anyone from the public. You can however make specific views that
join tables and/or filter certain columns and apply a 14-day delay-embargo.
<figure
markdown
>

<figcaption>
Figure 1: Public view that joins two private tables and applies a time-embargo
</figcaption>
</figure>
#### Schema-only
#### Schema-only
!!! info "Possible use-case: publish data for reviewers before the final publication"
Where the resource's data visibility is hidden but the schema is visible.
#### Draft
#### Draft
!!! info "Possible use-case: project data storage before publication"
!!! info "Possible use-case: project data storage before publication"
Where the resource's data and schema visibility is hidden. It will not be findable even in the search.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.gitlab/agents/dev/values.yaml
+
1
−
1
View file @
558a3afa
...
@@ -28,7 +28,7 @@ authservice:
...
@@ -28,7 +28,7 @@ authservice:
secret
:
MUwRc7yfXSJwX8AdRMWaQC3Nep1VjwgG
secret
:
MUwRc7yfXSJwX8AdRMWaQC3Nep1VjwgG
setupJob
:
setupJob
:
image
:
image
:
name
:
registry.datalab.tuwien.ac.at/dbrepo/auth-service-init:1.6.3rc
0
name
:
registry.datalab.tuwien.ac.at/dbrepo/auth-service-init:1.6.3rc
1
persistence
:
persistence
:
enabled
:
true
enabled
:
true
...
...
This diff is collapsed.
Click to expand it.
dbrepo-auth-service/init/app.py
+
1
−
1
View file @
558a3afa
...
@@ -46,7 +46,7 @@ def save(user_id: str) -> None:
...
@@ -46,7 +46,7 @@ def save(user_id: str) -> None:
database
=
os
.
getenv
(
'
METADATA_DB
'
,
'
dbrepo
'
))
database
=
os
.
getenv
(
'
METADATA_DB
'
,
'
dbrepo
'
))
cursor
=
conn
.
cursor
()
cursor
=
conn
.
cursor
()
cursor
.
execute
(
cursor
.
execute
(
"
INSERT IGNORE INTO `mdb_users` (`id`, `username`,
`email`,
`mariadb_password`, `is_internal`) VALUES (?, ?,
LEFT(UUID(), 20),
PASSWORD(LEFT(UUID(), 20)), true)
"
,
"
INSERT IGNORE INTO `mdb_users` (`id`, `username`, `mariadb_password`, `is_internal`) VALUES (?, ?, PASSWORD(LEFT(UUID(), 20)), true)
"
,
(
user_id
,
system_username
))
(
user_id
,
system_username
))
conn
.
commit
()
conn
.
commit
()
conn
.
close
()
conn
.
close
()
...
...
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