Skip to content

[full-ci] Service Account Roles - #8051

Merged
kobergj merged 2 commits into
owncloud:masterfrom
kobergj:ServiceAccountRoles
Dec 22, 2023
Merged

kobergj merged 2 commits into
owncloud:masterfrom
kobergj:ServiceAccountRoles

Conversation

@kobergj

@kobergj kobergj commented Dec 21, 2023 •

Copy link
Copy Markdown
Contributor

Adds a hidden role for service accounts. This role will give the service account all permissions it needs but will not appear in list roles calls. Also it doesn't need the default role assignments to work.

Fixes: https://github.com/owncloud/enterprise/issues/6286

Also deprecates filesystem settings store

NOTE: This is a breaking change. It removes the (unreleased) SETTINGS_SERVICE_ACCOUNT_ID_ADMIN environment variable without deprecation

@kobergj
kobergj force-pushed the ServiceAccountRoles branch from 1b2c61d to 20f77d4 Compare December 21, 2023 11:41
rhafer
rhafer previously requested changes Dec 21, 2023

@rhafer rhafer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions around the env var changes. LGTM otherwise.

case "metadata":
service.manager = metastore.New(cfg)
case "filesystem":
fmt.Println("WARNING: filesystem store is deprecated and will be removed in the future. Please use metadata store instead.")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Comment thread services/settings/pkg/config/config.go Resolved
@kobergj
kobergj force-pushed the ServiceAccountRoles branch from e397b58 to a607c63 Compare December 21, 2023 16:38
@kobergj
kobergj requested a review from rhafer December 21, 2023 16:38
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
33.3% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@kobergj
kobergj dismissed rhafer’s stale review December 22, 2023 12:11

requested changes implemented

@kobergj
kobergj merged commit 9015ee0 into owncloud:master Dec 22, 2023
@kobergj
kobergj deleted the ServiceAccountRoles branch December 22, 2023 12:11
ownclouders pushed a commit that referenced this pull request Dec 22, 2023
@micbar micbar mentioned this pull request Dec 27, 2023
67 of 71 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants