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

GUACAMOLE-1322: Include SAML Plugin in Docker Image #615

Merged
merged 5 commits into from
Feb 12, 2022
Merged

GUACAMOLE-1322: Include SAML Plugin in Docker Image #615

merged 5 commits into from
Feb 12, 2022

Conversation

petzsch
Copy link
Contributor

@petzsch petzsch commented May 31, 2021

Addressing the issue of missing SAML Plugin in Docker Image.

Please include in next release. Thank You!

@petzsch
Copy link
Contributor Author

petzsch commented May 31, 2021

added another commit to fix the whitespace issue hopefully.

@petzsch petzsch changed the title Include SAML Plugin in Docker Image (GUACAMOLE-1322) GUACAMOLE-1322: Include SAML Plugin in Docker Image May 31, 2021
@tworcester
Copy link

Code looks good! You need to re-do all of your commits to have the issue tag at the front, like this: GUACAMOLE-1322: fixed whitespaces

@petzsch
Copy link
Contributor Author

petzsch commented May 31, 2021

I wasn't aware of that. I assume the commits would get squashed on merge anyway.
I've done a rebase of the last 3 commits. Hopefully that was the intended solution.

@mike-jumper
Copy link
Contributor

You need to re-do all of your commits to have the issue tag at the front, like this: GUACAMOLE-1322: fixed whitespaces

Also, please do not use a commit message like "fixed whitespaces". There just isn't any context there. Like a code comment, a good commit message should describe the nature of the change, not the literal change:

https://www.codelord.net/2015/03/16/bad-commit-messages-hall-of-shame/

For example, after seeing your commit, I still had no idea what whitespace issue you were referring to or why anything needed to be fixed. I looked at the content of the commit itself and was able to see for myself, but that sort of information should already be apparent from the message.

With something like:

GUACAMOLE-1322: fixed whitespaces

A developer looking through the git history is left wondering what happened. If something is wrong with the content of your change, the developer goes to the relevant commit message to understand your reasoning for that change, and here that would be absent.

On the other hand, something like:

GUACAMOLE-1322: Correct indentation of SAML property assignments to match established code style.

is very clear. If (somehow) the change didn't achieve what it aimed at achieving, that would be apparent even weeks to months down the line.

No commit or change is too trivial to warrant a good message.

@petzsch
Copy link
Contributor Author

petzsch commented Jun 1, 2021

@mike-jumper I agree with your arguments and am always willing to improve. Before I do another rebase and alter my "fixed whitespaces" commit message, are the other ones I used somewhat OK (are they still within an acceptable range)?

@mike-jumper
Copy link
Contributor

@mike-jumper I agree with your arguments and am always willing to improve. Before I do another rebase and alter my "fixed whitespaces" commit message, are the other ones I used somewhat OK (are they still within an acceptable range)?

The other messages are better, for sure. If you'd like to improve those messages:

  • Avoid shorthand like "ext" and "env" for "extension" and "environment variable". It's unnecessarily obfuscated for something that's intended to be documentation.
  • Avoid describing what you're modifying by its filename alone - git already tells us this, and someone reading through the git history may not be as familiar with the purpose of each file. Describing things at a high level is better than saying "Update something.foo include BAR cfg"

For example, consider:

GUACAMOLE-1322: Update build-guacamole.sh - include saml ext.
GUACAMOLE-1322: Update start.sh include SAML env

vs.

GUACAMOLE-1322: Build and include SAML authentication extension within Docker image.
GUACAMOLE-1322: Add Docker environment variables for configuring SAML.

Copy link
Contributor Author

@petzsch petzsch left a comment

Choose a reason for hiding this comment

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

stupid typo: sorry for the hassle.

guacamole-docker/bin/start.sh Outdated Show resolved Hide resolved
@petzsch
Copy link
Contributor Author

petzsch commented Jun 3, 2021

I've just been testing the changes and for some reason the .jar file for saml is not present in the docker image:

guacamole@aaf35270b1e9:/opt/guacamole/saml$ ls -al
total 8
drwxr-xr-x 2 root root 4096 Jun 3 09:17 .
drwxr-xr-x 1 root root 4096 Jun 3 09:17 ..

If someone spots the problem, any help would be appreciated.
Will update, if I find it myself.

Until that's solved: This pull request is not ready to be merged!

@petzsch petzsch marked this pull request as draft June 3, 2021 11:33
Copy link
Contributor Author

@petzsch petzsch left a comment

Choose a reason for hiding this comment

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

this should fix it.

guacamole-docker/bin/build-guacamole.sh Outdated Show resolved Hide resolved
@petzsch
Copy link
Contributor Author

petzsch commented Jun 3, 2021

Commit Messages have been corrected as requested. Please continue with the review. I'll remove the Draft status.

The docker image I've build for my usecase seems to run. Still working on getting the SAML integration with my coportate IdP to work.

Hopefully the documentation is right about this:

Often the metadata file contains most of the required properties for SAML authentication and the other parameters are not required.

@petzsch petzsch marked this pull request as ready for review June 3, 2021 14:01
@petzsch
Copy link
Contributor Author

petzsch commented Jun 9, 2021

From my side the changes worked for my deployment together with the IdP that my customer uses. If any more changes are needed, please let me know. Otherwise a merge before the next release would be appreciated. 🥇

guacamole-docker/bin/start.sh Outdated Show resolved Hide resolved
guacamole-docker/bin/start.sh Outdated Show resolved Hide resolved
guacamole-docker/bin/start.sh Show resolved Hide resolved
guacamole-docker/bin/start.sh Show resolved Hide resolved
@jbpaux
Copy link
Contributor

jbpaux commented Oct 22, 2021

were you able to implement requested changes @petzsch ?

@petzsch
Copy link
Contributor Author

petzsch commented Oct 22, 2021

were you able to implement requested changes @petzsch ?

Very sorry for the long radio silence. I'm currently involved in other projects.
If you want to pick up on my work, feel free to do so.

Do let me know if you need permissions on my patch-1 branch on the forked repo.

@jbpaux
Copy link
Contributor

jbpaux commented Oct 22, 2021

ok @petzsch I can have a look on it the weekend :)

@jbpaux
Copy link
Contributor

jbpaux commented Oct 26, 2021

I still can have a look if you give perms 😅

@petzsch
Copy link
Contributor Author

petzsch commented Nov 1, 2021

I still can have a look if you give perms 😅

I just added you to the project.

@jbpaux
Copy link
Contributor

jbpaux commented Nov 3, 2021

I've implemented the requested changes @mike-jumper :)

@petzsch
Copy link
Contributor Author

petzsch commented Jan 3, 2022

is this still being monitored?

@mike-jumper
Copy link
Contributor

Yep, I just got real busy toward the end of last year. I'll try to look over this later today.

@JackWolfard
Copy link

What's the status of this PR? Will it be included as a feature in 1.5.0?

@jbpaux
Copy link
Contributor

jbpaux commented Feb 10, 2022

I've rebased on master and removed commits dealing with adding the saml jar since it's already included with all other sso plugins. should be good @mike-jumper 🤞

@necouchman
Copy link
Contributor

@JackWolfard:

What's the status of this PR?

As you can see from the messages, it's being actively worked between the person who submitted the PR and the reviewer.

Will it be included as a feature in 1.5.0?

I could not say with certainty one way or the other, but, as it's currently active, I would say the likelihood that it'll end up in the next release is pretty high.

@mike-jumper mike-jumper merged commit f82b7e8 into apache:master Feb 12, 2022
@trident25
Copy link

I've found a bug in this pull request - captured here: https://issues.apache.org/jira/browse/GUACAMOLE-1570

I think the logic when deciding to load the SAML extension is incomplete. @petzsch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants