Skip to content

Commit

Permalink
YDA-6125: update SRAM logo parameter
Browse files Browse the repository at this point in the history
Update the SRAM logo parameter to use a BASE64 encoded image rather
than a URL. This is needed because of a breaking change in the SRAM
API: SURFscz/SBS#1604

See https://sram.surf.nl/apidocs/#/Organisation/post_api_collaborations_v1
for information on the current version of the API.
  • Loading branch information
stsnel committed Jan 17, 2025
1 parent 0359969 commit ab35af2
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/administration/configuring-yoda.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ sram_auto_group_sync | Automatic SRAM group sync
sram_verbose_logging | SRAM verbose logging
sram_tls_verify | Enable TLS verification for SRAM API calls. Enabled by default, but disabled on development environments because these use a mock service with a self-signed certificate.
sram_co_default_label | Default label for created COs
sram_co_logo_url | URL to image used as default SRAM CO logo
sram_co_logo | Base64 encoded image used as default SRAM CO logo (by default it has an image of the Yoda logo; see the default value for the exact format)

### EPIC PID Configuration

Expand Down
4 changes: 4 additions & 0 deletions docs/release-notes/release-1.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,7 @@ irule -r irods_rule_engine_plugin-irods_rule_language-instance -F /etc/irods/yod
```bash
irule -r irods_rule_engine_plugin-irods_rule_language-instance -F /etc/irods/yoda-ruleset/tools/update-publications.r
```

19. When upgrading an SRAM-enabled environment to Yoda 1.9.5 or later, please note that the `sram_co_logo_url` parameter (which took a URL)
has been changed to `sram_co_logo` (which takes a BASE64-encoded image). If you have defined a custom logo, you will need to change this
parameter in your configuration.
36 changes: 35 additions & 1 deletion roles/yoda_rulesets/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,41 @@ sram_auto_group_sync: false # Automatic SRAM group sy
sram_verbose_logging: false # SRAM verbose logging
sram_tls_verify: true # Enable TLS verification for SRAM API calls. Enabled by default.
sram_co_default_label: yoda # Default label for created COs
sram_co_logo_url: https://raw.githubusercontent.com/UtrechtUniversity/yoda/development/docs/graphic_mark/png/UU_Beeldmerk_Yoda_FC_DEF.png # URL to image used as default SRAM CO logo
# Base64 encoded logo for Surf COs (default value has the Yoda logo)
sram_co_logo: >
data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH6QERDRQzsfzcsAAABpdJREFUaN7VmnuIVUUYwH9nVzN3
eoyPNDJ7qfmalbWEssK/epO9k8rCIoUILa3sYWqGhVZmuhVSQmiYKWVvCPojysKEtMwd05VWCITw
eSdw1rJ2b3/cuXQ8zpx77uuPPjiwd75vzpzvMd9zI+oEVssfgSHAaW7pCPCrUGZsPc7rQf0g+cGn
AC31OqyhQmmPtlqusVo+WEMNPmm1XG+1bK5kf1TmYX2BxcBUt/cQREOFyhkPbd73DqFM5KEdCHQA
wi2tAmYLZQ7WXCNWy4nATmBaTAD9IP9cDRTyYowJgPuAXVbLm+thWrOAAZ71h6yWI6swqXHAFA+q
H3BPPRiZAXQHHMayKrTxemD9T+CJmjMilNkBrAigr7Za3lCBNu4FLgmglwtl9tTLa80HcgHcEqv7
nJSdiT5NznH4YB9EC+vmfoUyh4F5AfRwyD+c/W35OcBZAeRTQuVsVYxYLW+0Wr5rtRzs39JzBbAj
pDGr5RkZTOo84NEAeqtQZlVg30ir5ZdWy1tTGXFxYiVwt3N/C5wJxLRyoBsISf5UYFEGAb4E9E5x
KkkzPN1quQxoA64CViYF1uA5oOhim4BnId9utZycMLGvgA8DH/KA1XJsijYmAHcE0GuFMt8Xf3Tu
GBQVsod8B/AI0OhQfYEl3shutRwN6BQprhPK3BWjHwCMDtDuBXYHcCNS7sZ2ocyh2BmfAWnecKxQ
ZlsyaXymhDkMTWhlP7A/RfIhh9EOtGe8w2eWwM8DbkuaVjvQyf8HDPC1N2m0Wp7tfPtkz8a/gY2F
J3pZqNxRjxZaXIDLA28GPqCYMW8Wyvzsudi9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kH/42xd0LDGKEO/+OhG+zK7Y+EMh9UW+reCbwX
W8pRaCwDUUdxMGq1vDgQY7bGst/iyO4bjp8hzhTKLC8rjS+PidTUez9EQ4TKHXGMHPO58aIjKAyF
8tuB4YEu4rC6THVdNv1YSur9dJGJbNE/dwx4LICWwPN10YiLpO0JEyjCT0KZixL0qRqJ0X0BXBuo
QVqEMttrrZHFASYgPPjJArMo9JV9Qm6th2ltKLjaE2CdUOa7SrkQyuzCP6LOAa/VnBHXWBhB4d8r
itBJ6T5vFgtfkGizvuPixIa6eK2YXY9xDbVdQpn5AZpMdyRGP83dlYXFKVTd3G+ZzHbiGXiWysMq
hQbqB20u3Y+n/m31OuxfNE90gC6jqV0AAAAASUVORK5CYII=
yoda_portal_fqdn: PLACEHOLDER # Yoda portal FQDN

Expand Down
2 changes: 1 addition & 1 deletion roles/yoda_rulesets/templates/rules_uu.cfg.j2
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ sram_flow = '{{ sram_flow }}'
sram_verbose_logging = '{{ ["false", "true"][sram_verbose_logging|int] }}'
sram_tls_verify = '{{ ["false", "true"][sram_tls_verify|int] }}'
sram_co_default_label = '{{ sram_co_default_label }}'
sram_co_logo_url = '{{ sram_co_logo_url }}'
sram_co_logo = '{{ sram_co_logo }}'
{% endif %}

arb_enabled = '{{ ["false", "true"][irods_arb_enabled|int] }}'
Expand Down

0 comments on commit ab35af2

Please sign in to comment.