You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove deprecated -ttl flag from spire server cli (spiffe#5483)
* Remove deprecated -ttl flag from spire server cli
This commit removes the deprecated `-ttl` flag from `spire entry
create` and `spire entry update`. Docs are also updated.
See discussion in spiffe#5254
Signed-off-by: Marcel Levy <[email protected]>
* Remove -ttl from integration tests
Signed-off-by: Marcel Levy <[email protected]>
* Fix windows unit test
Signed-off-by: Marcel Levy <[email protected]>
---------
Signed-off-by: Marcel Levy <[email protected]>
Co-authored-by: Marcos Yacob <[email protected]>
f.StringVar(&c.entryID, "entryID", "", "A custom ID for this registration entry (optional). If not set, a new entry ID will be generated")
95
90
f.StringVar(&c.parentID, "parentID", "", "The SPIFFE ID of this record's parent")
96
91
f.StringVar(&c.spiffeID, "spiffeID", "", "The SPIFFE ID that this record represents")
97
-
f.IntVar(&c.ttl, "ttl", 0, "The lifetime, in seconds, for SVIDs issued based on this registration entry. This flag is deprecated in favor of x509SVIDTTL and jwtSVIDTTL and will be removed in a future version")
98
-
f.IntVar(&c.x509SVIDTTL, "x509SVIDTTL", 0, "The lifetime, in seconds, for x509-SVIDs issued based on this registration entry. Overrides ttl flag")
99
-
f.IntVar(&c.jwtSVIDTTL, "jwtSVIDTTL", 0, "The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry. Overrides ttl flag")
92
+
f.IntVar(&c.x509SVIDTTL, "x509SVIDTTL", 0, "The lifetime, in seconds, for x509-SVIDs issued based on this registration entry.")
93
+
f.IntVar(&c.jwtSVIDTTL, "jwtSVIDTTL", 0, "The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry.")
100
94
f.StringVar(&c.path, "data", "", "Path to a file containing registration JSON (optional). If set to '-', read the JSON from stdin.")
101
95
f.Var(&c.selectors, "selector", "A colon-delimited type:value selector. Can be used more than once")
102
96
f.Var(&c.federatesWith, "federatesWith", "SPIFFE ID of a trust domain to federate with. Can be used more than once")
f.StringVar(&c.entryID, "entryID", "", "The Registration Entry ID of the record to update")
89
86
f.StringVar(&c.parentID, "parentID", "", "The SPIFFE ID of this record's parent")
90
87
f.StringVar(&c.spiffeID, "spiffeID", "", "The SPIFFE ID that this record represents")
91
-
f.IntVar(&c.ttl, "ttl", 0, "The lifetime, in seconds, for SVIDs issued based on this registration entry. This flag is deprecated in favor of x509SVIDTTL and jwtSVIDTTL and will be removed in a future version")
92
-
f.IntVar(&c.x509SvidTTL, "x509SVIDTTL", 0, "The lifetime, in seconds, for x509-SVIDs issued based on this registration entry. Overrides ttl flag")
93
-
f.IntVar(&c.jwtSvidTTL, "jwtSVIDTTL", 0, "The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry. Overrides ttl flag")
88
+
f.IntVar(&c.x509SvidTTL, "x509SVIDTTL", 0, "The lifetime, in seconds, for x509-SVIDs issued based on this registration entry.")
89
+
f.IntVar(&c.jwtSvidTTL, "jwtSVIDTTL", 0, "The lifetime, in seconds, for JWT-SVIDs issued based on this registration entry.")
94
90
f.StringVar(&c.path, "data", "", "Path to a file containing registration JSON (optional). If set to '-', read the JSON from stdin.")
95
91
f.Var(&c.selectors, "selector", "A colon-delimited type:value selector. Can be used more than once")
96
92
f.Var(&c.federatesWith, "federatesWith", "SPIFFE ID of a trust domain to federate with. Can be used more than once")
0 commit comments