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

Increase default session timeout in iRODS v4.3.3 #33

Closed
mikkonie opened this issue Oct 9, 2024 · 5 comments
Closed

Increase default session timeout in iRODS v4.3.3 #33

mikkonie opened this issue Oct 9, 2024 · 5 comments
Assignees
Labels
feature New feature or request
Milestone

Comments

@mikkonie
Copy link
Contributor

mikkonie commented Oct 9, 2024

After upgrading the image, the default login timeout seems to be VERY short. This should be altered. Not 100% sure if this should go here or sodar-docker-compose, will move if needed.

Edit: Instead of simply increasing the default maximum values, we should make them configurable by env vars.

@mikkonie mikkonie added the feature New feature or request label Oct 9, 2024
@mikkonie mikkonie added this to the v4.3.3-1 milestone Oct 9, 2024
@mikkonie mikkonie self-assigned this Oct 9, 2024
@holtgrewe
Copy link
Member

Is this login timeout with irods icommands? IIRC, this is goverend by PAM.

@mikkonie mikkonie changed the title Increase default login timeout Increase maximum login timeouts Oct 22, 2024
@mikkonie
Copy link
Contributor Author

There are infact two settings for maximum login length. There is a separate one for PAM, yes. For some reason, one of these was set very short in my iRODS 4.3 unattended config template.

@mikkonie mikkonie changed the title Increase maximum login timeouts Make maximum login lifetime configurable, increase defaults Oct 22, 2024
@mikkonie
Copy link
Contributor Author

mikkonie commented Oct 22, 2024

These settings have changed in 4.3.1+, see here.

Max password time has to now be set with iadmin set_grid_configuration authentication password_max_time xxx

..however, the setting is set to the correct default value on the server. This can be verified with iadmin get_grid_configuration authentication password_max_time.

Supplying --ttl in iinit provides the expected TTL, but without that option supplied the password expires in 2 minutes. This makes iCommands unusable without supplying a custom TTL. So something has definitely changed somewhere. Changing default_temporary_password_lifetime_in_seconds in the server config doesn't help.

@mikkonie
Copy link
Contributor Author

mikkonie commented Nov 5, 2024

iRODS support to the rescue: this is an undocumented feature in v4.3.1+, where one is supposed to use password_min_time in addition to password_max_time. They have now added a ticket for documenting this :)

It has to be set with iadmin set_grid_configuration authentication password_min_time 1209600. I'll double-check to make sure there isn't a way to do it in unattended_config.json. (Update: I asked iRODS support and it can't, at least for now)

@mikkonie mikkonie changed the title Make maximum login lifetime configurable, increase defaults Increase default session timeout in v4.3 Nov 5, 2024
@mikkonie mikkonie changed the title Increase default session timeout in v4.3 Increase default session timeout in iRODS v4.3.3 Nov 5, 2024
@mikkonie
Copy link
Contributor Author

mikkonie commented Nov 5, 2024

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants