Skip to content

SRAM deploy roles port#634

Open
mrvanes wants to merge 106 commits intorelease/597from
feature/sram
Open

SRAM deploy roles port#634
mrvanes wants to merge 106 commits intorelease/597from
feature/sram

Conversation

@mrvanes
Copy link
Copy Markdown
Contributor

@mrvanes mrvanes commented Mar 19, 2026

Port the SRAM-deploy roles to OpenConext

Tyskai and others added 30 commits July 29, 2025 15:28
…able_account_linking

Featue toggle enable_account_linking
…feature/#1001-different-email-from-for-nudges-and-warnings
…ngs' into develop

# Conflicts:
#	roles/myconext/templates/application.yml.j2
…ror_mail-configurable-for-prod-and-non-prod-develop

#802-differentiate-error_mail-configurable-for-prod-and-non-prod-develop
oharsta and others added 4 commits April 23, 2026 09:12
…to-create-from-institution

#1042 Add create-from-institution return-url-allowed-domains
Added sram_rp_entity_id to manage for push functionality
…script

Improve ebauth log parsing, and parse stepup-authentication logs also
Copy link
Copy Markdown
Contributor

@crosmuller crosmuller left a comment

Choose a reason for hiding this comment

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

zie review comments in code

Comment thread roles/haproxy/templates/haproxy_backend.cfg.j2
Comment thread roles/sram_ldap/files/rsyslog_slapd.conf Outdated
Comment thread roles/engine/tasks/main.yml
bind {{ haproxy_sni_ip.ipv4 }}:636 ssl crt-list /etc/haproxy/maps/certlist.lst ssl crt /etc/haproxy/certs/ no-sslv3 no-tlsv10 no-tlsv11 transparent
bind {{ haproxy_sni_ip.ipv6 }}:636 ssl crt-list /etc/haproxy/maps/certlist.lst ssl crt /etc/haproxy/certs/ no-sslv3 no-tlsv10 no-tlsv11 transparent
use_backend ldap_servers
{% endif %}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hier is ook een firewall change nodig denk ik?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Geen idee, het werkt nu in iedergeval zonder?

option logasap
timeout client 900s
timeout server 901s
bind {{ haproxy_sni_ip.ipv4 }}:636 ssl crt-list /etc/haproxy/maps/certlist.lst ssl crt /etc/haproxy/certs/ no-sslv3 no-tlsv10 no-tlsv11 transparent
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hoe komt de ldap hostname aan een certificaat? Moet dan get_acme_certs.yml ook niet worden aangepast zocdat haproxy_ldap_servers aan de lijst met hostnames wordt toegevoegd?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Dat is geregeld in de loadbalancer hostname configuratie voor zover ik me herinner. Het gaat in elk geval goed op dit moment?

purge-audit-log-days: 365
purge-audit-log-days: 0
# A value of 0 means no invitations will be deleted
purge-expired-invitations-days: 365
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Dit lijkt me niet de bedoeling?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ik weet niet waar deze change vandaan komt, ik denk dat het een rebase is?

@@ -0,0 +1,5 @@
---
mailpit_image: "axllent/mailpit"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ik denk niet dat we een random image van een vaag persoon op internet direct willen utirollen, zeker niet als dat straks ook in publieke test terecht komt.

Waarschijnlijk beter om zelf een baseimage te bouwen hiervoor.

Comment thread roles/sram_sbs/templates/config.yml.j2 Outdated

redis:
{% if environment_shortname == 'test2' %}
uri: "redis://{{ sbs_redis_user }}:{{ sbs_redis_password }}@{{sbs_redis_host}}/"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

En hoe praat SBS eigenlijk met redis? Praat hij met een lokale container, via traefik of via de loadbalancer?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Via de magic containernaam volgens mij?

scim_schema_sram: "urn:mace:surf.nl:sram:scim:extension"
collaboration_creation_allowed_entitlement: "urn:mace:surf.nl:sram:allow-create-co"

{% if env == "prd" %}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

kunnen we niet beter in prd gewoon sbs_disclaimer_label op een lege string zetten in de group_vars?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Dit is letterlijk de config.yml.j2 van onze aws deploy

@@ -0,0 +1,6 @@
{% if env!="prd" -%}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

zie comment hierboven. betre check if of sbs_disclaimer_label leeg is.

#CustomLog /proc/self/fd/1 common
DocumentRoot /opt/sbs/client/dist

Header set Content-Security-Policy "default-src 'self'; base-uri 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-src 'none'; form-action 'self' https://*.{{ base_domain }}; frame-ancestors 'none'; block-all-mixed-content;"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In SURFconext zijn de CSPs globaal gedefinieerd. Even met @crosmuller afstemmen hoe dat het handigst te combineren is.

Comment thread roles/sram_sbs/templates/sbs.service.j2 Outdated
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.

10 participants