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

Fix: Domainless option in opensource mode #131

Merged
merged 3 commits into from
Jul 15, 2024
Merged

Conversation

smhmhmd
Copy link
Contributor

@smhmhmd smhmhmd commented Jul 12, 2024

Issue #, if available: #129

Description of changes:
The domainless option in ecs mode was overwriting the previously existing opensource mode

Testing done:
Testing:
$ ./credentials-fetcherd --aws_sm_secret_name aws/directoryservices/d-xxxxxxxxx:/gmsa &
$ ./api/tests/gmsa_test_client --create_kerberos_tickets_non_domain_joined "user1" "xxx" "CONTOSO.COM"
krb tickets will get created
created ticket file /var/credentials-fetcher/krbdir/1377bbf83874d1a8b7bb/WebApp01
created ticket file /var/credentials-fetcher/krbdir/1377bbf83874d1a8b7bb/WebApp03
Client received output for add kerberos lease non domain joined: 1377bbf83874d1a8b7bb

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

  • [X ] I have read the CONTRIBUTING doc
  • [ X] I used the commit message format described in CONTRIBUTING
  • [ X] I have updated any necessary documentation, including READMEs and comments (where appropriate)

Tests

  • [X ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • [] I have checked that my tests are not configured for a specific environment

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The domainless option in ecs mode was overwriting the previously existing opensource mode
The domainless option in ecs mode was overwriting the previously existing opensource mode

Testing:
  root@EC2AMAZ-ByoJfX:~/credentials-fetcher/build# ./credentials-fetcherd  --aws_sm_secret_name  aws/directoryservices/d-xxxxxxxxx:/gmsa &
  root@EC2AMAZ-ByoJfX:~/credentials-fetcher/build# ./api/tests/gmsa_test_client --create_kerberos_tickets_non_domain_joined "user1" "xxx" "CONTOSO.COM"
  krb tickets will get created
created ticket file /var/credentials-fetcher/krbdir/1377bbf83874d1a8b7bb/WebApp01
created ticket file /var/credentials-fetcher/krbdir/1377bbf83874d1a8b7bb/WebApp03
Client received output for add kerberos lease non domain joined: 1377bbf83874d1a8b7bb
Copy link
Contributor

@jamolina jamolina left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @smhmhmd !

@smhmhmd smhmhmd merged commit e4f0ba4 into aws:mainline Jul 15, 2024
1 check passed
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.

None yet

3 participants