Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker-autobuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker automatic build and publish when changes in container dir
on:
push:
branches:
- main
- change_rucio_attributes

env:
REGISTRY: ghcr.io
Expand Down
9 changes: 4 additions & 5 deletions containers/iam-rucio-sync/sync_iam_rucio.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def sync_accounts(self, iam_users):

if not account.account_exists(InternalAccount(username)):
account.add_account(InternalAccount(username),
AccountType.SERVICE, email)
AccountType.USER, email)
logging.debug(
'Created account for User {} ***'.format(username))

Expand All @@ -144,10 +144,9 @@ def sync_accounts(self, iam_users):
set_local_account_limit(InternalAccount(username),
rse_obj['id'], 1000000000000)

# Make the user an admin & able to sign URLs
# Make the user able to sign URLs
# Admins are added by hand
try:
add_account_attribute(InternalAccount(username), 'admin',
'True')
add_account_attribute(InternalAccount(username), 'sign-gcs',
'True')
except Exception as e:
Expand Down Expand Up @@ -300,4 +299,4 @@ def make_gridmap_compatible(self, certificate):
logging.info("Synchronising X509 identities")
syncer.sync_x509(iam_users)

logging.info("IAM -> RUCIO synchronization successfully completed.")
logging.info("IAM -> RUCIO synchronization successfully completed.")
Loading