Skip to content

Set Citadel as the default provider for Pilot certificate#20196

Merged
istio-testing merged 5 commits intoistio:masterfrom
lei-tang:set-citadel-as-default
Jan 20, 2020
Merged

Set Citadel as the default provider for Pilot certificate#20196
istio-testing merged 5 commits intoistio:masterfrom
lei-tang:set-citadel-as-default

Conversation

@lei-tang
Copy link
Copy Markdown
Contributor

Please provide a description for what this PR is for: #19950.

As some platforms may not have k8s signing APIs, set Citadel as the default provider for Pilot certificate.

And to help us figure out who should review this PR, please
put an X in all the areas that this PR affects.

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[X ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[X ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@lei-tang lei-tang requested review from a team as code owners January 15, 2020 06:42
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Jan 15, 2020
@istio-testing istio-testing added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 15, 2020
@lei-tang lei-tang requested review from howardjohn and myidpt January 15, 2020 06:42
@lei-tang lei-tang force-pushed the set-citadel-as-default branch from 9bc8066 to dc04da5 Compare January 15, 2020 06:43
@lei-tang
Copy link
Copy Markdown
Contributor Author

/test integ-new-install-k8s-tests_istio

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.

s/""/"citadel"

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.

Done.

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.

ditto

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.

Done.

@lei-tang lei-tang force-pushed the set-citadel-as-default branch from dc04da5 to 902a4a5 Compare January 15, 2020 18:30
@howardjohn
Copy link
Copy Markdown
Member

run BUILD_WITH_CONTAINER=1 make gen. It wasn't needed before since we hadn't fixed the tests yet

@lei-tang lei-tang force-pushed the set-citadel-as-default branch from 902a4a5 to f9190b4 Compare January 15, 2020 19:34
@istio-testing istio-testing added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 15, 2020
@istio istio deleted a comment from istio-testing Jan 15, 2020
@lei-tang lei-tang force-pushed the set-citadel-as-default branch from 70084cc to b62bc1e Compare January 15, 2020 23:44
@istio-testing istio-testing added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 16, 2020
@lei-tang lei-tang force-pushed the set-citadel-as-default branch from 62a1bc6 to 41a57aa Compare January 17, 2020 00:26
@istio-testing istio-testing added needs-rebase Indicates a PR needs to be rebased before being merged size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 17, 2020
@lei-tang lei-tang force-pushed the set-citadel-as-default branch from 41a57aa to ac58e4a Compare January 17, 2020 00:29
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Jan 17, 2020
@istio istio deleted a comment from istio-testing Jan 17, 2020
@lei-tang lei-tang force-pushed the set-citadel-as-default branch from ac58e4a to 5744185 Compare January 17, 2020 02:17
@istio istio deleted a comment from istio-testing Jan 17, 2020
@lei-tang lei-tang force-pushed the set-citadel-as-default branch 2 times, most recently from a29e870 to 504e2f8 Compare January 17, 2020 18:27
@lei-tang lei-tang force-pushed the set-citadel-as-default branch 2 times, most recently from 6494246 to 8c517b5 Compare January 17, 2020 23:06
@istio-testing istio-testing added the needs-rebase Indicates a PR needs to be rebased before being merged label Jan 17, 2020
@lei-tang lei-tang force-pushed the set-citadel-as-default branch from 8c517b5 to 12917db Compare January 17, 2020 23:11
@istio-testing istio-testing removed the needs-rebase Indicates a PR needs to be rebased before being merged label Jan 17, 2020
@istio istio deleted a comment from istio-testing Jan 17, 2020
@lei-tang lei-tang force-pushed the set-citadel-as-default branch from 12917db to aa1abcb Compare January 18, 2020 00:02
@istio-testing istio-testing added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jan 18, 2020
@istio istio deleted a comment from istio-testing Jan 18, 2020
@lei-tang lei-tang force-pushed the set-citadel-as-default branch from aa1abcb to a1f6327 Compare January 18, 2020 00:12
@lei-tang
Copy link
Copy Markdown
Contributor Author

/test e2e-dashboard_istio

@lei-tang
Copy link
Copy Markdown
Contributor Author

/test integ-telemetry-k8s-tests_istio

@lei-tang lei-tang force-pushed the set-citadel-as-default branch 2 times, most recently from a1a62c6 to 458483d Compare January 18, 2020 16:47
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can you explain why we want to mount the cert? Isn't Pilot using the cert generated by Citadel running inside it?

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.

Pilot uses the cert generated by Citadel. The mouting of the cert is for the TLS between data plane and control plane.

@howardjohn
Copy link
Copy Markdown
Member

howardjohn commented Jan 19, 2020 via email

@lei-tang
Copy link
Copy Markdown
Contributor Author

The Citadel referred here is the Citadel linked in Pilot. Even without the legacy Citadel, Pilot can obtained a certificate issued from the Citadel linked in Pilot.

@howardjohn
Copy link
Copy Markdown
Member

oh I read the pr wrong, I thought pilot was mounting it but that's ingress. Sounds good, ignore me

@lei-tang lei-tang force-pushed the set-citadel-as-default branch from 458483d to 1beb330 Compare January 19, 2020 05:34
lei-tang and others added 2 commits January 19, 2020 11:47
- As some platforms may not have k8s signing APIs,
set Citadel as the default provider for Pilot certificate.
- Integration tests when pilotCertProvider=citadel
@lei-tang lei-tang force-pushed the set-citadel-as-default branch from 1beb330 to cf44d7b Compare January 19, 2020 20:00
Fix the file permission problem:
error	failed to create discovery service: grpcDNS: open ./var/run/secrets/self-signed-root.pem: permission denied
@lei-tang lei-tang force-pushed the set-citadel-as-default branch from 383a6a1 to e485edd Compare January 19, 2020 22:21
@lei-tang lei-tang force-pushed the set-citadel-as-default branch from e485edd to d2820b9 Compare January 19, 2020 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants