Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[full-ci] Service Account Roles #8051

Merged
merged 2 commits into from Dec 22, 2023
Merged

Conversation

kobergj
Copy link
Collaborator

@kobergj kobergj commented Dec 21, 2023

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

Signed-off-by: jkoberg <jkoberg@owncloud.com>
rhafer
rhafer previously requested changes Dec 21, 2023
Copy link
Contributor

@rhafer rhafer left a comment

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.

@@ -46,6 +46,7 @@ func NewService(cfg *config.Config, logger log.Logger) settings.ServiceHandler {
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
Contributor

Choose a reason for hiding this comment

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

❤️

services/settings/pkg/config/config.go Outdated Show resolved Hide resolved
Signed-off-by: jkoberg <jkoberg@owncloud.com>
Copy link

sonarcloud bot commented Dec 21, 2023

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
4 checks passed
@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
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.

None yet

3 participants