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

Add Basic auth for consul catalog #2027

Merged
merged 1 commit into from
Sep 7, 2017

Conversation

mmatur
Copy link
Member

@mmatur mmatur commented Aug 30, 2017

Description

Implements frontend basic auth for consul catalog provider.

This addresses the consul-catalog part of #1465

@@ -323,13 +323,22 @@ func (p *CatalogProvider) getBackendName(node *api.ServiceEntry, index int) stri

// unique int at the end
serviceName += "--" + strconv.Itoa(index)
println("ServiceName: %s", serviceName)
Copy link
Contributor

Choose a reason for hiding this comment

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

could you remove this line?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes sure. It was for my tests

| `traefik.frontend.priority=10` | Override default frontend priority |
| `traefik.frontend.entryPoints=http,https` | Assign this frontend to entry points `http` and `https`. Overrides `defaultEntryPoints`. |
| `traefik.frontend.auth.basic=test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/,test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0` | Sets basic authentication for that frontend with the usernames and passwords test:test and test2:test2, respectively |
Copy link
Contributor

Choose a reason for hiding this comment

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

could you replace by

| `traefik.frontend.auth.basic=EXPR`                | Sets basic authentication for that frontend in CSV format: `User:Hash,User:Hash` |

Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

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

LGTM

@ldez ldez force-pushed the feature/basic-auth-consul-catalog branch from 2f41125 to e173448 Compare September 7, 2017 10:09
@ldez ldez modified the milestones: 1.4, 1.5 Sep 7, 2017
@ldez ldez changed the base branch from master to v1.4 September 7, 2017 10:09
[consul-catalog] - add integration test for basic auth
[consul-catalog] - Remove unnecessary println
[consul] - improve documentation
@traefiker traefiker merged commit b705e64 into traefik:v1.4 Sep 7, 2017
@mmatur mmatur deleted the feature/basic-auth-consul-catalog branch March 21, 2018 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants